changeset 4126:e8f2fdf78662

[gaim-migrate @ 4343] Gaim installed to all users Start Menu (on multi-user systems) committer: Tailor Script <tailor@pidgin.im>
author Herman Bloggs <hermanator12002@yahoo.com>
date Mon, 23 Dec 2002 23:27:21 +0000
parents 6ba49fc29d67
children 00c4040f630f
files gaim-installer.nsi
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/gaim-installer.nsi	Mon Dec 23 23:22:47 2002 +0000
+++ b/gaim-installer.nsi	Mon Dec 23 23:27:21 2002 +0000
@@ -73,11 +73,15 @@
   Call AddSharedDLL
 
   ; Set Start Menu icons
+  SetShellVarContext "all"
   SetOutPath "$SMPROGRAMS\Gaim"
   CreateShortCut "$SMPROGRAMS\Gaim\Gaim.lnk" \
                  "$INSTDIR\gaim.exe"
   CreateShortCut "$SMPROGRAMS\Gaim\Unistall.lnk" \
                  "$INSTDIR\gaim-uninst.exe"
+  ; Set Desktop icon
+  CreateShortCut "$DESKTOP\Gaim.lnk" \
+                 "$INSTDIR\gaim.exe"
 
   ; write out uninstaller
   WriteUninstaller "$INSTDIR\gaim-uninst.exe"
@@ -89,7 +93,11 @@
 Section Uninstall
   ; Delete Gaim Dir
   RMDir /r "$INSTDIR"
+
+  ; Delete Start Menu group & Desktop icon
+  SetShellVarContext "all"
   RMDir /r "$SMPROGRAMS\Gaim"
+  Delete "$DESKTOP\Gaim.lnk"
 
   ; Read in Aspell install path
   ReadRegStr $R0 HKEY_LOCAL_MACHINE "Software\Gaim" "AspellPath"