Jump to content

RunOnceEx.CMD Doesn't work...


Recommended Posts

My Winnt.SIF

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

[Unattended]
UnattendMode=FullUnattended
OemSkipEula=Yes
OemPreinstall=Yes
TargetPath=\WINDOWS
Repartition=Yes
WaitForReboot="No"
OemPnPDriversPath="Drivers\001_network"
DriverSigningPolicy=Ignore
KeyboardLayout="United Kingdom"

[GuiUnattended]
AdminPassword=*******
AutoLogon=Yes
AutoLogonCount=1
OEMSkipRegional=1
TimeZone=85
OemSkipWelcome=1

[UserData]
ProductID="*****-*****-*****-*****-*****"
FullName=""
OrgName=""
ComputerName=*

[Display]
BitsPerPel=24
Xresolution=1024
YResolution=768
Vrefresh=75

[RegionalSettings]
LanguageGroup=1
SystemLocale=00000809
UserLocale=00000809
InputLocale=0809:00000809

[Identification]
JoinDomain=REDHILL
DomainAdmin=administrator
DomainAdminPassword=********

[Networking]
InstallDefaultComponents=Yes

[Branding]
BrandIEUsingUnattended=Yes

[URL]
Home_Page=http://www.google.co.uk/
Search_Page=http://www.google.co.uk/

[Proxy]
Proxy_Enable=0
Use_Same_Proxy=1

[GuiRunOnce]
RunOnceEx.cmd

My CMDLINES.TXT

[Commands]
"REGEDIT /S .\discover.reg"
"cmd /c start /min cmd /c .\discover.bat"
"RunOnceEx.cmd"

My RunOnceEx.cmd

cmdow @ /HID
@Echo Off
SET PP=%SystemDrive%\Install\

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY% /V TITLE /D "Final Installation Tasks" /f

REG ADD %KEY%\000 /VE /D "Mapping Network Drives" /f
regedit  /s ie.reg
net time \\192.168.58.1 /set /y
net use H: "\\192.168.58.1\data"
net use P: "\\192.168.58.1\profile7-000"
net use S: "\\192.168.58.1\system files"
net use T: "\\192.168.58.1\vphome

REG ADD %KEY%\001 /VE /D "Copying Shortcuts" /f
copy "H:\utility\support\Employee Intranet.url" "C:\Documents and Settings\All Users\Desktop"

REG ADD %KEY%\002 /VE /D "Adobe Acrobat Reader 7.0" /f
REG ADD %KEY%\002 /V 1 /D ""H:\UTILITY\Software\Acrobat\Adobe Acrobat Reader\Ver 7\AdbeRdr70_enu_full.exe" -p\"-s /v\"/qn\"\"" /f

REG ADD %KEY%\003 /VE /D "WinZip 9.0" /f
REG ADD %KEY%\003 /V 1 /D "%PP%"Program Files"\WinZip\winzip32.exe /noqp /autoinstall" /f

REG ADD %KEY%\004 /VE /D "Microsoft .NET Framework 1.1" /f
REG ADD %KEY%\004 /V 1 /D "%PP%Microsoft\dotnetfw.exe /q /c:"install /q"" /f

REG ADD %KEY%\005 /VE /D "Macromedia ShockWave Player 8.0" /f
REG ADD %KEY%\005 /V 1 /D "%PP%Macromedia\Shockwave_Installer_Full.exe /S" /f

REG ADD %KEY%\006 /VE /D "Norton Anitvirus Corporate Edition" /f
REG ADD %KEY%\006 /V 1 /D ""T:\clt-inst\WIN32\NAVCE.EXE" /QN" /f

REG ADD %KEY%\007 /VE /D "Completing Final Installation Tasks" /f
REG ADD %KEY%\007 /V 1 /D "%PP%cleanup.cmd" /f
net use T: /DELETE

EXIT

My Folder Structure is as follows.

folderstructure.JPG

My Installation Is Windows 2000, with Service Pack 4, IE6, DirectX9 Slipstreamed.

And over 20 hotfixes intergrated.

Any Problems you can spot? Please let me know.

Edited by antonio_king
Link to comment
Share on other sites


What does not work?

