Fix registry ValueType, must be REG_EXPAND_SZ (0x2) and not REG_SZ (0x1); otherwise search path doesn't expand variables later

This commit is contained in:
Peter Siering
2022-12-04 15:38:00 +01:00
parent 141a2cd77a
commit 61a5e59b1f

View File

@@ -34,8 +34,8 @@ Description=(v6.0.10) .NET 6 is a cross-platform software development framework
Selected=False
Level=4
Author=Homes32
Version=1.0.4.0
Date=2022-10-22
Version=1.0.5.0
Date=2022-12-04
Mandatory=False
[Variables]
@@ -69,7 +69,7 @@ RegLoadHives
// Add to system PATH
RegRead,HKLM,"Tmp_System\ControlSet001\Control\Session Manager\Environment","Path",%SysPath%
StrFormat,CTrim,%SysPath%,";",%SysPath%
RegWrite,HKLM,0x1,"Tmp_System\ControlSet001\Control\Session Manager\Environment","Path","%SysPath%;%PEPrograms%\dotnet\;"
RegWrite,HKLM,0x2,"Tmp_System\ControlSet001\Control\Session Manager\Environment","Path","%SysPath%;%PEPrograms%\dotnet\;"
// Add version to reg for other programs to detect
If,%SourceArch%,Equal,x64,Begin