Hi Everyone.
Im fairly new to this program and basically what i am trying to do is make a cd with an autorun of the WPI interface.
When WPI executes a program it is looking in the wrong drive for the exe. The WPI.cmd is correctly detecting the right CD-ROM but when it comes to executing the programs from WPI.hta it always selects the drive one letter before the correct one. ie. My CD-ROM is F: and WPI.cmd detects it as such. When i installs Winamp, for example, the message "Windows cannot find 'E:\install\winamp\winamp.exe' Make sure ... " occurs.
Below is a copy of the code from config.js
...
prog[pn]=['WinAmp']
uid[pn]=['WINAMP']
picw[pn]=['128']
pich[pn]=['128']
desc[pn]=['WinAmp 5.21']
textl[pn]=['Bottom']
texti[pn]=['1']
ordr[pn]=[12]
cmd1[pn]=['%CDROM%install\\winamp\\winamp.exe /S']
gcond[pn]=['FileExists(\'%programfiles%\\\')']
cat[pn]=['Applications']
pn++
...
Any ideas on how i can fix this would be greatly appriciated.
Thanks in advance
Page 1 of 1
WPI Selects incorrect CD-ROM Drive
#2
Posted 15 May 2006 - 09:54 PM
At first glance, you need \\ after the %CDROM%
%CDROM%\\install\\winamp\winamp.exe /S
%CDROM%\\install\\winamp\winamp.exe /S
#3
Posted 15 May 2006 - 11:41 PM
Hi,
Thanks for the reply. I thought so too but when i put that switch in all i get is
"Windows cannot find 'E:\\install\winamp\winamp.exe' Make sure ... "
Any other ideas?
Thanks for the reply. I thought so too but when i put that switch in all i get is
"Windows cannot find 'E:\\install\winamp\winamp.exe' Make sure ... "
Any other ideas?
#4
Posted 17 May 2006 - 05:34 AM
Hi Ghost_Shield!
Try this : %CDROM%\install\winamp\winamp.exe /S
Try this : %CDROM%\install\winamp\winamp.exe /S
#6
Posted 17 May 2006 - 05:50 AM
Hi again.
Malfunction,
The code you posted is what i currently have.
Kelsenellenelvian (Hope i spelt that right),
Below is WPI.cmd. As I said before it seems to detect the CD-ROM correctly here but running the applications doesnt.
Thanks for your help
Ghost Shield
@ECHO OFF
REM Example, how to look for CDROM-drive. Must have WPI.ico at the root of the CD.
FOR %%i IN (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.
REM %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.
REM cd /d "%wpipath%"
REM Start WPI and wait for its end
%wpipath%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
Malfunction,
The code you posted is what i currently have.
Kelsenellenelvian (Hope i spelt that right),
Below is WPI.cmd. As I said before it seems to detect the CD-ROM correctly here but running the applications doesnt.
Thanks for your help
Ghost Shield
@ECHO OFF
REM Example, how to look for CDROM-drive. Must have WPI.ico at the root of the CD.
FOR %%i IN (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.
REM %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.
REM cd /d "%wpipath%"
REM Start WPI and wait for its end
%wpipath%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
#7
Posted 19 May 2006 - 04:46 AM
I to am having this problem, WPI.cmd selects the correct cd drive (virtual drive G:) but always looks in D: when installing programs.
#8
Posted 21 May 2006 - 07:51 PM
Hi all,
I've been stuffing around with the generate.js file trying to fix this problem. I think what is the problem is the following if statement from FindCDRom() doesnt work.
if (LaunchFromCD=="no")
FindFile="WIN51";
else
FindFile="WPI.ICO";
I believe this because when i change the "no" to a "yes" all my problems are solved.
Could someone double check this for me so if it is a problem it can be fixed in the next version?
Thanks
Ghost Shield
I've been stuffing around with the generate.js file trying to fix this problem. I think what is the problem is the following if statement from FindCDRom() doesnt work.
if (LaunchFromCD=="no")
FindFile="WIN51";
else
FindFile="WPI.ICO";
I believe this because when i change the "no" to a "yes" all my problems are solved.
Could someone double check this for me so if it is a problem it can be fixed in the next version?
Thanks
Ghost Shield
#9
Posted 21 May 2006 - 08:08 PM
This option is removed from v5.0. Things are finally getting wrapped up for a release. Look for some screen shots.
Share this topic:
Page 1 of 1



Help
Back to top









