我正在使用 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?
发布评论