MSFN Forum: WPI v7.2.2 - MSFN Forum

Jump to content



  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

WPI v7.2.2 December 21st, 2008 Rate Topic: -----

#1 User is offline   Kelsenellenelvian 

  • WPI Guru
  • Group: Developers
  • Posts: 7,653
  • Joined: 18-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

  Posted 08 December 2008 - 04:31 AM

Posted ImagePosted Image

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.

WPI is a simple to use automation program for the choice and installation of multiple programs, tweaks and scripts. No longer will you need a dozen CD's or more when doing a fresh Installation. No longer will you need multiple files when you are servicing another PC. With Windows Post-Install Wizard all that you will need is 1 or 2 CD\DVD's to fully install your PC with all of your apps, scripts, registry files or tweaks. Instead of having to re-download those apps like adobe reader, flash or updates to programs you can have them all on one disk. With WPI you can have all of them all on one disk and then have a nice interface for selecting which apps to install and after configured properly WPI will install all of them without any needed input from you. WPI also and is commonly used added to your windows installation disks. This way you can automate the complete process of Windows and program installations.

With your typical setup of WPI you have your OS and all of the apps, tweaks and such on one disk. After windows installs, WPI kicks in and you are given a selection of everything you have configured WPI with, then you can select the ones you want or simply let the timer run out and your default apps will install.

Highlights of the newest version!
 
v7.2.2 Updates - Released December 21th, 2008
========================================================================
* Tweaked all the themes to get spacing in buttons to match across the
board.

* Log file now logs all user settings.

* Fixed a bug in the installer with the reboot and history files.

* Tweaked the update notice for config file.

* Tweaked how the Options/Config file path is set.  No longer uses
relative paths.

* Added function getIEver().
Usage: getIEver()=="7.0"
Returns: 5.5, 6.0, 7.0, 8.0

* Automated the %comma% placement/replacement.  You can put your commas
back in place of the %comma%.

* Fixed bug with &'s in command line.  Also fixed bugs with commas in
names.

* Fixed bug in installer not using selected language after a reboot.

* Took Change Log tab out of About WPI window.  Too large; slows closing
of window.

* More information is logged in the install log file.

* Fixed a sorting bug when saving the Config file.

* Using new IE6 PNG filter code.  It works better, but, is slower and
system intensive.

* Updated CDROM check yet again.  CDROM will be set if started from a CD
or a USB key (removable device).

* Updated Pause and Abort in installer even more.

* Updated the Pause in installer.  Now pauses immediately. 



Posted Image

Notes and Extras

Suggested disk folder layout:

Posted Image

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. Go to the very top area above the config section and click on the button 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 (UID) section gets automatically filled in 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 commands tab click on "Add" at the controls area just right of the command line pane and then the the little folder icon and browse to your folder that contains the app, preferably the .\WPI\Install folder then select the CCleaner installer, this will place the appropriate path in the command line.
9. Add the necessary switch(s) for the program to run silently. For CCleaner the switch is /S so you would have your command line looks like so = "%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 command line.) Other switches for apps that USSF cannot identify you can try looking at the forum section here = MSFN Application Installs section,
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...


_____________________________________________________________________

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.

http://www.wpiw.net/.../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.

http://www.wpiw.net/...loads/$OEM$.rar

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!

http://www.wpiw.net/.../$OEM$-Zune.rar

Contents of the %OEM%-Zune archive:
cmdlines.txt
RunWPI_Zune.exe
_______________________________________________________________________

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

http://www.wpiw.net/...M$-Embedded.rar

Contents of the %OEM%-Embedded archive:
cmdlines.txt
RunWPI_Embedded.exe
_______________________________________________________________________
Here is mritters RUN_ WPI solution!

http://www.wpiw.net/..._RunWPI.cmd.rar
CleanUpWPI.cmd
cmdlines.txt
RunOnceEx.cmd
RunWPI.cmd

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)
________________________________________________________

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

PNG Collection.
________________________________________________________



Themes are now hosted on WPI.net!!!

Theme page!

Please remember and donate!

This post has been edited by Kelsenellenelvian: 22 December 2008 - 12:38 AM



#2 User is offline   Kelsenellenelvian 

  • WPI Guru
  • Group: Developers
  • Posts: 7,653
  • Joined: 18-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 08 December 2008 - 05:27 AM

OK all of the WPIRun files HAVE been updated!

#1 They now include the office fix.
#2 They work again to run WPI before the desktop loads again.

I do, however, need this translated to cmd version from anyone that can do it please (For the Vista source file)

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main]
"Disable Script Debugger"="no"
"DisableScriptDebuggerIE"="no"


#3 User is offline   mritter 

  • WPI Co-Developer
  • Group: Developers
  • Posts: 1,088
  • Joined: 13-November 05

Posted 08 December 2008 - 06:29 PM

