Jump to content


Recommended Posts

Hey guys, please help me with this.

I upgraded WPI to the latest version.

Now, if I want my Appz to install I have to put them into the $OEM$\$1\install\wpi


When I do this all my Appz are being copied to the HDD before installating.

I don't want that, I want to install them from the CD.

How do I configure wpi.cmd and winnt.sif to do that.

I tried :


%cdrom%\install\wpi\wpi.cmd in the winnt.sif and

set wpipath=%cdrom% in the wpi.cmd but it doesn't work.

So please explain how to install XP and then run WPI to install Apzz from the CD !

Thenx !

Link to comment
Share on other sites

To my knowledge in wpi to stop being copied to the $oem$ folder you in WPI. When you provide the path to install applications must be changed.




As far as I know that should work

Link to comment
Share on other sites

Thougt I have tried that, but will try it again now.

I had it working a few month ago with an older version of wpi, but now it's not

working with the new version. Think I lost it.

Too bad it take so long to install XP with Virtual PC too test it.

Link to comment
Share on other sites

No luck guys,

This is in my WINNT.SIF :




After installing I get a message that %cdrom%\wpi\wpi.cmd

could not be found...the path is alright so what is wrong ??

Link to comment
Share on other sites

No luck guys,

This is in my WINNT.SIF :




After installing I get a message that %cdrom%\wpi\wpi.cmd

could not be found...the path is alright so what is wrong ??

Ok according to this you should have your WPI folder as soon as you open the disc so it's along with setup.exe and WIN51 and such. If it's not there then move the appropriate files to a WPI folder at the root of the disc



Create a folder called WPI in I386 and add all your files and hopefully this should work

Link to comment
Share on other sites

F*ck this, I changed the path to %cdrom%\I386\wpi\wpi.cmd and still the same problem.

Never had problems before...what is going on.

I better get back to an older version...too bad I liked the new features so if somebody can help me.

It seems to go wrong in my sif file at [GuiRunOnce].

After the reboot it can't find the file %cdrom%\I386\wpi\wpi.cmd.

Strange also...why does it say %cdrom% instead of a driveletter ??

If I run the cmd manually there's no problem :realmad::realmad:

Link to comment
Share on other sites

Ok...Heres what I did. I put the WPI.cmd file in the $OEM$\$1\Install\wpi\ folder so it copies that to the hard drive.

Under GUI run once thing, just leave that to the default:



When it calls the WPI.cmd, the CMD file searches for the CD drive that has WPI on it. Here is my WPI.cmd file:

****** Where it says BoXP.txt , MAKE A File on your XP CD like something.txt and change the below to match that, the CD has to have a file on it for it to search for *********


REM Example, how to look for CDROM-drive. Must have a file to identify in its root (like WIN51 or WPI.ico).
for %%i in (C D E F G H I J K L M N O P Q R S T U V W X Y Z) do if exist %%i:\BoXP.txt set CDROM=%%i:
echo Found CD-Rom as drive %CDROM%

REM Determine the WPI startup path.
REM if wpi should run off the cd the replace %~dp0 with %cdrom%.
set wpipath=%CDROM%\wpi

REM Hide this command window.
"%wpipath%\common\cmdow.exe" @ /hid

REM Font installation - the smooth and customizable way.
start /wait %wpipath%\common\fonts\fontinstaller.exe

REM Special registry tweak needed.
regedit /s "%wpipath%\common\wpi.reg"

REM Make WPI directory the current directory.
for /f "delims=: tokens=1" %%i in ("%wpipath%") do %%i:
cd "%wpipath%"

REM Start WPI and wait for its end
start /wait WPI.hta

REM Cleaning up the desktop.
del /s/q "%userprofile%\desktop\*.lnk"

REM Confirming a reboot...
echo Dim WshShell, oExec>%tmp%\WPI.vbs
echo Set WshShell = CreateObject("WScript.Shell")>>%tmp%\WPI.vbs
echo answer = Msgbox(" Installation has finished! Should I REBOOT now? ",VBYesNo,"BoXP Post Install")>>%tmp%\WPI.vbs
echo if answer = 6 then>>%tmp%\WPI.vbs
echo oExec = WshShell.Run("SHUTDOWN -r -t 5", 1, true)>>%tmp%\WPI.vbs
echo end if>>%tmp%\WPI.vbs
echo set WshShell = nothing>>%tmp%\WPI.vbs
del /q %tmp%\WPI.vbs



What this will do is, it will find the RIGHT CDROM drive, the one with WPI on it, and then it will run WPI from that. If you use my WPI.cmd file above, it will run wpi from %CDROM%\wpi . Then if you have your programs set to install from %CDROM%\Install just put your programs in a folder named Install on the cd.

If you do the above, it will work :) Good luck

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...