我正在使用Visual Studio 2008并为我的应用程序创建了一个安装项目。该应用程序具有高分辨率图标(适用于Vista)。 Visual Studio中存在一个错误,安装程序会创建一个低分辨率图标的桌面快捷方式。
I'm using Visual Studio 2008 and have created a setup project for my application. The application has a high-resolution icon (for Vista). There's a bug in Visual Studio, and the installer creates a desktop shortcut with a low resolution icon.
我在Microsoft Connect中记录了这个错误( connect.microsoft/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=338258 )并最终得到一个答案,即使用Orca编辑msi文件并替换图标。这个解决方案运行正常。
I logged this bug in Microsoft Connect (connect.microsoft/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=338258) and finally got an answer, which is to use Orca to edit the msi file and replace the icon. That solutions works fine.
现在我想自动化这个过程,所以我可以将它包含在我的构建脚本中。有没有办法做到这一点?
Now I want to automate that process, so I can include it in my build script. Is there a way to do that?
推荐答案您可以编写VBS,JS(使用cscript,内置于每个Windows )修改MSI,语法几乎就像SQL一样。 这是一个显示各种示例的MSDN页面。
You can write VBS, JS (using cscript, which is built in with every Windows) to modify the MSI, the syntax is pretty much SQL like. Here is a MSDN page that shows various examples.
更多推荐
使用Orca从命令行编辑msi?
发布评论