This is a maintenance release. See the Change Log for the bug fixes.

Happy Birthday, Kels!

#4 User is offline   Kelsenellenelvian 

  • WPI Guru
  • Group: Developers
  • Posts: 7,653
  • Joined: 18-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 08 December 2008 - 10:34 PM

ALL run WPI solutions have been fixed!

They now run at the designated time and also include the Office fix.

This post has been edited by Kelsenellenelvian: 08 December 2008 - 10:34 PM


#5 User is offline   Stoner81 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 342
  • Joined: 15-June 08

Posted 09 December 2008 - 10:10 AM

Thanks for the update i have been using v7.2.0 and the bug with the desktop loading was really annoying so thanks for fixing that.

One suggestion though guys in the next version could you please put back the option to organise the WPI into alphabetical order for the way things are installed i cant find the option to do this in the new version so i apologise if it is there and i cant see the wood for the bloody trees!!! :D

Thanks again for this awesome app, pats on the backs for all you guys!!!

Peace

Stoner81

#6 User is offline   Wesmosis 

  • Just Call Me Doctor Just Call Me Pain!
  • PipPipPipPipPip
  • Group: Members
  • Posts: 787
  • Joined: 20-September 04

Posted 09 December 2008 - 03:55 PM

thanx so much for such awesome release :)
thanx for fixing the desktop loading bug, it drove me crazy and I was depressed
now I'm glad to hear the good news ;)

This post has been edited by Wesmosis: 09 December 2008 - 04:16 PM


#7 User is offline   mritter 

  • WPI Co-Developer
  • Group: Developers
  • Posts: 1,088
  • Joined: 13-November 05

Posted 09 December 2008 - 05:12 PM

@Stoner81: Options -> General tab -> Options combo drop down box -> Sort within categories.

#8 User is offline   Wesmosis 

  • Just Call Me Doctor Just Call Me Pain!
  • PipPipPipPipPip
  • Group: Members
  • Posts: 787
  • Joined: 20-September 04

Posted 10 December 2008 - 04:16 AM

excuse me

desktop still loads while WPI is working!
which $OEM should I download with this version

another thing, when WPI start installing the application
I need the Words (Failed) in red and the Word (Succeful) in Green
how to do that?

This post has been edited by Wesmosis: 10 December 2008 - 04:20 AM


#9 User is offline   Kelsenellenelvian 

  • WPI Guru
  • Group: Developers
  • Posts: 7,653
  • Joined: 18-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 10 December 2008 - 04:23 AM

Like this?

Maybe you should just update your theme. (Its in the .css file.)

ALL %oem% files where updated! Just pick the same one as you had before.

This post has been edited by Kelsenellenelvian: 10 December 2008 - 04:24 AM


#10 User is offline   Kelsenellenelvian 

  • WPI Guru
  • Group: Developers
  • Posts: 7,653
  • Joined: 18-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 10 December 2008 - 04:59 AM

UPDATE YOUR THEMES!!! :o

Many minor changes have been made to the theming files. The old ones still work, yet the updated ones look and work ALOT better!

This post has been edited by Kelsenellenelvian: 10 December 2008 - 05:00 AM


#11 User is offline   Wesmosis 

  • Just Call Me Doctor Just Call Me Pain!
  • PipPipPipPipPip
  • Group: Members
  • Posts: 787
  • Joined: 20-September 04

Posted 10 December 2008 - 10:59 AM

appreciate it
I like Dyne thme
does it have the colored words? :)

#12 User is offline   Kelsenellenelvian 

  • WPI Guru
  • Group: Developers
  • Posts: 7,653
  • Joined: 18-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 10 December 2008 - 05:28 PM

Yes

#13 User is offline   Wesmosis 

  • Just Call Me Doctor Just Call Me Pain!
  • PipPipPipPipPip
  • Group: Members
  • Posts: 787
  • Joined: 20-September 04

Posted 11 December 2008 - 06:31 AM

