summaryrefslogtreecommitdiffstats
path: root/packaging
diff options
context:
space:
mode:
authortheAdib <theAdib@users.sourceforge.net>2006-12-27 11:19:44 +0000
committertheAdib <theAdib@users.sourceforge.net>2006-12-27 11:19:44 +0000
commite28cdefb1b30930e237a5d7301933835f1a7abce (patch)
treef86f7847ee48b6fc93d9f21b1c8023f1154cad59 /packaging
parentfix [ 1561416 ] EPS export broken (diff)
downloadinkscape-e28cdefb1b30930e237a5d7301933835f1a7abce.tar.gz
inkscape-e28cdefb1b30930e237a5d7301933835f1a7abce.zip
replace relative jumps with labels to prevent wrong target address
(bzr r2105)
Diffstat (limited to 'packaging')
-rw-r--r--packaging/win32/inkscape.nsi13
1 files changed, 7 insertions, 6 deletions
diff --git a/packaging/win32/inkscape.nsi b/packaging/win32/inkscape.nsi
index 4a4dd2845..52c69f7b4 100644
--- a/packaging/win32/inkscape.nsi
+++ b/packaging/win32/inkscape.nsi
@@ -1134,7 +1134,7 @@ FunctionEnd
Function un.CustomPageUninstall
!insertmacro MUI_HEADER_TEXT "$(lng_UInstOpt)" "$(lng_UInstOpt1)"
- !insertmacro MUI_INSTALLOPTIONS_WRITE "inkscape.nsi.uninstall" "Field 1" "Text" "$APPDATA\Inkscape\preferences.xml"
+ !insertmacro MUI_INSTALLOPTIONS_WRITE "inkscape.nsi.uninstall" "Field 1" "Text" "$APPDATA\Inkscape\"
!insertmacro MUI_INSTALLOPTIONS_WRITE "inkscape.nsi.uninstall" "Field 2" "Text" "$(lng_PurgePrefs)"
!insertmacro MUI_INSTALLOPTIONS_DISPLAY "inkscape.nsi.uninstall"
@@ -1146,7 +1146,6 @@ FunctionEnd
Function un.onInit
-
ClearErrors
StrCpy $User ""
UserInfo::GetName
@@ -1159,17 +1158,19 @@ Function un.onInit
; Test if this was a multiuser installation
ReadRegStr $0 HKLM "${PRODUCT_DIR_REGKEY}" ""
- StrCmp $0 "$INSTDIR\inkscape.exe" 0 +5
+ StrCmp $0 "$INSTDIR\inkscape.exe" 0 hkcu_user_uninstall
ReadRegStr $MultiUser HKLM "${PRODUCT_DIR_REGKEY}" "MultiUser"
ReadRegStr $askMultiUser HKLM "${PRODUCT_DIR_REGKEY}" "askMultiUser"
ReadRegStr $0 HKLM "${PRODUCT_DIR_REGKEY}" "User"
- Goto +4
+ Goto check_user_uninstall
+ hkcu_user_uninstall:
ReadRegStr $MultiUser HKCU "${PRODUCT_DIR_REGKEY}" "MultiUser"
ReadRegStr $askMultiUser HKCU "${PRODUCT_DIR_REGKEY}" "askMultiUser"
ReadRegStr $0 HKCU "${PRODUCT_DIR_REGKEY}" "User"
;check user if applicable
- StrCmp $0 "" +3
- StrCmp $0 $User +2
+ check_user_uninstall:
+ StrCmp $0 "" diff_user_uninstall_done
+ StrCmp $0 $User diff_user_uninstall_done
MessageBox MB_OKCANCEL|MB_ICONEXCLAMATION "$(lng_DIFFERENT_USER)$(lng_OK_CANCEL_DESC)" /SD IDOK IDOK diff_user_uninstall_done IDCANCEL +1
Quit
diff_user_uninstall_done: