Jump to content

Recommended Posts

Posted

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?


Posted

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%\wpi

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY%\999 /V 1 /D "%wpipath%\WPI.hta" /f

Posted

and i meant this about the register:

[HKEY_CURRENT_USER\Software\WPI]

"ConfigFile"="./WPIScripts/konffi.js"

without that is wont work :(

  • 2 weeks later...
Posted

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...