InstrallShield Basic MSI uninstall does not display a dialog with Finish button

前端 未结 2 1991
离开以前
离开以前 2021-01-26 23:47

I used InstallShield 2018 and created a \'Basic MSI\' project. When uninstalling the product, it confirms if I want to proceed with the uninstallation and once confirmed starts

2条回答
  •  一向
    一向 (楼主)
    2021-01-27 00:20

    Basic UI Mode: When uninstall is invoked from the Add / Remove Applet (appwiz.cpl) it will run in basic GUI mode (UILevel = 3). This will skip the InstallUISequence in the MSI, and hence no setup wizard dialogs are shown, but rather just progress and error messages. More information on UILevel.

    ARPNOREMOVE: As to what you can do about it. In the past I have set the ARPNOREMOVE Property to 1 in the property table in order to prevent the setup being removed using basic UI mode. Instead the user must click Modify in the ARP applet. This will ensure that the setup will run with full GUI, and you can invoke remove in turn from the Modify dialog that shows up (setup wizard dialog).

    In older versions of Installshield, you could set this under General Information => Add / Remove Programs => Disable Remove Button => Yes. You can also go directly to the property table using the Direct Editor View - and you can use the Property Manager view as well. In all cases you assign a value of 1 to the ARPNOREMOVE property.

    Custom Action: Some people add a custom action to show a setup uninstall completion dialog (or rather message box) directly from the InstallExecuteSequence, but this is very bad design. This sequence should feature no GUI elements at all in order to support silent installation / uninstallation properly.


    Silent Installation: I wrote an earlier answer on a slightly different aspect of silent installations a while back. Linking to it for more details on setup GUI: Uninstall from Control Panel is different from Remove from .msi.

提交回复
热议问题