[ros-diffs] [dreimer] 27580: This fixes the needed Variable

dreimer at svn.reactos.org dreimer at svn.reactos.org
Tue Jul 10 23:32:25 CEST 2007


Author: dreimer
Date: Wed Jul 11 01:32:24 2007
New Revision: 27580

URL: http://svn.reactos.org/svn/reactos?rev=27580&view=rev
Log:
This fixes the needed Variable

Modified:
    trunk/tools/RosBE-Windows/WriteEnvStr.nsh

Modified: trunk/tools/RosBE-Windows/WriteEnvStr.nsh
URL: http://svn.reactos.org/svn/reactos/trunk/tools/RosBE-Windows/WriteEnvStr.nsh?rev=27580&r1=27579&r2=27580&view=diff
==============================================================================
--- trunk/tools/RosBE-Windows/WriteEnvStr.nsh (original)
+++ trunk/tools/RosBE-Windows/WriteEnvStr.nsh Wed Jul 11 01:32:24 2007
@@ -4,12 +4,7 @@
 !include "WinMessages.nsh"
 
 !ifndef WriteEnvStr_RegKey
-    !ifdef ALL_USERS
-        !define WriteEnvStr_RegKey \
-           'HKLM "SYSTEM\CurrentControlSet\Control\Session Manager\Environment"'
-    !else
-        !define WriteEnvStr_RegKey 'HKCU "Environment"'
-    !endif
+    !define WriteEnvStr_RegKey 'HKCU "Environment"'
 !endif
 
 #
@@ -126,7 +121,7 @@
 !macro IsNT UN
 Function ${UN}IsNT
     Push $0
-    ReadRegStr $0 HKCU \
+    ReadRegStr $0 HKLM \
       "SOFTWARE\Microsoft\Windows NT\CurrentVersion" CurrentVersion
     StrCmp $0 "" 0 IsNT_yes
     ; we are not NT.




More information about the Ros-diffs mailing list