Help - Search - Members - Calendar
Full Version: RunWPI.exe error in 6.3
MSFN Forums > Member Contributed Projects > Windows Post-Install Wizard (WPI) > Bug tracker

   
Google Internet Forums Unattended CD/DVD Guide
koszopal
hi
RunWPI.exe runned from cdrom via cmdlines.txt set registry key to C:\WPI\WPI.hta
as it should set to CDROM drive and then \WPI\WPI.hta
koszopal
Kelsenellenelvian
CODE
for /f "delims=: tokens=1" %%i in ("%~dp0") do set drive=%%i:
set wpipath=%drive%\wpi

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY%\WPI /V 1 /D "%wpipath%\WPI.hta" /f


Here is the current code run_wpi.exe uses I have changed nothing in it since i released it.

I have yet to encounter this error, but you are not the only one to report it.
koszopal
i removed RunWPI.exe and used this which uses nlite.cmd

QUOTE
for /f "tokens=3" %%i IN ('reg query HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup /v "SourcePath" ^| findstr "REG_SZ"') do set SOURCE=%%i
%SOURCE%\WPI\WPI.hta


and worked biggrin.gif
koszopal
OverFlow
Based on your very limited info and description i have to make a guess here

("%~dp0") Returns the drive letter that the script is run from

so if your script (this line --> "for /f "delims=: tokens=1" %%i in ("%~dp0") do set drive=%%i:") is run from the C drive which apparently it is... then DUH!


that script only works if it is run from the drive that WPI resides on
my guess is cmdlines.txt is calling a .cmd file on the c drive that contains this line
koszopal
i've added the RunWPI.exe to cmdlines.txt that thats all and didnt worked sad.gif
and this script works smile.gif


but i got another issue does ordering works ?
ive got here config like that
QUOTE
//---------------------------------------------------------------------------------------------
// Reference ... prog[0] won't be used. It's just an example.
// Look in program.js to see explanation of these properties.
//---------------------------------------------------------------------------------------------
// pn=0; // start value for prog numbering
// prog[pn]=['ProgramName'];
// ordr[pn]=[0];
// desc[pn]=['Description'];
// uid[pn]=['APP1'];
// dflt[pn]=['no'];
// cat[pn]=['Application Category'];
// forc[pn]=['false'];
// configs[pn]=['List of configs to be auto checked. Comma seperated'];
// deps[pn]=[];
// excl[pn]=[];
// cond[pn]=['Javascript Conditional Statement'];
// gcond[pn]=['Javascript Conditional Statement to gray item'];
// regb[pn]=['Registry Key Path'];
// cmd1[pn]=['CommandLine 1'];
// cmd2[pn]=['CommandLine 2'];
// cmd3[pn]=['CommandLine 3'];
// cmd4[pn]=['CommandLine 4'];
// cmd5[pn]=['CommandLine 5'];
// cmd6[pn]=['CommandLine 6'];
// cmd7[pn]=['CommandLine 7'];
// cmd8[pn]=['CommandLine 8'];
// cmd9[pn]=['CommandLine 9'];
// cmd10[pn]=['CommandLine 10'];
// rega[pn]=['Registry Key Path'];
// picf[pn]=['Picture File'];
// picw[pn]=['Width'];
// pich[pn]=['Height'];
// textl[pn]=['Text Location'];
// pn++;

//---------------------------------------------------------------------------------------------
// Your programs here ...
//---------------------------------------------------------------------------------------------
pn=1;
prog[pn]=['APP1'];
ordr[pn]=[1];
uid[pn]=['APP1'];
dflt[pn]=['no'];
cat[pn]=['Applications'];
forc[pn]=['no'];
excl[pn]=['APP5'];
cmd1[pn]=['"%root%\\INSTALL\\APP1.exe"'];
pn++;

prog[pn]=['APP2'];
ordr[pn]=[3];
desc[pn]=['APP2'];
uid[pn]=['APP2'];
dflt[pn]=['yes'];
cat[pn]=['Applications'];
forc[pn]=['no'];
cmd1[pn]=['"%root%\\INSTALL\\APP2.exe"'];
pn++;

prog[pn]=['APP3'];
ordr[pn]=[4];
uid[pn]=['APP3'];
dflt[pn]=['yes'];
cat[pn]=['Applications'];
forc[pn]=['no'];
cmd1[pn]=['"%root%\\INSTALL\\APP3.exe"'];
pn++;

prog[pn]=['FIX3'];
ordr[pn]=[6];
desc[pn]=['FIX3'];
uid[pn]=['FIX3'];
dflt[pn]=['yes'];
cat[pn]=['Applications'];
forc[pn]=['no'];
cmd1[pn]=['"%root%\\INSTALL\\FIX3.exe"'];
pn++;

prog[pn]=['APP4'];
ordr[pn]=[5];
uid[pn]=['APP4'];
dflt[pn]=['yes'];
cat[pn]=['Applications'];
forc[pn]=['no'];
cmd1[pn]=['"%root%\\INSTALL\\APP4.exe"'];
pn++;

prog[pn]=['APP5'];
ordr[pn]=[2];
uid[pn]=['APP5'];
dflt[pn]=['yes'];
cat[pn]=['Applications'];
forc[pn]=['no'];
excl[pn]=['APP1'];
cmd1[pn]=['"%root%\\INSTALL\\APP5.exe"'];
pn++;

prog[pn]=['APP7'];
ordr[pn]=[7];
desc[pn]=['a'];
uid[pn]=['APP7'];
dflt[pn]=['no'];
cat[pn]=['Applications'];
forc[pn]=['no'];
cmd1[pn]=['"%root%\\INSTALL\\APP7.exe"'];
pn++;

prog[pn]=['APP8'];
ordr[pn]=[8];
desc[pn]=['b'];
uid[pn]=['APP8'];
dflt[pn]=['no'];
cat[pn]=['Applications'];
forc[pn]=['no'];
cmd1[pn]=['"%root%\\INSTALL\\APP8.exe"'];
pn++;

prog[pn]=['APP9'];
ordr[pn]=[9];
desc[pn]=['c'];
uid[pn]=['APP9'];
dflt[pn]=['no'];
cat[pn]=['Applications'];
forc[pn]=['no'];
cmd1[pn]=['"%root%\\INSTALL\\APP9.exe"'];
pn++;

//---------------------------------------------------------------------------------------------
// End of program definitions ...
//---------------------------------------------------------------------------------------------


and i chosed to install APP2,APP3,APP4,APP5,APP7 and it started to runs installation in this order3
not it should be install in order APP7,APP2,APP3,APP5,APP4
sad.gif
BabisSougias
QUOTE (koszopal @ Dec 6 2007, 06:06 PM) *
i removed RunWPI.exe and used this which uses nlite.cmd

QUOTE
for /f "tokens=3" %%i IN ('reg query HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup /v "SourcePath" ^| findstr "REG_SZ"') do set SOURCE=%%i
%SOURCE%\WPI\WPI.hta


and worked biggrin.gif
koszopal



Hey can you explain exactly what you did?
I deleted RunWPI.exe and replaced it with a RunWPI.cmd file that contained your script. Then on cmdlines.txt i changed the entry "RunWPI.exe" with "RunWPI.cmd". Is this correct?


Also about your order issues. Make sure when configuring an application on WPI that you set the order number on the top right box. I used full numbers meaning 000005 instead of 5, 000015 instead of 15 etc.... Also on the options menu uncheck the option "Install by Category".
Google Internet Forums Unattended CD/DVD Guide
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.