pingus-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pingus-CVS] r3383 - trunk/windows_installer


From: jsalmon3
Subject: [Pingus-CVS] r3383 - trunk/windows_installer
Date: Mon, 29 Oct 2007 07:17:48 +0100

Author: jsalmon3
Date: 2007-10-29 07:17:45 +0100 (Mon, 29 Oct 2007)
New Revision: 3383

Modified:
   trunk/windows_installer/pingus.nsi
Log:
Add to Add/Remove Programs

Modified: trunk/windows_installer/pingus.nsi
===================================================================
--- trunk/windows_installer/pingus.nsi  2007-10-29 05:50:14 UTC (rev 3382)
+++ trunk/windows_installer/pingus.nsi  2007-10-29 06:17:45 UTC (rev 3383)
@@ -1,9 +1,10 @@
 !include "MUI.nsh"
 
 !define NAME "Pingus"
+!define VERSION "0.7.2"
 
 Name "${NAME}"
-OutFile "Pingus-0.7.2.exe"
+OutFile "${NAME}-${VERSION}.exe"
 
 #!define MUI_ICON "src/win32/icon1.ico"
 #!define MUI_UNICON "src/win32/icon1.ico"
@@ -42,6 +43,12 @@
   SetOutPath "$INSTDIR"
   File /r "pingus\*.*"
   WriteRegStr HKCU "Software\${NAME}" "" $INSTDIR
+  WriteRegStr HKLM 
"Software\Microsoft\Windows\CurrentVersion\Uninstall\${NAME}" "DisplayName" 
"${NAME}"
+  WriteRegStr HKLM 
"Software\Microsoft\Windows\CurrentVersion\Uninstall\${NAME}" "DisplayVersion" 
"${VERSION}"
+  WriteRegStr HKLM 
"Software\Microsoft\Windows\CurrentVersion\Uninstall\${NAME}" "InstallLocation" 
$INSTDIR
+  WriteRegStr HKLM 
"Software\Microsoft\Windows\CurrentVersion\Uninstall\${NAME}" "UninstallString" 
"$INSTDIR\Uninstall.exe"
+  WriteRegDWORD HKLM 
"Software\Microsoft\Windows\CurrentVersion\Uninstall\${NAME}" "NoModify" 1
+  WriteRegDWORD HKLM 
"Software\Microsoft\Windows\CurrentVersion\Uninstall\${NAME}" "NoRepair" 1
   !insertmacro MUI_STARTMENU_WRITE_BEGIN Application
     CreateDirectory "$SMPROGRAMS\$STARTMENU_FOLDER"
     CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\${NAME}.lnk" 
"$INSTDIR\pingus.exe"
@@ -61,5 +68,6 @@
   RMDir "$SMPROGRAMS\$MUI_TEMP"
 
   DeleteRegKey /ifempty HKCU "Software\${NAME}"
+  DeleteRegKey HKLM 
"Software\Microsoft\Windows\CurrentVersion\Uninstall\${NAME}"
 SectionEnd
 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]