cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted

Uninstalling from control panel is in SILENT mode

Hello,

I've made BasicMSI project in InstallShield 2012, and defined custom action which is called during uninstall.
I notice that uninstalling from control panel is executed in silent mode. I checked uninstall command in regedit in
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{MY_PRODUCT_CODE}
UninstallString is
MsiExec.exe /I{MY_PRODUCT_CODE}

I ran UninstallString from command prompt and it launches normal (not silent) uninstall hence it seems to be correct.

Please advise me what might be wrong with my project.

Thank you in advance!

Best regards, Georgiy
Labels (1)
0 Kudos
1 Reply
ElenaN
Pilgrim

Re: Uninstalling from control panel is in SILENT mode

As far as I know when registry entry HKLM \SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{MY_PRODUCT_CODE}\WindowsInstaller exists and is set to "1", then "UninstallString" entry is ignored and
MsiExec.exe /x{MY_PRODUCT_CODE}
is used instead.


Recommended way to change “Add/Remove Programs” behavior is to set ARPSYSTEMCOMPONENT property to 1 and manually create a set of custom uninstall registry values under your own uninstall key from your msi (for example HKLM \SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\).
0 Kudos