Jump to content

Windows Post-Install Wizard Main Thread...


Recommended Posts

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 input from you. WPI is also commonly 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.

Mainani.gif

WPIW License.

1. Redistribution =

You may reproduce and distribute copies of the Work or Derivative Works

thereof in any medium, with or without modifications, and in Source or

Object form, provided that You meet the following conditions:

1a. You must give any other recipients of

the Work or Derivative Works a copy of this License.

1b. You must cause any modified files to carry prominent

notices stating that you changed the files.

1c. Modifications can be posted

and shared at: MSFN\WPIW Forum Section. (www.msfn.org)

1d. Please, if you feel especially proud of your

modifications or improvements send a

copy with the changes noted to Kelsenellenelvian@gmail.com.

3. WPIW is not free for Business or Corporate use.

3a. Non-profit and charity organizations are free to use it.

3b. Educational institutions can get discount licenses

from Kelsenellenelvian@gmail.com

4. Any Business or Corporation that wishes to use

WPIW may purchase a license at the price of $100 USD.

4a. Please contact Kelsenellenelvian at kelsenellenelvian@gmail.com

5. WPIW is supplied "as-is". The author assumes no liability for damages,

direct or consequential, which may result from the use of WPIW.

Edited by Kelsenellenelvian
Link to comment
Share on other sites


Commands:

---------

{DELETE} C:\File.txt

{DELDIR} C:\Windows (DO NOT DO THIS! Just an example)

{DIRCOPY} "C:\Windows" "D:\Windows"

{DIRMOVE} "C:\Windows" "D:\Windows"

{EXTRACT} C:\Source.rar C:\Destination\ (Supports most compression types!)

{FILECOPY} C:\File.txt D:\FILES\File.txt

{FILEMOVE} C:\File.txt D:\Files\File.txt (Cannot be used from a CD\DVD Source)