None of the settings or only a vew?

Do you get the popup window after all or not even that?

It is also possible to test it by forcing an immediate execution. Search the forum for the command. I use it to test so I don't have to reboot first.

Link to comment
Share on other sites

I'm using it on my windows 2000 installation.

Upon connecting it prompts for a password to connect to the network... Dont want it to ask.And even entering the correct password it always returns back that it was incorrect.

After skipping that, it says "cannot find the file "RunOnceEx.cmd" (or one of its components). Make sure the path or filename is correct and that all the libaries are availabe"

:s

Link to comment
Share on other sites

Try it without the network mappings first. Deselt them by putting a ; in front of the lines. ex.:

;net time \\192.168.58.1 /set /y

;net use H: "\\192.168.58.1\data"

;net use P: "\\192.168.58.1\profile7-000"

;net use S: "\\192.168.58.1\system files"

;net use T: "\\192.168.58.1\vphome

Or beter, try it with only 1 application and then build it up.

I've only used RunOnceEx with XP so far

Link to comment
Share on other sites

Ok, ill give it ago without the network mappings... but some of the installations are coming from drives that will need to be mapped.

I've found out how to add usernames and passwords for the mappings...

cmdow @ /HID
@Echo Off

SET PP=%SystemDrive%\Install\
SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY% /V TITLE /D "CBSbutler Final Installation Tasks" /f

REG ADD %KEY%\000 /VE /D "Mapping Network Drives" /f
net use H: /delete
net use P: /delete
net use S: /delete
net use T: /delete
net use H: \\192.168.58.1\data /user:REDHILL\administrator password:********
net use P: \\Profile1\profile7-000
net use S: \\192.168.58.1\system files
net use T: \\192.168.58.1\vphome

REG ADD %KEY%\001 /VE /D "Copying Shortcuts" /f
COPY "\"H:\utility\support\Employee Intranet.url\" \"C:\Documents and Settings\All Users\Desktop\""

REG ADD %KEY%\002 /VE /D "Adobe Acrobat Reader 7.0" /f
REG ADD %KEY%\002 /V 1 /D "\"H:\UTILITY\Software\Acrobat\Adobe Acrobat Reader\Ver 7\AdbeRdr70_enu_full.exe\" -p\"-s /v\"/qn\"\"" /f

REG ADD %KEY%\003 /VE /D "WinZip 9.0" /f
REG ADD %KEY%\003 /V 1 /D "%SystemDrive%\"Program Files\"\WinZip\winzip32.exe /noqp /autoinstall" /f

REG ADD %KEY%\004 /VE /D "Macromedia ShockWave Player 8.0" /f
REG ADD %KEY%\004 /V 1 /D "%PP%Macromedia\Shockwave_Installer_Full.exe /S" /f

REG ADD %KEY%\005 /VE /D "Microsoft .NET Framework 1.1" /f
REG ADD %KEY%\005 /V 1 /D "%PP%Microsoft\dotnetfw.exe /q /c:\"install /q\"" /f

REG ADD %KEY%\006 /VE /D "Microsoft Office 2000" /f
REG ADD %KEY%\006 /V 1 /D "\"S:\MS Office 2000\Disk1\SETUP.EXE\""
REG ADD %KEY%\006 /V 2 /D "\"S:\MS Office 2000\Disk2\SETUP.EXE\""
REG ADD %KEY%\006 /V 3 /D "\"S:\Service Packs\Office Updates\Office 2000 Service Packs\o2ksp3.exe\""

REG ADD %KEY%\007 /VE /D "Norton Antivirus Corporate Edition 7.6" /f
REG ADD %KEY%\007 /V 1 /D "\"T:\clt-inst\WIN32\NAVCE.EXE\" /QN" /f

REG ADD %KEY%\008 /VE /D "Installing Patches and further Security Fixes" /f
REG ADD %KEY%\008 /V 1 /D ""

REG ADD %KEY%\009 /VE /D "Completing CBSbutler Final Installation Tasks" /f
REG ADD %KEY%\009 /V 1 /D "%PP%cleanup.cmd" /f

EXIT

Ill try the above script first... If that fails, ill try it without the network mappings, one app at a time. Cheers

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