how to add an uninstall shortcut icon using installshield
This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
adding uninstall shortcut icon
Started by
Guest_kiranmanohar
, Apr 23 2003 05:33
2 replies to this topic
Posted 01 May 2003 - 10:29
Hi, could you create a shortcut that points to your install and passes it the /uninst or -uninst command line parameter?
Perhaps you could use the DISK1TARGET to find out where your install was copied to when it was initially installed, use that path to create your shortcut. I could be wrong with that system variable, there might be another one to use...
Perhaps you could use the DISK1TARGET to find out where your install was copied to when it was initially installed, use that path to create your shortcut. I could be wrong with that system variable, there might be another one to use...
Posted 01 May 2003 - 20:17
Sort of, but that's not the preferred way of doing it.
Simply retrieve the registry value that Add/Remove Programs uses. This being the following:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\<InstallGUID>\UninstallString
Then use its data to create the uninstall shortcut. You'll need to do so after the OnMoving event in order for this entry to be populated, so I'd suggest during the OnFirstUIAfter.
The InstallGUID can be retrieved by opening your IS project, click Project | Settings, hit the Application tab, and read the value of GUID.
Simply retrieve the registry value that Add/Remove Programs uses. This being the following:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\<InstallGUID>\UninstallString
Then use its data to create the uninstall shortcut. You'll need to do so after the OnMoving event in order for this entry to be populated, so I'd suggest during the OnFirstUIAfter.
The InstallGUID can be retrieved by opening your IS project, click Project | Settings, hit the Application tab, and read the value of GUID.