{INSTINF} C:\File.inf (Used for addon\or driver style inf's with a defaultinstall section)

{MAKEDIR} C:\Folder

{REBOOT} 1 - 1000 Will restart your system after the countdown! No value = immediately.

{REGDLL} C:\File.dll

{REGEDIT} C:\File.reg

{RENAME} C:\File.txt C:\NewFile.txt (The file HAS to stay in the same dir)

{RUNBG} C:\File.exe (Run in background, then start next command)

{SLEEP} 1 - 1000 Every number = 1 second

{START} "operainstaller" /MIN "%wpipath%\Install\opera11-uni\opera.exe" /install /silent /launchopera 0

{TASKILL} Program.exe

{UNREGDLL} C:\File.dll

RegDLL calls: regsvr32.exe /s %dll%

UnRegDLL calls: regsvr32.exe /u /s/ %dll%

InstINF calls: rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 %inf% (%dll% and %inf% are your chosen files)

LaunchINF calls: rundll32.exe advpack.dll,LaunchINFSection "Section"

Command line arguments:

-----------------------

options=useroptions.js

config=config.js

network=networkoptions.js

user="Ritter, Mark"

check=Server

timer=300

theme=Windows

force=true

language=de

continue=true

Edited by Kelsenellenelvian
Link to comment
Share on other sites

JScript:

--------

{JSCRIPT}=alert(Message)

Usage: {JSCRIPT}=alert("Open a window to show a message")

{JSCRIPT}=ClearAutoLogonUser()

Usage: {JSCRIPT}=ClearAutoLogonUser()

{JSCRIPT}=CreateRegKey(Key)

Usage: {JSCRIPT}=CreateRegKey("HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnceEx\001")

{JSCRIPT}=CreateShortcut(Description,IconLocation,Hotkey,TargetPath,Arguments,Destination,Folder)

Usage: {JSCRIPT}=CreateShortcut("Shortcut to ChangeLog","C:\WINDOWS\NOTEPAD.EXE","Ctrl+F","C:\WPI\ChangeLog.txt","-c -q SILENT","Desktop","Work")

{JSCRIPT}=CreateWindowsUser(Name,Password,Administrator)

Usage: {JSCRIPT}=CreateWindowsUser("Mark","hkS8l23M",true)

Note: Password is optional. Administrator=true/false. Switch user to take affect.

{JSCRIPT}=DeleteRegKey(Key)

Usage: {JSCRIPT}=DeleteRegKey("HKEY_CURRENT_USER\Software\WPI\WPI_Rocks")

{JSCRIPT}=DeleteWindowsUser(Name,Delete)

Usage: {JSCRIPT}=DeleteWindowsUser("Mark",true)

Note: If second arg is true, this will delete all associated files.

{JSCRIPT}=ErrorReporting(Enable,Notify,WindowsOS,Programs)

Usage: {JSCRIPT}=ErrorReporting(false,true,true,true)

{JSCRIPT}=FormatDrive(Drive,Label,FileSystem,ClusterSize,QuickFormat,EnableCompression)

Usage: {JSCRIPT}=FormatDrive("G:","Games","NTFS","4096",true,false)

Note: Requires user input during install process.

{JSCRIPT}=MapNetworkDrive(Letter,Path,Reconnect)

Usage: {JSCRIPT}=MapNetworkDrive("T:","\\Server\Share",true)

Note: true or false for Reconnect at logon.

{JSCRIPT}=PowerOptions(...)

Usage: {JSCRIPT}=PowerOptions(...)

Note: Reboot computer for all changes to take affect.

{JSCRIPT}=removeEnvVar(Variable)

Usage: {JSCRIPT}=removeEnvVar("USERNAME")

{JSCRIPT}=RenameComputer(Name)

{JSCRIPT}=RenameComputer("Computer1")

Note: Reboot computer to take affect. No spaces or special characters.

{JSCRIPT}=ScreenSaver(ScreenSaver,Minutes,IsSecure)

Usage: {JSCRIPT}=ScreenSaver("ssbezier",10,true/fale)

Note: A reboot is required for all changes to take affect.

{JSCRIPT}=SetAutoLogonUser(User,Password,Domain)

Usage: {JSCRIPT}=SetAutoLogonUser("Name","Password","Domain")

Note: Password is optional. If not on domain, use computer name.

{JSCRIPT}=setEnvVar(Variable,Value,Global)

Usage: {JSCRIPT}=setEnvVar("USERNAME","Mark",true)

{JSCRIPT}=SetFilePrinterSharing(state)

Usage: {JSCRIPT}=SetFilePrinterSharing(true)

{JSCRIPT}=SetFirewall(state)

Usage: {JSCRIPT}=SetFirewall(true)

{JSCRIPT}=SetPageFileSize(DriveLetter,InitialSize,MaximumSize,NoPageFile)

Usage: {JSCRIPT}=SetPageFileSize("C:",1024,2048,false)

Note: Reboot computer to take affect.

{JSCRIPT}=SetSecurityCenter_XP(Firewall,Updates,Virus,FirstRunDisabled,DisableSecurityCenter)

Usage: {JSCRIPT}=SetSecurityCenter_XP(true,true,true,true,false)

{JSCRIPT}=ShareFolder(ShareName,Path)

Usage: {JSCRIPT}=ShareFolder("WinCD","W:\XP_CD")

{JSCRIPT}=TimedWaitForDelete(Delay,Filespec,Timeout)

Usage: {JSCRIPT}=TimedWaitForDelete(10,"C:\Program Files\WinRar\WinRAR.exe",10)

{JSCRIPT}=TimedWaitForFile(Filespec,Timeout)

Usage: {JSCRIPT}=TimedWaitForFile("C:\Program Files\WinRar\WinRAR.exe",10)

{JSCRIPT}=TimedWaitForProgram(ImageName,Timeout)

Usage: {JSCRIPT}=WaitForProgram("Setup.exe",10)

{JSCRIPT}=WriteRegKey(Key,Value,Type)

Usage: {JSCRIPT}=WriteRegKey("HKEY_CURRENT_USER\Software\WPI\WPI_Rocks",1,"REG_DWORD")

Edited by Kelsenellenelvian
Link to comment
Share on other sites

Conditions:

-----------

ConnectedToInternet()

Usage: ConnectedToInternet()

Returns: true or false

DriveAvailableSpace(Drivespec)

Usage: DriveAvailableSpace("C:")>75 or DriveAvailableSpace("C:\")>75

Returns: 150 (gigabytes) or -1 if not exists

DriveExists(Drivespec)

Usage: DriveExists("E:")

Returns: true or false

DriveFileSystem(Drivespec)

Usage: DriveFileSystem("C:")=="NTFS" or DriveFileSystem("C:\")=="NTFS"

Returns: FAT16, FAT32, NTFS, or "".

DriveShareName(Drivespec)

Usage: DriveShareName("X:")=="\\MyServer\Folder" or DriveShareName("X:\")=="\\MyServer\Folder"

Returns: "" or a name like "\\server\share".

Must be a mapped network drive.

DriveTotalSize(Drivespec)

Usage: DriveTotalSize("C:")>=100 or DriveTotalSize("C:\")>=100

Returns: 150 (gigabytes) or -1 if not exists

DriveType(Drivespec)

Usage: DriveType("D:")=="FIXED"

Returns: UNKNOWN, REMOVABLE, FIXED, NETWORK, CDROM, or RAMDISK

DriveVolumeName(Drivespec)

Usage: DriveVolumeName("C:")=="Music" or DriveVolumeName("C:\")=="Music"

Returns: "" or a name. C:\ is usually blank.

FileExists(Filespec)

Usage: FileExists("C:\Program Files\ReadMe.txt")

Returns: true or false

fileVersionGreaterThan(Version,Filespec)

Usage: fileVersionGreaterThan("7.0",getFileVersion("C:\Program Files\Internet Explorer\iexplore.exe"))

Usage: fileVersionGreaterThan("2.0.40115.0",RegKeyValue("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Silverlight\Version"))

Returns: true or false

FolderExists(Filespec)

Usage: FolderExists("C:\test\")

Returns: true or false

getAntiVirusProduct()

Usage: getAntiVirusProduct()=="AVG Anti-Virus Free"

Returns: name of antivirus software registered with Windows Security Center.

getArch()

Usage: getArch()=="AMD64"

Returns: x86, AMD64, or IA64 (Itanium).

getArchIdentifier()

Usage: getArchIdentifier()=="x86 Family 15 Model 4 Stepping 8"

Returns: x86 Family 15 Model 4 Stepping 8

getArchMHz()

Usage: getArchMHz()>1800

Returns: 2002 (2GHz)

getArchName()

Usage: getArchName()=="AuthenticAMD"

Returns: AuthenticAMD, GenuineIntel, etc.

getArchNameString()

Usage: getArchNameString()=="Intel® Celeron® M processor 1.50GHz"

Returns: Intel® Celeron® M processor 1.50GHz

getBaseBoardManufacturer()

Usage: getBaseBoardManufacturer()=="ASUSTeK Computer Inc."

Returns: Name of motherboard manufacturer

getBaseBoardModel()

Usage: getBaseBoardModel()=="K8VSEDX"

Returns: Model of motherboard

getBIOSCaption()

Usage: getBIOSCaption()=="BIOS Version 73.08"

Returns: Long string BIOS version

getBIOSManufacturer()

Usage: getBIOSManufacturer()=="Phoenix"

Returns: Name of BIOS manufacturer

getBIOSVersion()

Usage: getBIOSVersion()=="PTLTD - 6040000"

Returns: Short string BIOS version

getBits()

Usage: getBits()==64

Returns: 32 or 64

getCDBurnerID()

Usage: getCDBurnerID()=="PCI\VEN_.........."

Returns: PnP Device ID. See Alt+G Hardware tab

getCDBurnerName()

Usage: getCDBurnerName()=="Plextor......"

Returns: Name of burner. See Alt+G Hardware tab

getCDROMID()

Usage: getCDROMID()=="PCI\VEN_.........."

Returns: PnP Device ID. See Alt+G Hardware tab

getComSpec()

Returns: C:\WINDOWS\system32\cmd.exe or other appropriate path.

getEnvVar(variable)

Usage: getEnvVar("USERNAME")=="Mark"

Returns: The value of the same name passed.

getFileSize(Filespec)

Usage: getFileSize("C:\test.txt")>100

Returns: number of bytes or -1 if not exists

getFileType(Filespec)

Usage: getFileType("C:\test.txt")=="PNG Image"

Returns: "" or type, ie, "Text Document"

getFileVersion(Filespec)

GetFileVersion() *Use lower case version, but this works!

Usage: getFileVersion("C:\Program Files\AVG\AVG.exe")

Returns: version number or 0

getFirewallProduct()

Usage: getFirewallProduct()=="Sygate Personal Firewall"

Returns: name of firewall software/hardware registered with Windows Security Center.

getFolderSize(Filespec)

Usage: getFolderSize("C:\windows\")>10000

Returns: number of bytes or -1 if not exists

getFreeRAM()

Usage: getFreeRAM()>300

Returns: 512 (megabytes)

getHDDControllerID()

Usage: getHDDControllerID("PCI\VEN_......")

Returns: true or false. See Alt+G Hardware tab

Note: Must know ID ahead of time.

getIEver()

Usage: getIEver()=="7.0"

Returns: 5.5, 6.0, 7.0, 8.0

getKeyboardID()

Usage: getKeyboardID()=="PCI\VEN_.........."

Returns: PnP Device ID. See Alt+G Hardware tab

getModemID()

Usage: getModemID()=="PCI\VEN_.........."

Returns: PnP Device ID. See Alt+G Hardware tab

getNetworkAdapterID()

Usage: getNetworkAdapterID()=="PCI\VEN_.........."

Returns: PnP Device ID. See Alt+G Hardware tab

getNumProcs()

Usage: getNumProcs()>1

Returns 1, 2, 4, etc.

getOSeditionID()

Usage: getOSeditionID()=="Ultimate Edition"

Returns: Home Basic Edition, Home Basic Premium Edition,

etc..., or Not found

getOSlang()

Usage: getOSlang()=="ENU"

Returns: three letter code; ENU, FRA, ITA, etc.

getOSlocale()

Usage: getOSlocale()=="English - United States"

Returns: English - United States

getOSver()

Usage: getOSver()=="XP"

Returns: 08, 03, Vista, XP, 2K, NT, ME, 98, or 95

getPointingDeviceID()

Usage: getPointingDeviceID()=="ACPI\PNP.........."

Returns: PnP Device ID. See Alt+G Hardware tab

getSMBIOSVersion()

Usage: getSMBIOSVersion()=="2.3"

Returns: Short string BIOS version

getSoundDeviceID()

Usage: getSoundDeviceID()=="PCI\VEN_.........."

Returns: PnP Device ID. See Alt+G Hardware tab

getSPver()

Usage: getSPver()==3

Returns: "", 1, 2, 3, 4, 5, or 6 (n)

getSysManufacturer()

Usage: getSysManufacturer()=="Gateway"

Returns: Gateway, Dell,..., To Be Filled By O.E.M.

getSysModel()

Usage: getSysModel()=="MX3231"

Returns: a string with model or To Be Filled By O.E.M.

getSysPCType()

Usage: getSysPCType()=="Desktop"

Returns: Unspecified, Desktop, Mobile, Workstation, Enterprise Server, Small Office and Home Office (SOHO) Server, Appliance PC, Performance Server, Maximum.

NOTE: Mobile does NOT refer to laptops.

getSystemEnclosureType()

Usage: getSystemEnclosureType()=="Laptop"

Returns: Laptop, Notebook or Desktop.

getSysType()

Usage: getSysType()=="x64-based PC"

Returns: x64-based PC, X86-based PC, MIPS-based PC, Alpha-based PC, Power PC, SH-x PC, StrongARM PC, 64-bit Intel PC, 64-bit Alpha PC, Unknown, X86-Nec98 PC

NOTE: The 'x' is not always lower-case.

getTotalRAM()

Usage: getTotalRAM()>512

Returns: 1024 (megabytes)

getVideoControllerID()

Usage: getVideoControllerID()=="PCI\VEN_.........."

Returns: PnP Device ID. See Alt+G Hardware tab

getWirelessNetworkAdapterID()

Usage: getWirelessNetworkAdapterID()=="PCI\VEN_.........."

Returns: PnP Device ID. See Alt+G Hardware tab

hasDVDBurner()

Usage: hasDVDBurner()

Returns: true or false. See Alt+G Hardware tab

hasDVDROM()

Usage: hasDVDROM()

Returns: true or false. See Alt+G Hardware tab

hasDVDDrive()

Usage: hasDVDDrive()

Returns: true or false. See Alt+G Hardware tab

isComputerName(Name)

Usage: isComputerName("Accounting")

Returns: true or false

isDesktopLoaded()

Usage: isDesktopLoaded()

Returns: true or false

isInstalled(Program)

Usage: isInstalled("Adobe Reader 8.1.2")

Returns: true or false

WARNING: This could take from 5 to 30 seconds for each check!

isLogOnServer(Server)

Usage: isLogOnServer("\\Server1")

Returns: true or false

Note: If not on a real network, domain will be the same as computer name.

isUserDomain(Domain)

Usage: isUserDomain("Workgroup")

Returns: true or false

Note: If not on a real network, domain will be the same as computer name.

isUserName(Name)

Usage: isUserName("Joe User")

Returns: true or false

RegKeyExists(Key)

Usage: RegKeyExists("HKEY_CURRENT_USER\Software\WPI\Theme")

Returns: true or false

RegKeyValue(Key)

Usage: RegKeyValue("HKEY_CURRENT_USER\Software\WPI\Theme")=="Windows"

Returns: true or false

Edited by Kelsenellenelvian
Link to comment
Share on other sites

Hot Keys:

---------

"Alt+Enter" Begin Install.

"ALT+F4" Exit WPI.

"Alt+A" Select All.

"Alt+B" Show Extra Buttons.

"Alt+C" Toggle Config Wizard.

"Alt+D" Select Defaults.

"Alt+G" Toggle Global Variables Window.

"Alt+H" Toggle Theme Wizard

"Alt+K" Toggle Network Wizard.

"Alt+M" Toggle Manual.

"Alt+N" Select None.

"Alt+O" Toggle Options Wizard.

"Alt+T" Toggle ToolTips On/off.

"Alt+W" Toggle About WPI.

"Esc" If the screen is not the main install screen, will return to the main interface. Otherwise you will exit WPI.

"F1" Toggle Manual.

"F2" Toggle Options Wizard.

"F3" Toggle Config Wizard.

"F4" Toggle Network Wizard.

"F6" Toggle Theme Wizard

"F12" Toggle About WPI.

Comparison operators:

---------------------

">" Greater Than

"<" Less Than

">=" Greater Than or equal to

"<=" Less Than or equal to

"==" Equal to (not "=", which assigns a value to a variable.)

"!=" Not equal to

"!==" Not identical

"===" Identical (equal and of the same type)

Logical operators:

------------------

"&&" AND

"||" OR

"!" NOT

Variables:

----------

%ALLUSERSPROFILE%:

%APPDATA%: (Current User)

%CDROM%: (WPI)

%COMMONPROGRAMFILES%:

%DOSPATH%:

%OSLANG%:

%PROGRAMFILES%:

%ROOT%: (WPI)

%SYSDIR%:

%SYSTEMDRIVE%:

%TEMP%: (Current User)

%USB%

%USERPROFILE%: (Current User)

%USERPROFILEROOT%:

%WINDIR%:

%WPIPATH%:

Edited by Kelsenellenelvian
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

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