TheeBeets Posted July 14, 2005 Posted July 14, 2005 (edited) @ECHO OFFREM 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%\wpiREM Hide this command window.%wpipath%\Tools\cmdow.exe @ /hidREM Force resolution to needed size for wpi interface.--start %wpipath%\Tools\VideoChanger.exe 1280x1024x32@85 -qREM Font installation - the smooth and customizable way.--start /wait %wpipath%\Tools\fonts\fontinstaller.exeREM Calling the Unnatended aAdio Player--Start %wpipath%\Tools\Music\uap2.exeREM Special registry tweak needed.regedit /s "%wpipath%\common\wpi.regREM 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 endstart /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:endI 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 July 14, 2005 by TheeBeets
Kelsenellenelvian Posted July 14, 2005 Posted July 14, 2005 (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 July 14, 2005 by kelsenellenelvian
TheeBeets Posted July 14, 2005 Author Posted July 14, 2005 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.<{POST_SNAPBACK}>Could you explain how I could do that? so Im assuming my wpi.cmd file is correct?
Kelsenellenelvian Posted July 14, 2005 Posted July 14, 2005 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%\$$\system32and then call it with an entry at the end of Winnt.sif[GuiRunOnce] "%systemroot%\system32\wpi.cmd"WPI will run at first logon.
TheeBeets Posted July 14, 2005 Author Posted July 14, 2005 Ok I shall test in virtual machine again and see what I get I hope it works will report back when I know.
TheeBeets Posted July 14, 2005 Author Posted July 14, 2005 I still have a problem this is what I getI then close the white window and the cmd fails and then goes to the windows environment. I have no idea why this could be?
Kelsenellenelvian Posted July 14, 2005 Posted July 14, 2005 Do you have wpi.ico at the root of your cd?
TheeBeets Posted July 14, 2005 Author Posted July 14, 2005 Do you have wpi.ico at the root of your cd?<{POST_SNAPBACK}>I just have it in the wpi folder in my cd root.
Kelsenellenelvian Posted July 14, 2005 Posted July 14, 2005 There are 3 entries you are going to need to change.change all 3 of wpi.ico to win51REM 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: <----- HEREecho Found CD-Rom as drive %CDROM%if you change the part where it says %%i:\wpi.ico you need to edit generate.jsto 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
TheeBeets Posted July 14, 2005 Author Posted July 14, 2005 (edited) I dont mean to challenge you or anything but shouldnt this beREM Start WPI and wait for its endstart /wait %windir%\system32\mshta.exe "%CD%\wpi.hta"Like thisREM Start WPI and wait for its endstart /wait %windir%\system32\mshta.exe "%cdrom%\wpi.hta" Edited July 14, 2005 by TheeBeets
TheeBeets Posted July 14, 2005 Author Posted July 14, 2005 (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 PlayerStart %wpipath%\Tools\Music\uap2.exeI 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 July 14, 2005 by TheeBeets
Kelsenellenelvian Posted July 14, 2005 Posted July 14, 2005 (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 PlayerStart %wpipath%\Tools\Music\uap2.exeI 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%\wpiLook in the advanced section of the guide for the ways to use UAP2. (You have to add your own music in.) Edited July 14, 2005 by kelsenellenelvian
TheeBeets Posted July 15, 2005 Author Posted July 15, 2005 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...
Kelsenellenelvian Posted July 15, 2005 Posted July 15, 2005 Can I see your settings.ini file?Just post the contents.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now