You can also use this to add the environment variable pre-restart out of WinPE so that it is there even before LANDesk installs. It should auto detect if its 32bit or 64bit. I have not tested this yet - but it should work as is.
Create a provisioning task to execute a batch file:
Create a batch file containing:
echo Windows Registry Editor Version 5.00 > x:\import.reg
echo [HKEY_LOCAL_MACHINE\hklmtemp\ControlSet001\Control\Session Manager\Environment] >> x:\import.reg
if exist "c:\program files (x86)\" (echo "LDMS_LOCAL_DIR"="C:\Program Files (x86)\LANDesk\LDClient\Data" > x:\import.reg) else (echo "LDMS_LOCAL_DIR"="C:\Program Files\LANDesk\LDClient\Data" >> x:\import.reg)
echo [HKEY_LOCAL_MACHINE\hklmtemp\ControlSet002\Control\Session Manager\Environment] >> x:\import.reg
if exist "c:\program files (x86)\" (echo "LDMS_LOCAL_DIR"="C:\Program Files (x86)\LANDesk\LDClient\Data" > x:\import.reg) else (echo "LDMS_LOCAL_DIR"="C:\Program Files\LANDesk\LDClient\Data" >> x:\import.reg)
reg load hklm\hklmtemp c:\windows\system32\config\system
reg import x:\import.reg
reg unload hklm\hklmtemp
del /f /q x:\import.reg
Let me know if it doesn't work correctly,
-Peter