MSFN Forum: Problem with installation path - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Problem with installation path Rate Topic: -----

#1 User is offline   predatorFTP 

  • Group: Members
  • Posts: 8
  • Joined: 10-November 04

Posted 30 December 2005 - 04:14 PM

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


#2 User is offline   Sonic 

  • Sonic
  • Group: Patrons
  • Posts: 1,595
  • Joined: 04-December 03

Posted 30 December 2005 - 04:38 PM

View PostpredatorFTP, on Dec 30 2005, 11:14 PM, said:

"%CDROM%\programs\my_program\setup.exe /qb"


must be

"%CDROM%\\programs\\my_program\\setup.exe /qb"


#3 User is offline   predatorFTP 

  • Group: Members
  • Posts: 8
  • Joined: 10-November 04

Posted 31 December 2005 - 03:19 AM

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 ?

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 User is offline   glent 

  • Tpyo Spceialist
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,041
  • Joined: 16-August 04

Posted 31 December 2005 - 04:30 AM

post your wpi.cmd please and the where is the WPI folder on your cd

#5 User is offline   predatorFTP 

  • Group: Members
  • Posts: 8
  • Joined: 10-November 04

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 User is offline   predatorFTP 

  • Group: Members
  • Posts: 8
  • Joined: 10-November 04

Posted 31 December 2005 - 07:58 AM

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 .

#7 User is offline   Kelsenellenelvian 

  • WPI Guru
  • Group: Developers
  • Posts: 7,653
  • Joined: 18-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 31 December 2005 - 08:12 AM

You need to add programs\wpi to you config lines

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 User is offline   predatorFTP 

  • Group: Members
  • Posts: 8
  • Joined: 10-November 04

Posted 31 December 2005 - 08:45 AM

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 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 User is offline   Sonic 

  • Sonic
  • Group: Patrons
  • Posts: 1,595
  • Joined: 04-December 03

Posted 31 December 2005 - 12:45 PM

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.txt
x:\Programs\ ....

the %cdrom% variable will be x: ... so in your config file set path %cdrom%\\Programs\\....

Goodbye.

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy