From: theadib Date: Mon, 22 May 2006 21:20:29 +0000 (+0000) Subject: solved 1363049 no uninstall option X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4c2ef73cd77ad9e5a3b9665d327ee9b6fd1eda86;p=inkscape.git solved 1363049 no uninstall option --- 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"