Problem with installation path
#1
Posted 30 December 2005 - 04:14 PM
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
#2
Posted 30 December 2005 - 04:38 PM
#3
Posted 31 December 2005 - 03:19 AM
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 ?
Thanks
P.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 "\\").
This post has been edited by predatorFTP: 31 December 2005 - 03:26 AM
#4
Posted 31 December 2005 - 04:30 AM
#5
Posted 31 December 2005 - 06:47 AM
<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 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>
I have my WPI folder on the cdrom - cdrom\programs\wpi
Thanks
#6
Posted 31 December 2005 - 07:58 AM
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 .
#7
Posted 31 December 2005 - 08:12 AM
Like 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.
This post has been edited by kelsenellenelvian: 31 December 2005 - 08:15 AM
#8
Posted 31 December 2005 - 08:45 AM
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 cmd
cmdow @ /HID
@ECHO OFF
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:
set WPIPATH=%CDROM%\Retestrak\WPI
for /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.reg
regedit /S %CDROM%\Retestrak\WPI\common\WPI.reg
for /F "delims=: tokens=1" %%i in ("%WPIPATH%") DO %%i:
cd "%WPIPATH%"
start /wait WPI.hta
EXIT
This post has been edited by predatorFTP: 31 December 2005 - 08:48 AM
#9
Posted 31 December 2005 - 12:45 PM
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.txt
x:\Programs\ ....
the %cdrom% variable will be x: ... so in your config file set path %cdrom%\\Programs\\....
Goodbye.
- ← wpi causing asms parameter incorrect?
- Windows Post-Install Wizard (WPI)
- Salt in an open wound with WPI →



Help
Back to top










