predatorFTP Posted December 30, 2005 Posted December 30, 2005 Hi,first of all i want to say - how happy I am with the new verion of WPI, I like the new timer thing.After setting all my programs (witch are on cdrom\programs\....) in the config.js , i run the wpi.cmd file and when i try installing one of the (or any) of the programs it gives me a bad path error.my "wpipath" is pointed to cdrom\programs\wpi folder on the cd-rom.the error i get is like "e:\programs\wpi\programs\my_program\setup.exe /qb" now i understand it somehow inserts the wpipath into the command but why ? my command 1 in config.js say -"%CDROM%\programs\my_program\setup.exe /qb" what am i doing wrong ?thanks
Sonic Posted December 30, 2005 Posted December 30, 2005 "%CDROM%\programs\my_program\setup.exe /qb"must be "%CDROM%\\programs\\my_program\\setup.exe /qb"
predatorFTP Posted December 31, 2005 Author Posted December 31, 2005 (edited) NO luck,i changed the command line like you said, but with no success. the error keeps comming.for some resone it inserts the %wpipath% and not the %CDROM% don't know why, what else might i be doing wrong ?ThanksP.s i have just checked up my config.js and i did write all the path's using "\\" it's just in the config it doesnt show it this way, so this is not my problem (the "\\"). Edited December 31, 2005 by predatorFTP
glent Posted December 31, 2005 Posted December 31, 2005 post your wpi.cmd please and the where is the WPI folder on your cd
predatorFTP Posted December 31, 2005 Author Posted December 31, 2005 <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="Windows Post-Install Wizard" 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 = "4.1" 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/audio.js" type="text/javascript" APPLICATION="yes"></SCRIPT><script language="JavaScript1.2" src="./wpiscripts/audiowizard.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 messagefunction 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>I have my WPI folder on the cdrom - cdrom\programs\wpiThanks
predatorFTP Posted December 31, 2005 Author Posted December 31, 2005 In a simple way I think i know whats the problem:for some resone WPI put's my %wpipath" insted of my %CDROM%.I have edited to wpi.cmd and removed the /hide so i can see witch drive letter is given to %CDROM% and %wpipath% and it's correct, the cmd is working fine.even when running a clean "installation" of WPI with only Example in config.js i get this error, I can see it's replacing my %CDROM% with %wpipath%. Is this a bug with the program ? why is it hapening only to me?Thanks .
Kelsenellenelvian Posted December 31, 2005 Posted December 31, 2005 (edited) You need to add programs\wpi to you config linesLike so %CDROM%\Programs\wpi\install\program.exe <----- ADD THIS TO THE CONFIG LINES and leave wpi.cmd as just %CDROM%the %wpipath% is fairly important to the workings of wpi so leave that as it is.P.S. You posted the contents of the hta file not the cmd file. Edited December 31, 2005 by kelsenellenelvian
predatorFTP Posted December 31, 2005 Author Posted December 31, 2005 (edited) ooppps my bad,kelsen > my programs are not under "programs\wpi" they are under "programs\" I might have not understand what you meant please explain.here is my cmdcmdow @ /HID@ECHO OFFfor %%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:set WPIPATH=%CDROM%\Retestrak\WPIfor /R %%i in ( *.ttf ) do ( echo Installing font %%~ni.ttf copy /Y "%%~fi" "%windir%\Fonts" > nul "%WPIPATH%\common\installfont.exe" "%windir%\Fonts\%%~ni.ttf" > nul)regedit /S %CDROM%\Retestrak\WPI\common\killinstallerwarning.regregedit /S %CDROM%\Retestrak\WPI\common\WPI.regfor /F "delims=: tokens=1" %%i in ("%WPIPATH%") DO %%i:cd "%WPIPATH%"start /wait WPI.htaEXIT Edited December 31, 2005 by predatorFTP
Sonic Posted December 31, 2005 Posted December 31, 2005 Have you edited the "marker" file in generate.js ?In fact %wpipath% do nothing with generated path of program, a script generate.js find again the %cdrom% by other way, it search for a file ... (by default it's WPI.ico).You must set any file present of root of your CD.x:\WhatEverFile.txtx:\Programs\ ....the %cdrom% variable will be x: ... so in your config file set path %cdrom%\\Programs\\....Goodbye.
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