]> Dogcows Code - chaz/yoink/blobdiff - win32/yoink.nsi
new convenient script methods
[chaz/yoink] / win32 / yoink.nsi
index 7f1b635094714bf2bc3f56bf4e88d3acf8f8c28f..2638a655caa0932e13971a6de5a23f9a739c9871 100644 (file)
@@ -12,7 +12,7 @@
 
   ;Name and file
   Name "Yoink"
-  OutFile "yoinksetup-$VERSION.exe"
+  OutFile "${OUTFILE}"
   SetCompressor /SOLID lzma
 
   ;Default installation folder
@@ -27,8 +27,8 @@
 ;--------------------------------
 ;Interface Settings
 
-  !define MUI_ICON "../src/setup.ico"
-  !define MUI_UNICON "../src/uninstall.ico"
+  !define MUI_ICON "${ROOTPATH}/win32/setup.ico"
+  !define MUI_UNICON "${ROOTPATH}/win32/uninstall.ico"
 
   !define MUI_COMPONENTSPAGE_SMALLDESC
 
@@ -64,7 +64,7 @@ Section "Install Yoink!" SecInstallYoink
   SetOutPath "$INSTDIR"
   
   ;ADD YOUR OWN FILES HERE...
-  File /r "$INSTALLFILES/*"
+  File /r "${INSTALLFILES}/*"
   
   ;Store installation folder
   WriteRegStr HKCU "Software\Yoink" "" $INSTDIR
@@ -78,9 +78,9 @@ Section "Install Yoink!" SecInstallYoink
   CreateShortCut "$SMPROGRAMS\Yoink\Uninstall.lnk" "$INSTDIR\uninstall.exe"
 
   WriteRegStr HKCU "Software\Games\Yoink" "" "$INSTDIR"
-  WriteRegStr HKCU "Software\Games\Yoink" "Version" "$VERSION"
+  WriteRegStr HKCU "Software\Games\Yoink" "Version" "${VERSION}"
   WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\Yoink" "DisplayName" "Yoink"
-  WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\Yoink" "DisplayVersion" "$VERSION"
+  WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\Yoink" "DisplayVersion" "${VERSION}"
   WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\Yoink" "UninstallString" "$INSTDIR\uninstall.exe"
 
 SectionEnd
This page took 0.01833 seconds and 4 git commands to generate.