Jump to content

will this work


Recommended Posts

this is the last line on my winnt.sif

[GuiRunOnce]

command1="%cdrom%\WPI\WPI.cmd"

When windows is done installing will this call wpi properly? I'm installing everything from the cd I don't want anything on the hard drive.

Link to comment
Share on other sites


ok that ^ sounded stupid, sorry. I'm a little confused still thats a little too much for me. Would I have to change wpi.cmd then? Is that what its telling me?

Here is my wpi.cmd what would I have to change?

@ECHO OFF

REM Example, how to look for CDROM-drive. Must have WPI.ico at the root of the CD.
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:\WPI.ico 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%

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

REM Force resolution to needed size for wpi interface.
REM %wpipath%Tools\ResChange.exe -width=1280 -height=1024 -depth=max -refresh=max

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

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

REM Make WPI directory the current directory.
cd /d "%wpipath%"

REM Start WPI and wait for its end
wpi.hta

REM Undo registry tweak.
regedit /s %wpipath%common\undo.reg

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

REM Rebooting the sytem to finalize the installation process.
REM shutdown.exe -r -f -t 30 -c "To finish installations WPI will now reboot in 30 sec..."

exit

:end

Edited by EdGaR
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...