Jump to content

Recommended Posts

Posted (edited)
@ECHO OFF

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

REM Hide this command window.

%wpipath%\Tools\cmdow.exe @ /hid

REM Force resolution to needed size for wpi interface.

--start %wpipath%\Tools\VideoChanger.exe 1280x1024x32@85 -q

REM Font installation - the smooth and customizable way.

--start /wait %wpipath%\Tools\fonts\fontinstaller.exe

REM Calling the Unnatended aAdio Player

--Start %wpipath%\Tools\Music\uap2.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 %windir%\system32\mshta.exe "%CD%\wpi.hta"

REM Cleaning up the desktop.

del /s/q "%userprofile%\desktop\*.lnk"

REM Rebooting the sytem to finalize the installation process.

--shutdown.exe -r -f -t 10 -c "WPI will now reboot in 10 sec..."

exit

:end

I cant get wpi to load and I dont know why. The wpi folder is at the root of the cd and

all my programs are in the install folder. I cant give you much of the error except from the program could not be found. When I manually load wpi.cmd from "$Oems$\$1" in a virtual machine it loads just not on first startup? Anyone have any idear?

I also cant get my install paths done correctly would this be right but I keep getting cannot find file errors.

%CDROM%\\Install\\
Edited by TheeBeets

Posted (edited)

Some people have had the same problem as you and I for one have my wpi.cmd in my %oem%\system32\ Folder because for some reason when you call wpi.cmd through some places like winnt.sif it does not want to recognize it from cd.

Edited by kelsenellenelvian
Posted
Some people have had the same problem as you and I for one have my wpi.cmd in my %oem%\system32\ Folder because for some reason when you call wpi.cmd through some places like winnt.sif it does not want to recognize it from cd.

Could you explain how I could do that? so Im assuming my wpi.cmd file is correct?

Posted

Yes your WPI.cmd looks good.

I am going to assume you are using %oem% folders on your winxp disk right?

put wpi.cmd in a folder at the location of: %oem%\$$\system32

and then call it with an entry at the end of Winnt.sif

[GuiRunOnce]

"%systemroot%\system32\wpi.cmd"

WPI will run at first logon.

Posted

I still have a problem this is what I get

Screen01.jpg

I then close the white window and the cmd fails and then goes to the windows environment. I have no idea why this could be?

Posted

There are 3 entries you are going to need to change.

change all 3 of wpi.ico to win51

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:\wpi.ico set CDROM=%%i: <----- HERE

echo Found CD-Rom as drive %CDROM%

if you change the part where it says %%i:\wpi.ico you need to edit generate.js

to reflect those changes. (2 spots)

function FindCDRom()

{

position = "generate.js";

var i, li;

if (foundCDdrv) return cddrv;

li = GetCDRomDriveLetters();

for (i=0; i<li.length; i++)

{

if (FileExists(li+'\\WPI.ico'))<----- HERE

{

cddrv = li;

debug("Found CDROM as drive " + cddrv,1,2);

}

}

if (cddrv=="")

{

a = fso.GetAbsolutePathName(".");

while (a.length>=3)

{

//debug("Trying ... " + a, 1);

if (FileExists(a+'\\WPI.ico'))<----- AND HERE

Posted (edited)

I dont mean to challenge you or anything but shouldnt this be

REM Start WPI and wait for its end

start /wait %windir%\system32\mshta.exe "%CD%\wpi.hta"

Like this
REM Start WPI and wait for its end

start /wait %windir%\system32\mshta.exe "%cdrom%\wpi.hta"

Edited by TheeBeets
Posted (edited)

Ok well Ive changed wpi.ico in wpi.cmd to win51 but in generate.js the names where already win51 so they didnt need changed. It seems to work fine now. I am still getting path errors in my config.js file though

"Windows cannot find 'D:\Install\AdoReader\acroread701.exe'
prog[pn]=['Adobe Reader 7.0']

desc[pn]=['Adobe® Reader 7.0 is free Software that lets you view and print Adobe Portable Document Format (PDF) files on a variety of devices and operating systems.']

ordr[pn]=[2]

cmd1[pn]=['%CDROM%\\Install\\AdoReader\\acroread701.exe']

dflt[pn]=['yes']

cat[pn]=['Applications']

pn++

Extra.

When I edited wpi.cmd in the virtual machine it loaded fine but it doesnt run the audio player even though it plays manually when loaded from the virtual cd drive.

You also have a typo in Your WPI.cmd file

REM Calling the Unnatended aAdio Player

Start %wpipath%\Tools\Music\uap2.exe

I did as you said and removed the 2 -- however uap2.exe does load but all the options arent highlighted and only the mute button can be accessed, The playlist is there and it loads just nothing is played.

Edited by TheeBeets
Posted (edited)
Ok well Ive changed wpi.ico in wpi.cmd to win51 but in generate.js the names where already win51 so they didnt need changed. It seems to work fine now. I am still getting path errors in my config.js file though
"Windows cannot find 'D:\Install\AdoReader\acroread701.exe'
prog[pn]=['Adobe Reader 7.0']

desc[pn]=['Adobe® Reader 7.0 is free Software that lets you view and print Adobe Portable Document Format (PDF) files on a variety of devices and operating systems.']

ordr[pn]=[2]

cmd1[pn]=['%CDROM%\\Install\\AdoReader\\acroread701.exe']

dflt[pn]=['yes']

cat[pn]=['Applications']

pn++

Extra.

When I edited wpi.cmd in the virtual machine it loaded fine but it doesnt run the audio player even though it plays manually when loaded from the virtual cd drive.

You also have a typo in Your WPI.cmd file

REM Calling the Unnatended aAdio Player

Start %wpipath%\Tools\Music\uap2.exe

I did as you said and removed the 2 -- however uap2.exe does load but all the options arent highlighted and only the mute button can be accessed, The playlist is there and it loads just nothing is played.

First thanks for the typo.

Second in your config.js file change ALL of the install paths form %cdrom% to %cdrom%\wpi

Look in the advanced section of the guide for the ways to use UAP2. (You have to add your own music in.)

Edited by kelsenellenelvian
Posted

Yea kels I have added my music in and edited settings.ini file but in virtual machine when testing uap2.exe it does load it just many of the options such as play, stop etc arent highlighted and they cant be accessed. and no music plays I dont know what the problem is...

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