Code

check Context before doing shortcuts
authortheadib <theadib@users.sourceforge.net>
Sat, 24 Jun 2006 17:09:09 +0000 (17:09 +0000)
committertheadib <theadib@users.sourceforge.net>
Sat, 24 Jun 2006 17:09:09 +0000 (17:09 +0000)
packaging/win32/inkscape.nsi

index f5c2e551401d0b4f3fb33a22f88cfe06f6a1a505..d54592d00588cb89e79605f05f1040c784b4a519 100644 (file)
@@ -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