简体   繁体   English

使用C#对Windows Installer数据库运行ICE验证

[英]Run ICE Validation against windows installer database using c#

I'm wondering if anyone can help. 我想知道是否有人可以提供帮助。

I have an c# application to make modifications to multiple in house msi files. 我有一个C#应用程序来修改多个内部msi文件。

We want to run ICE validation and get the results back in my application. 我们要运行ICE验证,并将结果返回到我的应用程序中。 I know i can run MsiVal2.exe as a process and output the results back to the app but i would ideally like to run it all via code. 我知道我可以将MsiVal2.exe作为进程运行,并将结果输出回应用程序,但理想情况下,我想通过代码运行所有进程。

There is an evalcom2.dll which appears to be written in c++ but there seems to be very little information around using this. 有一个evalcom2.dll,它似乎是用C ++编写的,但是关于使用它的信息似乎很少。 Im surprised that nobody seems to have done this or is there an easier way like using one of the wix libraries or some thing? 我感到惊讶的是,似乎没有人这样做,还是有一种更简单的方法,例如使用wix库之一或某些东西?

Any Help would be much appreciated. 任何帮助将非常感激。

WiX Toolkit : I don't really use it manually that much (I validate using Orca), but the WiX toolset itself contains the binary smoke.exe . WiX Toolkit :我并没有真正手动使用它(我使用Orca进行了验证),但是WiX工具集本身包含二进制smoke.exe I believe it is run for every build in Visual Studio? 我相信它可以在Visual Studio中的每个版本中运行吗? Not sure. 不确定。 The full source available on github.com . 完整的源代码可以在github.com上找到

Looks possible to adapt to your own project. 看起来有可能适应您自己的项目。 You could also just pass it to the compiled smoke.exe I guess. 我猜你也可以将其传递给已编译的smoke.exe In the code, you can see: 在代码中,您可以看到:

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM