Archive: How can i use "InstType" to delete some registry keys when uninstall the program ?


How can i use "InstType" to delete some registry keys when uninstall the program ?
What i want to do :
- to delete specific registry keys when the user uninstall the program base of insttype.
e.g Lets say i have :
InstType "Client"
InstType "Server"

- to create shorcut on XP os
This line don't work:
CreateShortCut "$SMPROGRAMS\myprogram\Uninstall.lnk" "$INSTDIR\uninstall.exe" "" "$INSTDIR\uninstall.exe" 0


Adiall,

About the shortcut, first create the dir with
CreateDirectory "$SMPROGRAMS\myprogram"

About deleting RegKeys:
DeleteRegStr might do the trick.
First save the insttype to the registry and at uninstall again read it from registry to know what to delete from the registry.

Is this an aswer to what you where trying to do?

Good luck, greetz,
Hendri.