Installshield 仅在安装过程中运行 EXE
我还有一个关于 Installshield 中的 exe 和自定义操作的问题。
我目前有一组以静默模式启动可执行文件的自定义操作。
在返回过程中,它设置为同步(检查退出代码)模式,并设置为系统上下文中的延迟执行。
我的问题如下:
当我安装我的应用程序时,一切都很好。它会运行安装程序并安装先决条件。我的问题是当我想从计算机上卸载应用程序时,因为它再次运行相同的安装程序(并尝试再次安装它们,即使我们正在卸载)。
我环顾四周,找不到一个好的解决方法。
任何人都有这方面的经验,并且知道一种让安装仅在安装程序运行时运行而不是在卸载时运行的方法?
非常感谢...
谢谢 -凯尔
I have another question regarding exe's and custom actions within Installshield.
I currently have a set of custom actions which launch executables in silent mode..
In the return process, it is set for Synchronous(Check exit code) mode, and it is set for a Deferred Execution in System Context.
My question is the following:
When I install my application, it is fine. It runs through the installers and installs the prerequisites. My problem is when I want to uninstall the application from the machine, because it runs through the same installers again (and trys to install them again, even though we are uninstalling).
I looked all around, and cannot find a good work-around for this.
Anyone have experience with this and know of a method of getting the installs to only run when the installer runs and not when uninstalling?
Much Appreciated...
Thanks
-Kyle
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您必须将 CustomAction 设置为“未安装”。 “未安装”条件确保操作仅在首次安装期间运行,而不是在维护模式或卸载期间运行。
检查来自 Flexera 的此链接:http://www. flexerasoftware.com/webdocuments/PDF/IS_Tip_Executable-Custom-Actions-for-MSIs.pdf
You have to condition your CustomAction to "Not Installed". The condition "Not Installed" ensures the action runs only during a first-time installation, and not during maintenance mode or uninstallation.
Check this link from Flexera: http://www.flexerasoftware.com/webdocuments/PDF/IS_Tip_Executable-Custom-Actions-for-MSIs.pdf
自定义操作条件(例如“未安装”)怎么样?这意味着它只会在首次安装时运行,而不是在“维护”或“卸载”时运行。
How about a custom action condition like "Not Installed". This means it will only run on a first-time installation, not "maintenance" or "uninstall".