summaryrefslogtreecommitdiff
path: root/windows_installer.nsi
diff options
context:
space:
mode:
Diffstat (limited to 'windows_installer.nsi')
-rw-r--r--windows_installer.nsi6
1 files changed, 3 insertions, 3 deletions
diff --git a/windows_installer.nsi b/windows_installer.nsi
index 31a39c5..cbe11a8 100644
--- a/windows_installer.nsi
+++ b/windows_installer.nsi
@@ -28,8 +28,6 @@ Page instfiles
UninstPage instfiles
Section
- WriteUninstaller $INSTDIR\${UNINSTNAME}.exe
-
SetOutPath "$INSTDIR"
File candy_gear.exe
File "$%DLL_PATH%\\libbrotlicommon.dll"
@@ -60,13 +58,15 @@ Section
SetOutPath "$INSTDIR\lib"
File /r lib\*.rb
+ WriteUninstaller $INSTDIR\${UNINSTNAME}.exe
+
WriteRegStr ${REGHKEY} "${REGPATH}\${REGAPPKEY}" "InstallLocation" \
"$INSTDIR"
WriteRegStr ${REGHKEY} "${REGPATH_WINUNINST}\${REGAPPKEY}" "DisplayName" \
"CandyGear"
WriteRegStr ${REGHKEY} "${REGPATH_WINUNINST}\${REGAPPKEY}" \
- "UninstallString" '"$INSTDIR\${UNINSTNAME}.exe"'
+ "UninstallString" "$INSTDIR\${UNINSTNAME}.exe"
WriteRegStr ${REGHKEY} "${REGPATH_WINUNINST}\${REGAPPKEY}" \
"InstallLocation" "$INSTDIR"
SectionEnd