summaryrefslogtreecommitdiffstats
path: root/packaging
diff options
context:
space:
mode:
authorAdib Taraben <theadib@gmail.com>2006-05-22 21:20:29 +0000
committertheadib <theadib@users.sourceforge.net>2006-05-22 21:20:29 +0000
commit627adfd6ea9665bdc3af752433497f71e524037f (patch)
treea962b0a407ea4fc4c464c7e1ce895728e4b5db38 /packaging
parentseveral warnings (diff)
downloadinkscape-627adfd6ea9665bdc3af752433497f71e524037f.tar.gz
inkscape-627adfd6ea9665bdc3af752433497f71e524037f.zip
solved 1363049 no uninstall option
(bzr r969)
Diffstat (limited to 'packaging')
-rw-r--r--packaging/win32/inkscape.nsi17
1 files changed, 15 insertions, 2 deletions
diff --git a/packaging/win32/inkscape.nsi b/packaging/win32/inkscape.nsi
index e027f66a6..b8474f310 100644
--- a/packaging/win32/inkscape.nsi
+++ b/packaging/win32/inkscape.nsi
@@ -770,6 +770,9 @@ Section $(lng_zh_TW) SecChineseTaiwan
!insertmacro Language zh_TW zh_TW
SectionEnd
+SectionGroupEnd
+
+
Section -FinalizeInstallation
StrCmp $MultiUser "1" "" SingleUser
DetailPrint "admin mode, registry root will be HKLM"
@@ -814,8 +817,6 @@ Section -FinalizeInstallation
IfErrors 0 +2
DetailPrint "fatal: failed to write to registry un-installation info"
SectionEnd
-
-SectionGroupEnd
; Last the Descriptions
!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
@@ -1127,11 +1128,23 @@ Section Uninstall
DeleteRegKey HKCR ".svgz"
+ SetShellVarContext all
DetailPrint "removing product regkey"
DeleteRegKey SHCTX "${PRODUCT_DIR_REGKEY}"
DetailPrint "removing uninstall info"
DeleteRegKey SHCTX "${PRODUCT_UNINST_KEY}"
+ DetailPrint "removing shortcuts"
+ Delete "$DESKTOP\Inkscape.lnk"
+ Delete "$QUICKLAUNCH\Inkscape.lnk"
+ Delete "$SMPROGRAMS\Inkscape\Uninstall Inkscape.lnk"
+ Delete "$SMPROGRAMS\Inkscape\Inkscape.lnk"
+ RMDir "$SMPROGRAMS\Inkscape"
+ SetShellVarContext current
+ DetailPrint "removing product regkey"
+ DeleteRegKey SHCTX "${PRODUCT_DIR_REGKEY}"
+ DetailPrint "removing uninstall info"
+ DeleteRegKey SHCTX "${PRODUCT_UNINST_KEY}"
DetailPrint "removing shortcuts"
Delete "$DESKTOP\Inkscape.lnk"
Delete "$QUICKLAUNCH\Inkscape.lnk"