简体   繁体   English

如何在从程序文件卸载(安装Shield)上显示维护模式

[英]How to show Maintenance mode on Uninstall from Program files (install Shield)

I have created a setup through install shield and the installation goes correctly. 我通过安装屏蔽创建了一个安装程序,安装正确。

The problem is when I uninstall from program files then I want to display maintenance mode. 问题是当我从程序文件中卸载时,我想显示维护模式。 Presently it directly shows removing and it removes the program. 目前,它直接显示正在删除,并且它删除了程序。

I do have setup the maintenance dialog so when user tries to re-install then it will take the user to maintenance mode. 我已经设置了维护对话框,因此当用户尝试重新安装时,它将带用户进入维护模式。

I think I can do it in Install script but I am using normal installation (Basic MSI) 我想可以在Install脚本中执行此操作,但我使用的是常规安装(基本MSI)

Anyone knows how we can achieve this ? 有人知道我们如何实现这一目标吗?

In a Basic MSI project, setting the ARPNOREMOVE property to 1 disables the Uninstall button (and its nearly-silent experience). 在Basic MSI项目中,将ARPNOREMOVE属性设置为1将禁用“ 卸载”按钮(及其几乎无声的体验)。 It yields only an Uninstall/Change button that invokes maintenance. 它仅产生调用维护的“ 卸载/更改”按钮。 Note that the labels of the buttons may differ on different versions of Windows. 请注意,在不同版本的Windows上,按钮的标签可能会有所不同。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM