PDA

View Full Version : Simple install - does not require uninstall options



Bishop
06-17-2003, 10:52 AM
Anyone have any idea how to install a simple application that does not leave any traces in the Add / Remove Program screen or request to uninstall when the setup application is run again?

philiph
06-17-2003, 11:31 AM
1. Create a standard project and do not add any shortcuts to the start menu.

2. In the OnMaintUIBefore() event and modify the code to call OnFirstUIBefore().

3. In the OnMainUIAfter() event place code to remove the uninstall registry key. This will prevent the application from being seen in the Control Panel..Add/Remove Apps panel. The registry key for software uninstall keys is: "Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall"

Hope this helps.

Bishop
06-17-2003, 01:24 PM
Thanks, that seems to have gotten rid of the maintance screen... however, the deletion of that registry key seems insufficient. On Windows 2000 SP3, I continue to see the entry in the Add/Remove Program screen.

Any other hints?

philiph
06-17-2003, 02:02 PM
I would suggest searching the registry for your application's name. As far as I know the Add/Remove programs panel reads all of it's info from the registry.

Bishop
06-17-2003, 02:07 PM
There are a total of 6 keys. 3 based on PRODUCT_GUID #, which is easy to track, and 3, like the following:

HKEY_CLASSES_ROOT\Installer\Products\B8EA0266E7BEACC40A559E9D6A5F04AB\SourceList

Which are based on a GUID that I haven't seen anywhere in my application. Any idea where it comes from?

RobertDickau
06-17-2003, 02:18 PM
For information about those "compressed GUIDs", see InstallShield KB article Q105971, at http://support.installshield.com/kb.

To suppress the creation of this internal MSI information, you can "condition out" or remove the MSI actions that register a product on the target system; see www.installsite.org > Windows Installer > InstallShield Developer Samples > InstallShield Developer Utility Collection.

Bishop
06-17-2003, 02:42 PM
I think that's it! For anyone else who is interested:

There were my 6 keys I found with my test program.
HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\{6620AE8B-EB7E-4CCA-A055-E9D9A6F540BA}
HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\InstallShield Uninstall Information\\{6620AE8B-EB7E-4CCA-A055-E9D9A6F540BA}
HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\InstallShield_{6620AE8B-EB7E-4CCA-A055-E9D9A6F540BA}
HKEY_CLASSES_ROOT\\Installer\\Products\\B8EA0266E7BEACC40A559E9D6A5F04AB
HKEY_LOCAL_MACHINE\\SOFTWARE\\Classes\\Installer\\Products\\B8EA0266E7BEACC40A559E9D6A5F04AB
HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Installer\\UserData\\S-1-5-18\\Products\\B8EA0266E7BEACC40A559E9D6A5F04AB