Jump to content

File and Directory Structure ?


Recommended Posts

Hi all,

Excellent site and forums btw. I have a question regarding the execution of the WPI.cmd batch file.

In the \$OEM$\$1\Install\ I have a folder called WPI with all the WPI files and folders inside it.

Would I be correct in adding the line ".\$1\Install\WPI\WPI.cmd" to cmdlines.txt and this would execute the WPI.cmd batch file?

Also, I have cmdlines.txt in the $OEM$ folder but what executes that file ?

Thanks in advance

Seany

Link to comment
Share on other sites


The normal way is to call wpi.cmd from winnt.sif

Just add a line like this in your winnt.sif:

[GuiRunOnce]
%systemdrive%\install\wpi\wpi.cmd

WPI is used to replace other methods like RunOnceEX and batch scripting. Possible cleanup scripts or stuff like that can be called from wpi.hta like other programs or you can call them from within wpi.cmd after wpi.hta has finished.

Link to comment
Share on other sites

ok thanks for the reply, what I really should have asked is how do I get WPI to run from my particular setup I have.

Here is my cmdlines.txt :

[COMMANDS] 
".\useraccounts.cmd"
"REGEDIT /S .\RegTweaks.reg"
".\$1\Install\WPI\WPI.cmd"
".\cleanup.cmd"

Here is some of my winnt.sif :

;SetupMgrTag 
[Data]
AutoPartition=0
MsDosInitiated="0"
UnattendedInstall="Yes"
AutomaticUpdates=yes

[Unattended]
UnattendMode=ProvideDefault
OemSkipEula=Yes
OemPreinstall=Yes
TargetPath=\WINDOWS
KeyboardLayout="Irish"


[GuiUnattended]
EncryptedAdminPassword=NO
OEMSkipRegional=1

[UserData]
ProductID=XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
FullName=""
OrgName=""

[Identification]
JoinWorkgroup=WORKGROUP

[Networking]
InstallDefaultComponents=Yes

[Components]
Msmsgs=off
Msnexplr=off
Freecell=on
Hearts=on
Minesweeper=on
Pinball=on
Solitaire=on
Deskpaper =on
Calc=on
Charmap=on
AutoUpdate=on
Hypertrm=on
Mousepoint=on
Paint=on

[Shell]
CustomDefaultThemeFile = "%WinDir%\Resources\Themes\Royale\Royale.theme"

Link to comment
Share on other sites

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