Jump to content

donkeydan18

Member
  • Posts

    1
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United States

About donkeydan18

donkeydan18's Achievements

0

Reputation

  1. I am having a hard time trying to make this run from a CD, when i try and start it i get this error: Can anyone help please. Thanks This is my wip.cmd @ECHO OFF REM REM WPI startup something. REM REM Example, how to look for CDROM-drive. Must have a file called WIN51 in its root. 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:\WIN51 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%\PathToWPI set WPIPATH=%CDROM%\install\wpi\WPI.cmd echo WPI will run from %WPIPATH% REM Hide this command window "%CDROM%\install\wpi\common\cmdow.exe" @ /HID REM Special registry tweak needed regedit /S "%CDROM%\install\wpi\common\wpi.reg" REM Make WPI driectory the current directory for /F "delims=: tokens=1" %%i in ("%WPIPATH%") DO echo %%i: cd "%WPIPATH%" REM Start WPI and wait for its end start /wait WPI.hta REM call any cleanup code here, or after this script. RMDIR /S /Q C:\DP exit :end And my WPI.hta <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>Windows Post-Install Wizard</title> <META HTTP-EQUIV="MSThemeCompatible" CONTENT="YES"> <HTA:APPLICATION ID="oApp" APPLICATIONNAME="wpi" ICON="./wpi.ico" CAPTION="yes" CONTEXTMENU = "yes" INNERBORDER = "no" MAXIMIZEBUTTON = "yes" MINIMIZEBUTTON = "yes" NAVIGABLE = "yes" SCROLL = "no" SCROLLFLAT = "no" SELECTION="no" SHOWINTASKBAR="yes" SINGLEINSTANCE="yes" SYSMENU="yes" VERSION = "3.3" BORDER="none" BORDERSTYLE = "thin" WINDOWSTATE="maximize"> <script language="JavaScript1.2" src="./common/main.js" type="text/javascript" APPLICATION="yes"> </SCRIPT> <script language="JavaScript1.2" src="./wpiscripts/useroptions.js" type="text/javascript" APPLICATION="yes"> </SCRIPT> <script language="JavaScript1.2" src="./wpiscripts/api.js" type="text/javascript" APPLICATION="yes"> </SCRIPT> <script language="JavaScript1.2" src="./wpiscripts/lang.js" type="text/javascript" APPLICATION="yes"> </SCRIPT> <script language="JavaScript1.2" src="./wpiscripts/program.js" type="text/javascript" APPLICATION="yes"> </SCRIPT> <script language="JavaScript1.2" src="./wpiscripts/config.js" type="text/javascript" APPLICATION="yes"> </SCRIPT> <script language="JavaScript1.2" src="./wpiscripts/optionswizard.js" type="text/javascript" APPLICATION="yes"> </SCRIPT> <script language="JavaScript" src="./wpiscripts/configwizard.js" type="text/javascript" APPLICATION="yes"> </script> <script language="JavaScript1.2" defer="true" src="./wpiscripts/generate.js" type="text/javascript" APPLICATION="yes"> </SCRIPT> <script language="JavaScript1.2" src="./wpiscripts/boxes.js" type="text/javascript" APPLICATION="yes"> </SCRIPT> <script language="JavaScript1.2" src="./wpiscripts/check.js" type="text/javascript" APPLICATION="yes"> </SCRIPT> <script language="JavaScript1.2" src="./wpiscripts/timers.js" type="text/javascript" APPLICATION="yes"> </SCRIPT> <script language="javascript"> window.onerror = handleErrors; // or null to suppress error message function handleErrors(msg, url, line) { var errorString = "JavaScript Error Report\n\n"; errorString += " Message: "+msg+"\n"; errorString += " Url: "+url+"\n"; errorString += " File: "+position+"\n"; errorString += " Line: "+line; alert(errorString); return true; } </script> <script language="JavaScript1.2"> function onExit(){ position="wpi.hta"; SetScriptWaitTimeout(-1); if (ReallyForce == "yes") CreateFile('exit'); else self.close(); } </SCRIPT> <script language="javascript"> position="wpi.hta"; LoadThemedContent(); </script> </head> </html>
×
×
  • Create New...