December 31, 200619 yr hi,i've configured my wpi and after windows unattended installation it runs, BUT no configuration loaded so i figured out that it adds one line to register and loads the config file from there.. so how to add these this line to register before wpi runs?(i tried something but it always loads wpi first and then adds that register line)what i did wrong?
December 31, 200619 yr Author i have this line in cmdlines.txt"RunWPI.cmd"and that cmd contains this..for /f "delims=: tokens=1" %%i in ("%~dp0") do set drive=%%i:set wpipath=%drive%\wpiSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY%\999 /V 1 /D "%wpipath%\WPI.hta" /f
December 31, 200619 yr Author and i meant this about the register:[HKEY_CURRENT_USER\Software\WPI]"ConfigFile"="./WPIScripts/konffi.js"without that is wont work
December 31, 200619 yr Author ah.. i got it!renamed konffi.js -> config.jsafter that there is no need to add that register line
January 10, 200719 yr You can also load a config file by passing an argument to WPI. For example, in your RunWPI.cmd you could have called WPI int the following way:REG ADD %KEY%\999 /V 1 /D "mshta.exe '%wpipath%\WPI.hta' config='%wpipath%\WPIScripts\konffi.js'" /f
Create an account or sign in to comment