IPB

Google Frontpage Forums Unattended CD/DVD Guide
 
Reply to this topicStart new topic
> RunWPI.exe error in 6.3, RunWPI.exe set registry RunOnceEx to C:\
koszopal
post Dec 6 2007, 03:02 AM
Post #1


Junior
*

Group: Members
Posts: 51
Joined: 24-August 04
Member No.: 28713



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
Go to the top of the page
 
+Quote Post
Kelsenellenelvia...
post Dec 6 2007, 03:08 AM
Post #2


WPI Guru
Group Icon

Group: Software Developers
Posts: 5876
Joined: 18-September 03
From: Pocatello, ID
Member No.: 6960
OS: Vista Ultimate x86
Country Flag


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.
Go to the top of the page
 
+Quote Post
koszopal
post Dec 6 2007, 10:06 AM
Post #3


Junior
*

Group: Members
Posts: 51
Joined: 24-August 04
Member No.: 28713



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
Go to the top of the page
 
+Quote Post
OverFlow
post Dec 6 2007, 12:15 PM
Post #4


Contributor


Group: Members
Posts: 30
Joined: 27-October 06
Member No.: 114149
Country Flag


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

This post has been edited by OverFlow: Dec 6 2007, 12:25 PM
Go to the top of the page
 
+Quote Post
koszopal
post Dec 7 2007, 10:04 AM
Post #5


Junior
*

Group: Members
Posts: 51
Joined: 24-August 04
Member No.: 28713



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
Go to the top of the page
 
+Quote Post
BabisSougias
post Jan 20 2008, 05:20 AM
Post #6


Newbie


Group: Members
Posts: 27
Joined: 17-June 07
Member No.: 143433
OS: XP Pro x86
Country Flag


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".
Go to the top of the page
 
+Quote Post

Google Frontpage Forums Unattended CD/DVD Guide

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 2nd December 2008 - 09:17 PM
All trademarks mentioned on this page are the property of their respective owners
MSFN is not affiliated with Microsoft
Copyright © 2001-2008 msfn.org
Privacy Policy