From 4e37d840772fbc144e0992fe39ed3d3818fc1cff Mon Sep 17 00:00:00 2001 From: theadib Date: Sat, 24 Jun 2006 17:09:09 +0000 Subject: [PATCH] check Context before doing shortcuts --- packaging/win32/inkscape.nsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packaging/win32/inkscape.nsi b/packaging/win32/inkscape.nsi index f5c2e5514..d54592d00 100644 --- a/packaging/win32/inkscape.nsi +++ b/packaging/win32/inkscape.nsi @@ -525,6 +525,14 @@ Section $(lng_Alluser) SecAlluser ; disable this option in Win95/Win98/WinME SectionIn 1 2 3 StrCpy $MultiUser "1" + StrCmp $MultiUser "1" "" SingleUser + DetailPrint "admin mode, registry root will be HKLM" + SetShellVarContext all + Goto endSingleUser + SingleUser: + DetailPrint "single user mode, registry root will be HKCU" + SetShellVarContext current + endSingleUser: SectionEnd SectionGroup $(lng_Shortcuts) SecShortcuts -- 2.30.2