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

查看:24
本文介绍了使用 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天全站免登陆