Theme Worked 100%
Desktop bug still there :(

#14 User is offline   Kelsenellenelvian 

  • WPI Guru
  • Group: Developers
  • Posts: 7,653
  • Joined: 18-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 22 December 2008 - 12:38 AM

Updated here!

#15 User is offline   Stoner81 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 342
  • Joined: 15-June 08

Posted 22 December 2008 - 09:55 AM

View Postmritter, on Dec 9 2008, 11:12 PM, said:

@Stoner81: Options -> General tab -> Options combo drop down box -> Sort within categories.


Thanks for that I thought I had used it before but could not find it! Sorry for askin a bit of a dumb question there! :D

Cheers for the help!

Stoner81.

#16 User is offline   Meha 

  • Group: Members
  • Posts: 6
  • Joined: 11-May 08

Posted 24 December 2008 - 06:11 AM

mritter,

Here is a small bug.

getOSver() returns "NOT_FOUND" for Windows Server ® 2008.


*****
if (ver.indexOf("Windows7") != -1)
szOSVerCache="Win7";
if (ver.indexOf("Server 2008") != -1) -> will not work as it returns info as "Windows Server ® 2008"
szOSVerCache="08";
if (ver.indexOf("Vista") != -1)
szOSVerCache="Vista";

*****


Better use Build no.

Version 6.0.6000
Build 6000 -> for Vista


Version 6.0.6001
Build 6001 -> for Windows 2008

for time being, I changed this as

if (ver.indexOf("2008") != -1)
szOSVerCache="08";

Hope this helps.

This post has been edited by Meha: 24 December 2008 - 06:13 AM


#17 User is offline   Kelsenellenelvian 

  • WPI Guru
  • Group: Developers
  • Posts: 7,653
  • Joined: 18-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 24 December 2008 - 01:04 PM

Minor code revision.

WPI no no longer sees USB drives as CD\DVD drives. It will now write to them again.

#18 User is offline   Kelsenellenelvian 

  • WPI Guru
  • Group: Developers
  • Posts: 7,653
  • Joined: 18-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 24 December 2008 - 01:24 PM

@ Meha = Thats too confusing as my Vista is build 6002 now....

Thats a variable that changes too much.

#19 User is offline   mritter 

  • WPI Co-Developer
  • Group: Developers
  • Posts: 1,088
  • Joined: 13-November 05

Posted 24 December 2008 - 06:22 PM

@Meha: I changed the code to your

if (ver.indexOf("2008") != -1)
szOSVerCache="08";


I have never installed Server '08; was relying on other people's input. I probably should do the same for Server 2003.

#20 User is offline   Meha 

  • Group: Members
  • Posts: 6
  • Joined: 11-May 08

Posted 25 December 2008 - 11:42 PM

mritter,

Following is the modified version of WMI section of getOSver()
I have tested this on XP, 2003, Vista and 2008 and returns correct value.
I don't have Windows 7, Windows 2000 Pro and 2000 Server test machines. Hope somebody else
Will test it on these platforms and give you the feed back.

This is adapted from GetNativeSystemInfo(ref SYSTEM_INFO lpSystemInfo) using OSVERSIONINFOEX


*****************************************************

objWMIService=GetObject("winmgmts:\\\\" + "." + "\\root\\CIMV2");
colItems=objWMIService.ExecQuery("SELECT * FROM Win32_OperatingSystem", "WQL", wbemFlagReturnImmediately | wbemFlagForwardOnly);
enumItems=new Enumerator(colItems);
objItem=enumItems.item();

ver = objItem.Version.substr(0,3);

prodType = objItem.ProductType;

if ( ver == "6.1" ) // please confirm version no. on Windows 7
{
if ( prodType == 1 )
{
sVersionID = "Win7"; // Windows 7
}
else
{
sVersionID = "08R2"; // Windows Server 2008 R2 -> next server version based on Windows 7
}
}
else if ( ver == "6.0" )
{
if ( prodType == 1 )
{
szOSVerCache = "Vista";
}
else
{
szOSVerCache = "08";
}
}

else if ( ver =="5.2" )
{
if ( prodType == 1 )
{
szOSVerCache = "XP"; // 64 bit version as per MSDN doc. not tested by me
}
else
{
szOSVerCache = "03";
}
}

else if ( ver =="5.1" )
{
szOSVerCache = "XP";
}

else if ( ver =="5.0" ) // Not sure about reliability of WMI on Win 2000. Just for completeness. Need not go for 2KP & 2KS
{
if ( prodType == 1 )
{
szOSVerCache = "2KP";
}
else
{
szOSVerCache = "2KS";
}
}

*****************************************************
Here are the possible product types.

wProductType
Any additional information about the system. This member can be one of the following values.

Value Meaning
VER_NT_DOMAIN_CONTROLLER
0x0000002
The system is a domain controller and the operating system is Windows Server 2008, Windows Server 2003, or Windows 2000 Server.

VER_NT_SERVER
0x0000003
The operating system is Windows Server 2008, Windows Server 2003, or Windows 2000 Server.

Note that a server that is also a domain controller is reported as VER_NT_DOMAIN_CONTROLLER, not VER_NT_SERVER.

VER_NT_WORKSTATION
0x0000001
The operating system is Windows Vista, Windows XP Professional, Windows XP Home Edition, or Windows 2000 Professional.

*****************************************************
MSDN library link to OSVERSIONINFOEX Structure
http://msdn.microsof...833(VS.85).aspx

If you like, you can even have IsServer() and IsWorkstation() functions as conditions.

prodType == 1 for Workstation
prodType > 1 for Server

Hope this will settle getOSVersion() issues.

Meha

This post has been edited by Meha: 25 December 2008 - 11:59 PM


Share this topic:


  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy