NSIS doesn't like uninst being in Program
This commit is contained in:
+6
-13
@@ -55,14 +55,6 @@ do_uninstall_nsis:
|
||||
Exec "$INSTDIR\uninst.exe"
|
||||
old_nsis_not_installed:
|
||||
|
||||
IfFileExists "$INSTDIR\Program\uninst.exe" prompt_uninstall_nsis2 old_nsis_not_installed2
|
||||
prompt_uninstall_nsis2:
|
||||
MessageBox MB_YESNO|MB_ICONINFORMATION "The previous version of StepMania must be uninstalled before continuing.$\nDo you wish to continue?" IDYES do_uninstall_nsis2
|
||||
Abort
|
||||
do_uninstall_nsis2:
|
||||
Exec "$INSTDIR\Program\uninst.exe"
|
||||
old_nsis_not_installed2:
|
||||
|
||||
; Check for DirectX 8.0 (to be moved to the right section later)
|
||||
; We only use this for sound. Actually, I could probably make the sound
|
||||
; work with an earlier one; I'm not sure if that's needed or not. For one
|
||||
@@ -98,12 +90,12 @@ Section ""
|
||||
; write out uninstaller
|
||||
SetOutPath "$INSTDIR"
|
||||
SetOverwrite on
|
||||
WriteUninstaller "$INSTDIR\Program\uninst.exe"
|
||||
WriteUninstaller "$INSTDIR\uninst.exe"
|
||||
|
||||
; add registry entries
|
||||
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\StepMania\${PRODUCT_ID}" "" "$INSTDIR"
|
||||
WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_ID}" "DisplayName" "${PRODUCT_ID} (remove only)"
|
||||
WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_ID}" "UninstallString" '"$INSTDIR\Program\uninst.exe"'
|
||||
WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_ID}" "UninstallString" '"$INSTDIR\uninst.exe"'
|
||||
|
||||
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\Applications\smpackage.exe\shell\open\command" "" '"$INSTDIR\Program\smpackage.exe" "%1"'
|
||||
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\smzipfile" "" "SMZIP package"
|
||||
@@ -245,10 +237,10 @@ CreateShortCut "$SMPROGRAMS\${PRODUCT_ID}\Open StepMania Program Folder.lnk" "$W
|
||||
CreateShortCut "$SMPROGRAMS\${PRODUCT_ID}\View Statistics.lnk" "$INSTDIR\Data\MachineProfile\stats.html"
|
||||
CreateShortCut "$SMPROGRAMS\${PRODUCT_ID}\StepMania Tools and Package Exporter.lnk" "$INSTDIR\Program\smpackage.exe"
|
||||
CreateShortCut "$SMPROGRAMS\${PRODUCT_ID}\README-FIRST.lnk" "$INSTDIR\README-FIRST.html"
|
||||
CreateShortCut "$SMPROGRAMS\${PRODUCT_ID}\Uninstall ${PRODUCT_NAME_VER}.lnk" "$INSTDIR\Program\uninst.exe"
|
||||
CreateShortCut "$SMPROGRAMS\${PRODUCT_ID}\Uninstall ${PRODUCT_NAME_VER}.lnk" "$INSTDIR\uninst.exe"
|
||||
CreateShortCut "$SMPROGRAMS\${PRODUCT_ID}\Go To StepMania web site.lnk" "http://www.stepmania.com"
|
||||
|
||||
CreateShortCut "$INSTDIR\stepmania.lnk" "$INSTDIR\Program\stepmania.exe"
|
||||
CreateShortCut "$INSTDIR\StepMania.lnk" "$INSTDIR\Program\stepmania.exe"
|
||||
|
||||
# We want to delete a few old desktop icons, since they weren't being
|
||||
# uninstalled correctly during alpha 2 and 3. They were installed in
|
||||
@@ -274,7 +266,7 @@ UninstallText "This will uninstall StepMania from your system.$\nAny add-on pack
|
||||
Section Uninstall
|
||||
|
||||
; add delete commands to delete whatever files/registry keys/etc you installed here.
|
||||
Delete "$INSTDIR\Program\uninst.exe"
|
||||
Delete "$INSTDIR\uninst.exe"
|
||||
DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\StepMania\${PRODUCT_ID}"
|
||||
DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_ID}"
|
||||
|
||||
@@ -365,6 +357,7 @@ RMDir "$INSTDIR\Program"
|
||||
Delete "$INSTDIR\log.txt"
|
||||
Delete "$INSTDIR\info.txt"
|
||||
Delete "$INSTDIR\crashinfo.txt"
|
||||
Delete "$INSTDIR\StepMania.lnk"
|
||||
|
||||
RMDir "$INSTDIR" ; will delete only if empty
|
||||
|
||||
|
||||
Reference in New Issue
Block a user