执行文件安装后 [英] Execute a file post installation

查看:118
本文介绍了执行文件安装后的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有一个带有.msi文件的项目.该文件将所有必需的文件放在计算机目标上.但是然后,我需要执行放置的那个新文件之一.我正在为Office做一些加载项,并且在安装时,我发现我需要在目标计算机上执行.vsto文件以正确安装它.

有一种方法可以将其包含在.msi文件中?只需单击.msi文件,然后将所有文件放到计算机上并自动执行.vsto文件?
谢谢

问候,

JP

Hi,

I''ve a project with a .msi file. That file puts all necessary files on computer target. But then, i need to execute one of that new files placed. I''m doing some addins for office, and when installing, i''ve looked i need to execute the .vsto file in target computer to install it right.

There''s a way to include that in .msi file? just clicking .msi file, put all files on computer and auto-execute the .vsto file?
thanks

Regards,

JP

推荐答案



不幸的是,您不能这样做,因为MSI文件不支持嵌套安装.您是否正在使用VS创建您的msi文件?如果是这样,您可以在其中创建bootstrarper exe文件,在其中可以添加所有必备组件并执行所需的所有操作-您可以在安装之前,之中或之后执行任何exe,bat等文件.您可以阅读有关此内容,其中有很多内容,例如:

http://msdn.microsoft.com/en-us/library/wx3b589t.asp [ ^ ]

您不需要完全的Visual Studio即可实现此类功能,但您将需要除msi之外的其他功能.

最好的问候
PZ
Hi,

unfortunately you can''t because MSI file doesn''t support nested installation. Are you using VS to create your msi file? If so you can create there just bootstrarper exe file where you can add all prerequisites and do everything you want - you can do any exe, bat etc. files before, during or after installation. You can read about this, there is a lot of stuff about this, f.e.:

http://msdn.microsoft.com/en-us/library/wx3b589t.asp[^]

You don''t need exactly Visual Studio to achieve such functionality but you will need something more than msi.

Best Regards
PZ


这篇关于执行文件安装后的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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