使用Orca从命令行编辑msi? [英] Use Orca to edit msi from command line?

查看:396
本文介绍了使用Orca从命令行编辑msi?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用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中记录了这个错误( https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=338258 )并最终得到一个答案,即使用Orca编辑msi文件并替换图标。这个解决方案运行正常。

I logged this bug in Microsoft Connect (https://connect.microsoft.com/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?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