Jump to content

WPI 7.0


Recommended Posts

softpedia_clean_award_f.gifno-viruses2.gif

Windows Post-Install Wizard (WPI for short) is a hypertext application designed for giving users choice. While Windows XP offers many ways of customizing the setup process out of the box, its major drawback is the lack of being able to select which applications an end user may install. In the past, end users and administrators needed to either download the files manually, or create overly complex scripts that could only be used once. WPI allows you to create one image, which can then be custom configured, and optionally, automated, so that end users can install any applications that have been configured into WPI.

Here is the 7.0 changelog:

* Now cleans up after itself after an aborted installation and a restart and
not continue installation.

* Fixed the long loading time of large config.js files.

* Added Style tab to the Options wizard. Can select from 11 different Windows
skins, 5 Tabs skins, 7 Sliders skins, 32 Butons skins, 17 cursors (mouse
pointers), 11 Progress bars, 12 installer backgrounds, 6 installer logos.
More to come......this is just a starting point.

* Localized more strings. (Dynaletik)

* Added line at end of installer log:
Number of failed installations: 24
You can quick look here to see if all went well or had errors.

* Streamlined all of the themes. All css data is now loaded in WPI.hta.

* Took out Extra Width and Extra Height gadgets for installer window. It is a
fixed size now. Can be put back if people want it.

* Took out 16 redundant images from every theme.

* Removed optionbg from all themes. It was a redundant picture.

* Moved all common images to either the common\imgs or the graphics folders.

* Added JSCRIPT=TimedWaitForDelet(delay,file,secs) to wait for a file to be
deleted. This can be used to check if an installer temp file has been deleted.
delay=num secs before start checking, give the installer time to start.
JSCRIPT=TimedWaitForDelete(10,"C:\Program Files\WinRAR\WinRAR.exe",10)

* Added JSCRIPT=TimedWaitForFile(file,secs) to truly wait for an installer to
finish. This can be used to check for the existance of the program's icon or
exe before doing a reg tweak. (deadbug had original idea/code)
JSCRIPT=TimedWaitForFile("C:\Program Files\WinRAR\WinRAR.exe",10)

* Added JSCRIPT= to commands to execute a JavaScript function. (deadbug)
JSCRIPT=alert("Opens a window")
JSCRIPT=WriteRegKey("HKEY_CURRENT_USER\\Software\\WPI\\WPI_Rocks",1,"REG_DWORD")

* Fixed bug dealing with RestartComputer not working if a %reboot% was done.

* Fixed bug dealing with no default log file reg key being written.

* About WPI is now opened in an internal window like below.

* The manual is now opened in an internal window like below.

* The Alt+G information page now opens in an internal window. This window can
be moved and minimized when working in Config wizard to see all the functions
and how to use them.

* Added Corp_WindowsXP theme. This was a seperate entity called WPI Corpprate
but decided to merge the two together. This theme is meant to look just like a
regular Windows window with menus and tool bar. No fancy graphics. Meant to
be used in a business setting where crazy graphics are not needed. Be sure to
use "Show window border" in Options -> Window.
There is still work to do in Config wizard......stay tuned for updates.

* Fixed several bugs, updated a ton of code, streamlined code, etc.......

* Updated the volume slider. Skinnable.

* Took out 2 checks for CDROM. If can't find WPI.hta on an actual CD/DVD drive
then cddrv (%cdrom%) defaults to %wpipath%.

* Added function isInstalled().
Usage: isInstalled("Adobe Reader 8.1.2")
Returns: true or false
WARNING: This could take from 5 to 30 seconds for each check!
Does not work on Windows 2003.

* Added function ConnectedToInternet().
Usage: ConnectedToInternet()
Returns: true or false

* Added function getmshtaBits().
Usage: getmshtaBits()==64
Returns: 64 or 32

* Updated the buttons to CSS buttons. Can be customizable in the Buttons
folder in Common/imgs/Buttons. Change name in the theme style sheet. Size is
important!

* Added function getOSeditionID().
Usage: getOSeditionID()=="HomePremium"
Returns: HomePremium, Ultimate,... or "Not found"

* Updated the installer:
* Whole new look and feel. More professional looking.
* List of commands is scrollable
* Each item is broken down by rega, commands, regb
* No longer using images for success/failed.
* Window and list are wider
* Current command line shown at top of list box

The list will add the latest item to the bottom and scroll it in to view. If
move scroll bar up to see previous entries, it will stay there. Scroll back
down to bottom to resume scrolling.

* Fixed a bug when creating a new Options file it would error at SortOrder
line. (t4user)

* Fixed a bug in the paths not inhereting their parent path properly.

* Fixed a "bug" in the OSLang code. Now defaults to ENU if none specified.

