- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: No Uninstall and Maintenance in InstallScript MSI
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
No Uninstall and Maintenance in InstallScript MSI
How to disable feature Uninstall And Maintenance In InstallScript MSI 2018
I hope to receive your help.
Thanks very much!
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Hi @nhatmi ,
How about using Enable Maintenance option in General Information view of InstallScript MSI to false?
https://helpnet.flexerasoftware.com/installshield23helplib/helplibrary/ProjectProp_EnableMaint.htm
If you want some control over Control panel Add/Remove programs,you can use Add or Remove Programs section in General Information
Thanks,
Jenifer
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
hi @Jenifer
I want to disable the Uninstall in Installscript MSI feature similar to the InstallScript Project.
I hope to receive your help.
Thanks very much!
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Hi @nhatmi ,
You can view the code of specific maintenance/uninstall behavior under OnMaintUIBefore event(InstallScript view->Before Move Data). Normally running a setup.exe again after it has been installed presents the maintenance selection dialog (modify, repair, remove) .If the code in OnMaintUIBefore has been changed, or you would just like to change any maintenance behavior in general, you would need to look through this event and modify it as needed.
Thanks,
Jenifer
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
hi @Jenifer
I know what you mean.
I want when the installation will not create uninstall information.
I want to install in mode MAINT_OPTION_NONE same as InstallScript Project.
Thanks for your support
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Hi @nhatmi ,
You can use RegDBSetItem function to set REGDB_UNINSTALL_MAINT_OPTION which can be the value of MAINT_OPTION_NONE.
LogMode is the registry key which will hold the value of the system variable MAINT_OPTION.
Below example can help you set uninstall maintenance option using RegDBSetItem:
Thanks,
Jenifer