December 30, 200520 yr 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
December 30, 200520 yr "%CDROM%\programs\my_program\setup.exe /qb"must be "%CDROM%\\programs\\my_program\\setup.exe /qb"
December 31, 200520 yr Author 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, 200520 yr by predatorFTP
December 31, 200520 yr Author <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
December 31, 200520 yr Author 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 .
December 31, 200520 yr 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, 200520 yr by kelsenellenelvian
December 31, 200520 yr Author 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, 200520 yr by predatorFTP
December 31, 200520 yr 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.
Create an account or sign in to comment