BartPE does not set the ProgramFiles environment variable.
There are applications/tools/etc. out there that malfunction, or do not work at all, if ProgramFiles is not set.
This is a very simple plugin, highly recommended for Nu2Shell and any other shell that does not set ProgramFiles itself.
XPE sets ProgramFiles by default, thus this plugin is not necessary in XPE.
ProgramFilesEnv.inf
CODE
; PE Builder v3 plug-in INF
; Created by Juan Zak
; This plugin sets the environment variable "ProgramFiles"
; Disable this plugin if using XPE (or other shell that sets the variable itself)
[Version]
Signature="$Windows NT$"
[PEBuilder]
Name="ProgramFiles environment variable"
Enable=1
[SetupReg.AddReg]
0x2,"ControlSet001\Control\Session Manager\Environment","ProgramFiles","%SystemDrive%\Programs"
; Created by Juan Zak
; This plugin sets the environment variable "ProgramFiles"
; Disable this plugin if using XPE (or other shell that sets the variable itself)
[Version]
Signature="$Windows NT$"
[PEBuilder]
Name="ProgramFiles environment variable"
Enable=1
[SetupReg.AddReg]
0x2,"ControlSet001\Control\Session Manager\Environment","ProgramFiles","%SystemDrive%\Programs"
There are plugins for more elaborate environment sets if needed. Please search this Forum.
Happy building,
Juan