Help - Search - Members - Calendar
Full Version: Stand-Alone WPI Cd
MSFN Forums > Member Contributed Projects > Windows Post-Install Wizard (WPI)

   
Google Internet Forums Unattended CD/DVD Guide
bober
incase anyone else removes i.e. and wants to run wpi as a standalone cd.

Autorun.inf
CODE
[AutoRun]
open=START.cmd
icon=wpi.ico


START.cmd
CODE
REGEDIT /S hta.reg

start/wait "" C:\WINDOWS\system32\mshta.exe "%CD%\wpi.hta"

exit


hta.reg
CODE
;thanks Clint
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.hta]
@="hta_auto_file"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\hta_auto_file\shell\open\command]
@="\"C:\\WINDOWS\\system32\\mshta.exe\" \"%1\""



place these 3 files in the WPI directory. they will silently reg mshta.exe and start WPI.hta.
Clint
Hehe, thats an old reggie right there newwink.gif

Actually you can ditch the hta.reg..

mshta will find it anyway if you use the %windir%\system32\mshta.exe "%CD%\wpi.hta" command....gives you
freedom to use the disc even in a secondary boot or such newwink.gif

I didn't knew that back then newwink.gif
bober
i found that thru google.
thanks again,Clint. thumbup.gif
Clint
Np bro! smile.gif
midi2k6
Autorun.inf
CODE
[AutoRun]
open=START.cmd
icon=wpi.ico


START.cmd
CODE
REGEDIT /S hta.reg

start/wait "" C:\WINDOWS\system32\mshta.exe "%CD%\wpi.hta"

exit



NICE! but would be nicer if the CMD window dissapeared rolleyes.gif
add cmdow.exe in your WPI root
I got mine START.CMD:

%cdrom%\wpi\cmdow.exe @ /hid
REGEDIT /S hta.reg
start /wait %systemroot%\system32\mshta.exe "%CD%\wpi.hta"

exit
Kelsenellenelvian
Yeah thats all fine and dandy except for almost every AV in the world now detects cmdow as a virus....
Google Internet Forums Unattended CD/DVD Guide
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.