Jump to content

config missing?


Recommended Posts

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


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

Link to comment
Share on other sites

  • 2 weeks later...

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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