Jump to content

Recommended Posts

Posted (edited)

Can someone tell me exactly what variables are available in the latest version of WPI (version 5.0.1 I think)?

I am going to take the plunge and change my automated DVD from using WPI Lite 1.2 to WPI v5.0.1, but am having problems with my config.js

My current config.js is attached

I am using the %CDROM% variable which worked for me in WPI Lite 1.2, but not in WPI 5.0.1. I also want WPI to grey out the checkbox if program is already installed and to not even list it as an option if the software isn't on the disk.

config.js

Edited by kev_147

Posted

The suggested waty to use WPI now is to place all of your install files in the WPI\Install files and any sub directories contained therein (this is the method I use for both stand-alone and Windows\WPI combinations disks)

Using this method and also using the variable of %wpipath% will allow WPI to set the path from the folder wpi.hta is run from...

Also I noticed the sections of your config file that have 4 \\\\ marks how did this come to be?

All that is needed in the config file is 2\\ (there is probably the cause of the issue you are having.) and you should read and download the manual and the first post for wpi 5.0.1 in the stickies section it has some great examples of folder layout and installation options.

Remember this is just the most basic and required entries for a program!

#1 Place the desired app in the install folder. (In this case WindowsDefender.msi)

#2 Run WPI.hta and choose “Config”

#3 Choose at the very top above the config section “Add”

#4 Enter in the name section “Windows Defender” <-- No quotes! Then click on any other section of the config area to activate the rest of the wizard.

#5 You will notice the Unique ID section gets automatically configured for you.

#6 All apps are selected to be installed by default right from the start so if you don’t want it selected by default you must uncheck this box.

#7 Choose a category for your app to be displayed in. If you want the app to be displayed in a category you don’t see simply chose other and a box will appear that will allow the entry of you choice.

#8 In the Command 1 section browse to the installation package you want to have installed. You will get (%CDROM%\WPI\Install\WindowsDefender.msi) to make this work from either a stand-alone CD or form a windows CD You should change this to “%wpipath%\Install\WindowsDefender.msi” Once again NO quotes!

#9 Add the necessary switches for the program to run silently i.e. %wpipath%\Install\WindowsDefender.msi /qn

#10 Select the Save and then the Exit buttons and you have now configured your first app!

Suggested disk folder layout:

th_72737_Untitled_1.jpg

With the above folder layout all your config entries should read like:

%wpipath%\Install\Blah.exe

As to what variables WPI uses and recognizes WPI can recognize nearly all system variables..

Plus please post really loooong things as an attachment or in codeboxes it save time and doesnt make for annoyingly long posts.

I have attached one of my current config files for you to browse and you should be able to see some of what I have been talking about.

I am always glad to see WPI used in a corporate enviroment and please by all means contact me on messenger if you have any questions.

AIM and Yahoo = TruEarth69

MSN = Kelsenellenelvian@gmail.com

ICQ = 244809710

Posted

ALL* the environment variables are also available for your commands in WPI.

Making the following a valid command:

%SystemDrive%\install\program.exe

*Not only those mentionned in replpath().

Posted

I have changed my structure so that all my apps are now $OEM$\WPI\Install, but for future reference is there a variable available for the root of the CD drive letter? e.g. %CDDRIVE% or %CDROM%

Posted

I don't know why my existing entries in my config.js file didn't work then when I changed from WPI Lite 1.2 to WPI 5.0.1.

Can you tell me what WPI will output %CDROM% as please if run from the D Drive?

Will it be D:\ or D:

Posted

I think it would be useful to add all the variables avaliable within WPI 5.0.1 to the Manual. I have found that the most of my problems have been regarding using variables within WPI.

For Example list:

%WPIPATH% will output "D:\$OEM$\WPI\" if WPI.ico is found in this location

%CDROM% will output "D:" or "D:\" (am not sure which is correct) if WIN51IP.SP2, WIN51IP, WIN51 or WPI.ico is found on the physical drive "D".

and a list of all other variables:

%Systemroot%

%Systemdrive%

%windir%

%allusersprofile%

%computername%

%username%

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