cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
nhatmi
Level 4

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!

Labels (1)
0 Kudos
(5) Replies
Jenifer
Flexera Alumni

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

0 Kudos

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!

0 Kudos

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

0 Kudos

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

0 Kudos

Hi @nhatmi ,

 

You can use RegDBSetItem function to set REGDB_UNINSTALL_MAINT_OPTION which can be the value of MAINT_OPTION_NONE.

https://helpnet.flexerasoftware.com/installshield19helplib/Subsystems/installshield19langref/helplibrary/LOGFILEMODE.htm 

LogMode is the registry key which will hold the value of the system variable MAINT_OPTION.

https://helpnet.flexerasoftware.com/installshield21helplib/Subsystems/installshield21langref/helplibrary/LangrefMaintenanceStart.htm?

Below example can help you set uninstall maintenance option using RegDBSetItem:

https://helpnet.flexerasoftware.com/installshield21helplib/Subsystems/installshield21langref/helplibrary/LangrefRegDBSetItem_example.htm#langref_appendixd_2838097399_1024175

 

Thanks,

Jenifer

0 Kudos