mirror of
https://github.com/PhoenixPE/PhoenixPE.git
synced 2025-09-17 02:28:09 +02:00
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:
@@ -34,8 +34,8 @@ Description=(v6.0.10) .NET 6 is a cross-platform software development framework
|
|||||||
Selected=False
|
Selected=False
|
||||||
Level=4
|
Level=4
|
||||||
Author=Homes32
|
Author=Homes32
|
||||||
Version=1.0.4.0
|
Version=1.0.5.0
|
||||||
Date=2022-10-22
|
Date=2022-12-04
|
||||||
Mandatory=False
|
Mandatory=False
|
||||||
|
|
||||||
[Variables]
|
[Variables]
|
||||||
@@ -69,7 +69,7 @@ RegLoadHives
|
|||||||
// Add to system PATH
|
// Add to system PATH
|
||||||
RegRead,HKLM,"Tmp_System\ControlSet001\Control\Session Manager\Environment","Path",%SysPath%
|
RegRead,HKLM,"Tmp_System\ControlSet001\Control\Session Manager\Environment","Path",%SysPath%
|
||||||
StrFormat,CTrim,%SysPath%,";",%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
|
// Add version to reg for other programs to detect
|
||||||
If,%SourceArch%,Equal,x64,Begin
|
If,%SourceArch%,Equal,x64,Begin
|
||||||
|
Reference in New Issue
Block a user