Jump to content

Recommended Posts


Posted (edited)

Ok cool :-)

Which scripts do you want to see? Do you want me to post code directly here or upload as attachment or PM you?

Edited by damak5
Posted

I am firing off WPI from sysprep using the following command in the oobeSystem pass. this is part of the first logon commands:


<SynchronousCommand wcm:action="add">
<CommandLine>c:\windows\utils\wpi\wpi.exe</CommandLine>
<Order>2</Order>
<RequiresUserInput>true</RequiresUserInput>
</SynchronousCommand>

this is my config.js. I was using WPI 8.1 and copied the old config.js into the UserFiles folder as recommended when upgrading to WPI 8.4.6. I still have the config.js file and the other 4 files that are supposed to be in the UserFiles folder, in the WPI scripts folder:


// WPI Config 8.0.0
//
// User defined options
//


// Configurations tab
CheckOnLoad='default';
Configurations=[];
ShowMultiDefault=true;
// ---
SortOrder=['Applications'];

//---------------------------------------------------------------------------------------------
// Your programs here...
//---------------------------------------------------------------------------------------------
pn=1;
prog[pn]=['Cisco VPN'];
uid[pn]=['CISCOVPN'];
dflt[pn]=['yes'];
forc[pn]=['no'];
bit64[pn]=['no'];
cat[pn]=['Applications'];
cmds[pn]=['"%wpipath%\\Install\\Cisco VPN\\CiscoVPN64.exe"'];
desc[pn]=['Cisco VPN'];
pn++;

prog[pn]=['D630 Driver Pack'];
uid[pn]=['D630DRIVERPACK'];
dflt[pn]=['yes'];
forc[pn]=['no'];
bit64[pn]=['no'];
cat[pn]=['Applications'];
cmds[pn]=['"%wpipath%\\Install\\D630\\Audio\\setup.exe" -s','"%wpipath%\\Install\\D630\\Intel Wireless\\Intel PROSet Wireless.msi" /quiet'];
desc[pn]=['Intel Wireless'];
pn++;

prog[pn]=['Optiplex 960 Driver Pack'];
shortdesc[pn]=['Optiplex 960 Driver Pack - REQUIRED INSTALL'];
uid[pn]=['OPTIPLEX960DRIVERPACK'];
dflt[pn]=['yes'];
forc[pn]=['no'];
bit64[pn]=['no'];
cat[pn]=['Applications'];
cmds[pn]=['"%wpipath%\\Install\\Optiplex 960 drivers\\Audio\\setup.exe" -s','"%wpipath%\\Install\\Optiplex 960 drivers\\Intel AMT HECI\\setup.exe" -s','"%wpipath%\\Install\\Optiplex 960 drivers\\Intel AMT SOL\\setup.exe" -s'];
desc[pn]=['Optiplex 960 drivers'];
pn++;


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

my useroptions.js file. this is in the UserFiles folder and thew WPI scripts folder:


// WPI Options 8.1.0
//
// User defined options
//


// Window tab
Resolution=800;
MainWindowWidth=800;
MainWindowHeight=600;
MainWindowX=-1;
MainWindowY=-1;
InstallerWindowX=25;
InstallerWindowY=25;


// General tab
NumCols=3;
// ---
Timer=false;
Seconds=60;
StartBeepAtSecs=10;
// ---
Language='en';
// ---
DefaultInstallPath='default';
CustomInstallPath=[''];
// ---
AbortInstallIfFailure=false;
ExecuteCommandIfFailure=[''];
ContinueWhereFailed=false;


// Features tab
ShowExtraButtons=false;
DoNotShowIfCD=true;
USSFSilentMode=false;
VerifyInstallHDD=false;
AllowCheckForInternet=false;
LoadDesktopBeforeInstall=false;
ReOpenAfterInstall=false;
DisableCatCheckBoxes=false;
SortWithinCats=false;
DisableOnDepsNotMet=true;
AlwaysUseScrollBar=true;
DontSplitCats=true;
InstallByCategory=true;
ReallyForce=false;
DisableIfDoGray=false;
InstallFonts=false;
ShowCommandInInstaller=false;
ShowInstallerImages=false;
AlwaysShowOutputWindow=false;
EjectCDWhenDone=false;
DoNotShowIfUSB=true;
DisableHotKeys=false;


// Tools tab
MonitorResolution=0;
MonitorDepth=0;
MonitorRefresh=0;
// ---
ExecuteBeforeEnabled=false;
ExecuteBeforebit64=false;
ExecuteBefore=[''];
ExecuteAfterEnabled=false;
ExecuteAfterbit64=false;
ExecuteAfter=[''];
// ---
RestartComputer=false;
RestartType=0;
RestartSeconds=30;
DoNotLoadDesktop=true;
// ---
LogInstallation=false;
LogPath=['%systemdrive%\\WPI_Log.txt'];
TimeStampLogFile=false;


// Audio tab
PlayAudioInInstaller=false;
InstallAudio=[];
Volume=75;
Shuffle=false;
CopyAudioFolder=false;
CopyAudioPath=['%systemdrive%\\WPI_Audio'];
DeleteAudioFolder=false;


// Sounds tab
SndWPIStartCB=false;
SndWPIStart=['"%wpipath%\\Audio\\SoundsScheme\\Alert.wav"'];
SndInstallStartCB=false;
SndInstallStart=['"%wpipath%\\Audio\\SoundsScheme\\AtBeginning.wav"'];
SndInstallSuccessCB=false;
SndInstallSuccess=['"%wpipath%\\Audio\\SoundsScheme\\Yes.wav"'];
SndInstallWarningCB=false;
SndInstallWarning=['"%wpipath%\\Audio\\SoundsScheme\\Warning.wav"'];
SndInstallFailCB=false;
SndInstallFail=['"%wpipath%\\Audio\\SoundsScheme\\No.wav"'];
SndInstallFinishCB=false;
SndInstallFinish=['"%wpipath%\\Audio\\SoundsScheme\\AtEnd.wav"'];
SndWPIExitCB=false;
SndWPIExit=['"%wpipath%\\Audio\\SoundsScheme\\Exit.wav"'];

Posted

I use like this, inside:

<settings pass="oobeSystem">


<FirstLogonCommands>
<SynchronousCommand wcm:action="add">
<Order>1</Order>
<Description>Le mot de passe n'expire jamais</Description>
<CommandLine>cmd /C wmic useraccount where "name='Antoine'" set PasswordExpires=FALSE</CommandLine>
<RequiresUserInput>false</RequiresUserInput>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<Order>2</Order>
<Description>Installation des applications avec WPI</Description>
<CommandLine>cmd /c for %i in (C D E F G H I J K L M N O P Q R S T U V W X Y Z) do if exist %i:\wpi\wpi.exe start %i:\wpi\wpi.exe</CommandLine>
<RequiresUserInput>false</RequiresUserInput>
</SynchronousCommand>
</FirstLogonCommands>

Regards

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