MSI自动修复问题可以解决? [英] MSI auto-repair issue work around?

查看:121
本文介绍了MSI自动修复问题可以解决?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Visual Studio 2008创建了一个MSI安装程序.安装后我有一些临时文件需要删除,但是自动修复功能使我感到困扰.单击安装程序创建的快捷方式将触发自动修复功能.我正在考虑创建自己的快捷方式以避免这种自动修复.我通过在安装后手动创建快捷方式来尝试此操作.有效.

I created a MSI installer by using Visual Studio 2008. I have some temp files that need to be deleted after the installation, but the auto-repair feature bothers me. The auto-repair feature will be triggered by clicking the shortcut created by the installer. I am thinking about creating my own shortcut to avoid that auto-repair. I tried this by manually creating a shortcut after the installation. It worked.

现在,我正在尝试寻找一种在安装程序的自定义操作中创建快捷方式的方法.我的问题是对安装程序和安装结果可能有负面影响吗?

Now I am trying to find a way to create a shortcut in a custom action of the installer. My question is is there any possible negative effect to the installer and the installation result?

谢谢

推荐答案

即使您设法有意规避Windows Installer,如果用户单击添加/删除程序"中的修复"按钮,文件仍会返回.相反,您应该寻找使文件在安装期间临时可用而不实际安装的方法.遗憾的是,VDPROJ如此有限,以至于很难做到这一点.

Even if you managed to intentionally circumvent Windows Installer, the files will still come back if the user hits the Repair button in Add/Remove programs. Instead you should be looking at ways to make the files temporarily available during the install without actually installing them. Sadly VDPROJ is so limited that it doesn't make this very easy to do.

但是,如果您想忽略所有这些并只是解决问题,请查看针对您的MSI运行后生成脚本,以使快捷方式变为非广告.

However, if you want to ignore all that and just hack through the problem, take a look at running post build scripts against your MSI to make the shortcut non-Advertised.

这篇关于MSI自动修复问题可以解决?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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