Jump to content

WPI failed to install programs


Recommended Posts

I make a windowsxp+sp2 integrated through nlite and put i in e: drive.Now i put the wpi folder in it.

DIR structure

XPCD

|-I386

|-$OEM$

|-WPI

|-Audio

|-Common

|-ExampleConfig

|-Graphics

|-Install

|-Themes

|-Tools

|-WPI Scripts

I only wanted to test it frm harddisk.I put the application i need to be installed into the Install Dir and then i run the WPI.hta.It shows the installation of the applications but it is too quick and it show a red X in front of all application. After system reboots no program is installed.What i did wrong.i attached the confiq.js file and log file generated by wpi below.

config.jp

//---------------------------------------------------------------------------------------------
// 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'];
// 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]=['powerdvd'];
uid[pn]=['POWERDVD'];
dflt[pn]=['yes'];
cat[pn]=['Applications'];
forc[pn]=['no'];
cmd1[pn]=['"%CDROM%\\xpcd\\WPI\\Install\\Power DVD v 5.0\\Setup.exe"'];
pn++;

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

here the logfile generated

WPI Installation Log File

Install process started at: Tuesday, January 23, 2007 11:36:38 PM

Global variables:
%OSLANG%=ENU
%WPIPATH%=E:\xpcd\WPI
%ROOT%=E:\xpcd
%CDROM%=E:\xpcd\WPI
%DOSPATH%=
%SYSTEMDRIVE%=C:
%WINDIR%=C:\WINDOWS
%PROGRAMFILES%=C:\Program Files
%TEMP%=C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp
%SYSDIR%=C:\WINDOWS\system32
%ALLUSERSPROFILE%=C:\Documents and Settings\All Users
%USERPROFILE%=C:\Documents and Settings\Administrator
%APPDATA%=C:\Documents and Settings\Administrator\Application Data
%COMMONPROGRAMFILES%=C:\Program Files\Common Files

List of programs to be installed:
powerdvd

-----

Tuesday, January 23, 2007 11:36:39 PM
Program: powerdvd
UID: POWERDVD
Order: 900001
Category: Applications
Tuesday, January 23, 2007 11:36:39 PM
cmd1 *** Fail *** (returned code undefined): ""E:\xpcd\WPI\xpcd\WPI\Install\Power DVD v 5.0\Setup.exe""
Tuesday, January 23, 2007 11:36:39 PM
Finished installation.

-----

Install process finished at: Tuesday, January 23, 2007 11:36:40 PM

Edited by explore.exe
Link to comment
Share on other sites


cmd1[pn]=['"%CDROM%\\xpcd\\WPI\\Install\\Power DVD v 5.0\\Setup.exe"'];

Should read

cmd1[pn]=['"%CDROM%\\Install\\Power DVD v 5.0\\Setup.exe"'];

Try that please...

THANK YOU SIR My problem solved by your suggestion.But sir can u tell me the meaning of this line in details.what to write when install from cd.I have always problem in address path.Hope u understand me.

%CDROM%=???????

Link to comment
Share on other sites

WPI.hta (The main WPI prog file) automatically see the path of %CDrom% or %wpipath% as drive + WPI\ (i.e. d:\wpi\) and goes on its merry way from there.

The XPCD part you had in there is non existant when the folder is put on the disk.

Your folder layout would be like so:

layout.jpg

So WPI and the added runonce command will automatically add the WPI folder to your path.

In closing %cdrom% = drive:\WPI\

Link to comment
Share on other sites

Install from cd and install from harddrive will be the same commandline.

cmd1[pn]=['"%CDROM%\\Install\\Power DVD v 5.0\\Setup.exe"'];

or

cmd1[pn]=['"%wpipath%\\Install\\Power DVD v 5.0\\Setup.exe"'];

%wpipath% and %cdrom% are the same thing just %wpipath% is the prefered method when using WPI.

(yes I know the config wizard does not automaitically truncate the path (Shorten it) it is being changed in the next version...)

Also your first post was very informative and had all of the right info in it!

Link to comment
Share on other sites

Install from cd and install from harddrive will be the same commandline.

cmd1[pn]=['"%CDROM%\\Install\\Power DVD v 5.0\\Setup.exe"'];

or

cmd1[pn]=['"%wpipath%\\Install\\Power DVD v 5.0\\Setup.exe"'];

%wpipath% and %cdrom% are the same thing just %wpipath% is the prefered method when using WPI.

(yes I know the config wizard does not automaitically truncate the path (Shorten it) it is being changed in the next version...)

Also your first post was very informative and had all of the right info in it!

Sir after giving this path where it installed the program.And what are the commands to change the location of it.

Link to comment
Share on other sites

I am not sure what you mean please elaborate.

In this way i success to install a program.suppose i format my c:drive then install xp on it then welcome screen comes of wpi.ok at that time i have three folders in my c: drive since i format it.the three folders are DOCUMENTS AND SETTING,PROGRAMS FILES,WINDOWS.Now when i install this power dvd frm wpi then in which folder it install files.may be i think in program files or it creates a new folder?and also how to change the default location of install files.may be this i want to ask.If u want more elaborate then please tell me.

Link to comment
Share on other sites

Almost all programs automatically install into the Program Files folder. Many Programs will allow for the changing of their install paths through the use of switches.

You can find a large majority of the switches for the applications in the application installs section of this forum. Please also make good use of the search function.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...