* Added function getOSlocale().
Usage: getOSlocale()=="English - United States"
Returns: English - United States

* Start to use: getFileVersion() and getDriveLetters(), lower-case get
instead of GetFileVersion() and GetDriveLetters(). Both will still work.

* Added function getTotalRAM().
Usage: getTotalRAM()>512
Returns: 1024 (megabytes)

* Added function getFreeRAM().
Usage: getFreeRAM()>300
Returns: 512 (megabytes)

* Added function getFileType().
Usage: getFileType("C:\test.txt")=="PNG Image"
Returns: "" or type, ie, "Text Document"

* Added function getFolderSize().
Usage: getFolderSize("C:\windows\")>10000
Returns: number of bytes or -1 if not exists

* Added function getFileSize().
Usage: getFileSize("C:\test.txt")>100
Returns: number of bytes or -1 if not exists

* Added function FolderExists().
Usage: FolderExists("C:\test\")
Returns: true or false

* Added function DriveAvailableSpace().
Usage: DriveAvailableSpace("C:")>75 or DriveAvailableSpace("C:\")>75
Returns: 150 (gigabytes) or -1 if not exists

* Added function DriveTotalSize().
Usage: DriveTotalSize("C:")>=100 or DriveTotalSize("C:\")>=100
Returns: 150 (gigabytes) or -1 if not exists

* Added function DriveFileSystem().
Usage: DriveFileSystem("C:")=="NTFS" or DriveFileSystem("C:\")=="NTFS"
Returns: FAT16, FAT32, NTFS, or null.

* Added function DriveShareName().
Usage: DriveShareName("X:") or DriveShareName("X:\")
Returns: null or a name like "\\server\share".
Must be a mapped network drive.

* Added function DriveVolumeName().
Usage: DriveVolumeName("C:") or DriveVolumeName("C:\")
Returns: "" or a name. C:\ is usually blank.

* t4user translated the manual into French. Thanks!

* Dynaletik translated the manual into German. Thanks!

* Added "Window Coordinates" to Window tab which allows:
* Custom window width and height
* Open main window at specified x y coordinates
* Open installer window at specified x y coordinates
Pick "Custom..." from drop-down box to enabled text gadgets.

* Added command line args:
theme=Evil_Vista no spaces!
resolution=1024 the width

800 = 800x600 12802 = 1280x720
1024 = 1024x768 12803 = 1280x768
1280 = 1280x1024 12804 = 1280x800
1400 = 1400x1050 1440 = 1440x900
1600 = 1600x1200 16002 = 1600x1024
1920 = 1920x1400 1680 = 1680x1050
19202 = 1920x1080

* Fixed bug in Config wizard not opening Other... text box for category.

* Fixed a minor bug picking which language for the manual.

* Added function getComSpec().
Returns: C:\WINDOWS\system32\cmd.exe
or other appropriate path.

* Added function getArchMHz().
Usage: getArchMHz()>1800
Returns: 2002 (2GHz)
Return: 1496 (1.5GHz)

* Added function getNumProcs().
Usage: getNumProcs()>1
Returns 1, 2, 4, etc.

* Added function getArchIdentifier().
Returns: x86 Family 15 Model 4 Stepping 8
Returns: x86 Family 6 Model 13 Stepping 8

* Added function getArchNameStrings().
Returns: AMD Athlon(tm) 64 Processor 3200+
Returns: Intel® Celeron® M processor 1.50GHz

* Added function getArchName().
Usage: getArchName()=="AuthenticAMD"
Returns: AuthenticAMD, GenuineIntel, etc.

* Added function getBits().
Usage: getBits()==64
Returns: 32 or 64

* Added function getArch6432().
Usage: getArch6432()=="AMD64"
Returns: AMD64 or NOT_DEFINED.

* Added function getArch().
Usage: getArch()=="AMD64"
Returns: x86, AMD64, or IA64 (Itanium).

* Added to Tools tab: Time stamp log file. The log file can now time stamped:
WPI_Log_2008.06.02_22.36.34.txt
for testing purposes. Keep an eye on the log path, it can fill up quickly!

* The log file command lines are now 1 line for easier reading.

* Updated Installer.hta to deal with css better.

* Updated "About WPI" code to auto-update.

wpidl.png

Notes and Extras

Suggested disk folder layout:

layout.jpg

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

["%wpipath%\Install\Blah.exe" /switch]

Here is a small tutorial on how to add an app to WPI!

Ok this is a sample (Very simple) configuration for CCleaner (A.K.A Crap Cleaner)

This assumes you have all of the WPI files either in the WPI folder at the root of your Windows cd or all of the WPI folders (Common, Graphics, WPIScripts, Tools, Install and Themes) and the file WPI.hta at the root of your cd.

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

#1. Download the app and place it in the WPI\Install Folder. (CCleaner.exe in this example)

#2. Run WPI.hta and click on the “Config” button\Icon area.

#3. Choose the button at the very top above the config section that says “Add”

#4. Enter in the name section “CCleaner” 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. Also you can decide if you want this app to be a Forced Install or not.

#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 click on the little folder icon and browse to the WPI\Install folder and select the CCleaner.exe installer, this will place the appropriate path in the commandline.

#9. Add the necessary switches for the program to run silently i.e. %wpipath%\Install\CCleaner.exe /s (This can be easily done for most standard apps by simply clicking on the USSF button on the far right of the commandline.)

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

Afterwards you configure WPI to run with your CD using whichever method you choose. We suggest using one of the pre compiled and nicely provided $oem$ (Source folder if your are using Vista or Server 2008) folders that can be found in the downloads section. Then you can use an app like nLite, vLite, CDImageGUI or the Makeiso* program included in the tools folder to make your CD w\WPI bootable again.

* MakeIso.exe = Adds make bootable .iso to the right click menu of folders. It is a silent installer so DO NOT click on it 50x a simple double click is all that is need to install it. It can be uninstalled from the add\remove programs menu! Just go to the source folder (The one that contains I386 and WPI) and right click then select Make Bootable ISO...

th_04569_Guide_122_124lo.jpg

_____________________________________________________________________

I have seperated the tools out from the main archive. You can download the tools here:

Tools archive.

Contents of the tools archive:

WPI Config Lister

CDSwitch <-- 3 Custom themes for CDSwitch

MakeISO.exe

autorun.inf <-- Updated and fixed

WPI.ico New icon thanks to WolfX2

TaskKillS.exe from sadicq <-- TaskKillS Instructions

Cleanup.exe (Deletes ALL icons from the desktop)

Reboot.exe (Dialog box that will reboot in 60 sec unless cancel is pressed)

_____________________________________________________________________

Here is a quick start package that will set your windows disk up to use WPI after the desktop loads.

This is for use with all versions of Windows 2000, XP and 2003!

To make use of this archive all you need to do is unRAR it and place the %oem% folder beside the I386 and WPI folders.

Post $OEM$ Folder (The forum is messing up this link so copy www.wpiw.net/downloads/Post_$oem$.rar )

Contents of the Post %OEM% archive:

cmdlines.txt

RunWPI.inf

_______________________________________________________________________

Here is a quick start package that will set your windows disk up to use WPI with runonceex.

This is for use with all versions of Windows 2000, XP and 2003!

To make use of this archive all you need to do is unRAR it and place the %oem% folder beside the I386 and WPI folders.

$OEM$ Folder (The forum is messing up this link so copy www.wpiw.net/downloads/$oem$.rar )

Contents of the %OEM% archive:

cmdlines.txt

RunWPI.exe (Sets the runonceex and MCE themeing entries used for WPI)

_______________________________________________________________________

An $OEM%\WPI folder that sets up your WPI for RunOnceEx with the official Zune Microsoft Theme!

$OEM$-Zune Folder (The forum is messing up this link so copy www.wpiw.net/downloads/$oem$-zune.rar )

Contents of the %OEM%-Zune archive:

cmdlines.txt

RunWPI_Zune.exe

Use is as the same as the one above...

_______________________________________________________________________

This is for use with all versions of Windows Vista and Server 2008!

To make use of this archive all you need to do is unRAR it and place the Sources folder at the root of your CD.

Sources Folder.

Contents of the Sources archive:

setupcomplete.cmd (This needs to be several folders deep so I preset the folders for you)

________________________________________________________

1978 .png images for your pleasure to use in your tooltips or whatever!

PNG Collection.

________________________________________________________

Themes are now hosted on WPI.net!!!

Please remember and donate!

Edited by Kelsenellenelvian
Link to comment
Share on other sites


Looks like WPI launched way early in the reboot and got "stuck." I have seen it a few times myself. Can't really explain it. Can't reproduce it; just happens. WPI is trying to load everything but can't for some reason. Wigs out.

Link to comment
Share on other sites

OH dear.... Wow please check and see if your lang file has all of the needed trahslated lines in it.

Also YES you can keep your old config! :D

I wanted to edit the post to say its with all languages, but you replied already. :blushing:

I chaged it into english, and the buttons are still like that.

Link to comment
Share on other sites

I just tried several languages all without problem. Did you take out language support files with nLite possibly? Try it on a clean/full install to see if the languages work. No one else has this problem.

Link to comment
Share on other sites

  • 3 weeks later...

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