im.pidgin.pidgin: ad46e110c3a4472f6e0c1638206a5cb2c1ef6da5

datallah at pidgin.im datallah at pidgin.im
Mon Nov 5 23:45:35 EST 2007


-----------------------------------------------------------------
Revision: ad46e110c3a4472f6e0c1638206a5cb2c1ef6da5
Ancestor: be8443865479361e5753116242ef2e85b999798c
Author: datallah at pidgin.im
Date: 2007-11-06T04:42:45
Branch: im.pidgin.pidgin

Modified files:
        pidgin/win32/nsis/pidgin-installer.nsi

ChangeLog: 

Add /DS=[0,1] and /SMS=[0,1] to the win32 installer for enabling and disabling the Desktop Shortcut and Start Menu Shortcut respectively. Fixes #3814.

-------------- next part --------------
============================================================
--- pidgin/win32/nsis/pidgin-installer.nsi	a9ce68573052ac96dd1e811706d9e83c1252066b
+++ pidgin/win32/nsis/pidgin-installer.nsi	76778028e4c6848e2e486db00fed161d4840ca15
@@ -1103,7 +1103,7 @@ Function DoWeNeedGtk
 
   have_gtk:
     ; GTK+ is already installed; check version.
-	; Change this to not even run the GTK installer if this version is already installed.
+    ; Change this to not even run the GTK installer if this version is already installed.
     ${VersionCompare} ${GTK_INSTALL_VERSION} $0 $3
     IntCmp $3 1 +1 good_version good_version
     ${VersionCompare} ${GTK_MIN_VERSION} $0 $3
@@ -1167,6 +1167,8 @@ Function .onInit
 
 Function .onInit
   Push $R0
+  Push $R1
+  Push $R2
   System::Call 'kernel32::CreateMutexA(i 0, i 0, t "pidgin_installer_running") i .r1 ?e'
   Pop $R0
   StrCmp $R0 0 +3
@@ -1233,9 +1235,9 @@ Function .onInit
 
   ${GetParameters} $R0
   ClearErrors
-  ${GetOptions} $R0 "/L=" $R0
+  ${GetOptions} "$R0" "/L=" $R1
   IfErrors +3
-  StrCpy $LANGUAGE $R0
+  StrCpy $LANGUAGE $R1
   Goto skip_lang
 
   ; Select Language
@@ -1243,6 +1245,28 @@ Function .onInit
     !insertmacro MUI_LANGDLL_DISPLAY
     skip_lang:
 
+  ClearErrors
+  ${GetOptions} "$R0" "/DS=" $R1
+  IfErrors +7
+  SectionGetFlags ${SecDesktopShortcut} $R2
+  StrCmp "1" $R1 0 +2
+  IntOp $R2 $R2 | ${SF_SELECTED}
+  StrCmp "0" $R1 0 +3
+  IntOp $R1 ${SF_SELECTED} ~
+  IntOp $R2 $R2 & $R1
+  SectionSetFlags ${SecDesktopShortcut} $R2
+
+  ClearErrors
+  ${GetOptions} "$R0" "/SMS=" $R1
+  IfErrors +7
+  SectionGetFlags ${SecStartMenuShortcut} $R2
+  StrCmp "1" $R1 0 +2
+  IntOp $R2 $R2 | ${SF_SELECTED}
+  StrCmp "0" $R1 0 +3
+  IntOp $R1 ${SF_SELECTED} ~
+  IntOp $R2 $R2 & $R1
+  SectionSetFlags ${SecStartMenuShortcut} $R2
+
   ; If install path was set on the command, use it.
   StrCmp $INSTDIR "" 0 instdir_done
 
@@ -1270,6 +1294,8 @@ Function .onInit
 
   instdir_done:
 ;LogSet on
+  Pop $R2
+  Pop $R1
   Pop $R0
 FunctionEnd
 


More information about the Commits mailing list