simexi Posted December 31, 2006 Share Posted December 31, 2006 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? Link to comment Share on other sites More sharing options...
Kelsenellenelvian Posted December 31, 2006 Share Posted December 31, 2006 How are you calling WPI and what is your config file named? Link to comment Share on other sites More sharing options...
simexi Posted December 31, 2006 Author Share Posted December 31, 2006 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 Link to comment Share on other sites More sharing options...
Kelsenellenelvian Posted December 31, 2006 Share Posted December 31, 2006 what is your config file named? Link to comment Share on other sites More sharing options...
simexi Posted December 31, 2006 Author Share Posted December 31, 2006 konffi.js Link to comment Share on other sites More sharing options...
simexi Posted December 31, 2006 Author Share Posted December 31, 2006 and i meant this about the register:[HKEY_CURRENT_USER\Software\WPI]"ConfigFile"="./WPIScripts/konffi.js"without that is wont work Link to comment Share on other sites More sharing options...
simexi Posted December 31, 2006 Author Share Posted December 31, 2006 ah.. i got it!renamed konffi.js -> config.jsafter that there is no need to add that register line Link to comment Share on other sites More sharing options...
zorphnog Posted January 10, 2007 Share Posted January 10, 2007 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 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now