Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Problem with installation path

Featured Replies

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

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

must be

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

  • 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 ?

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 "\\").

Edited by predatorFTP

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

  • 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 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

  • 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 .

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.

Edited by kelsenellenelvian

  • 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 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

Edited by predatorFTP

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.

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.