Jump to content

Problem with unattended install cd


Recommended Posts


i think i found out where the error is coming from. it has to be one of my installs of my apps. i'm running through the apps individually.

but shouldn't they be installed after it logs into windows? not during the installation?

Link to comment
Share on other sites

i think i found out where the error is coming from. it has to be one of my installs of my apps. i'm running through the apps individually.

but shouldn't they be installed after it logs into windows? not during the installation?

Depends why don't you post a copy of your cmdlines.txt file

Also I noticed in you runonceex.cmd file you have

SET PP=%cdrom%\Install\
REG ADD %KEY%\000 /V 1 /D "%PP%install\WGAPluginInstall.exe /Q" /f

Which would end up as %cdrom%\Install\install\WGAPluginInstall.exe /Q

don't know if thats what you want or not.

Link to comment
Share on other sites

cmdlines.txt

[COMMANDS]
"RunOnceEx.cmd"

Don't see anything wrong there.

But where is your Runonceex.cmd

You also never said what the last error was you were getting

Yes apps installed through runonceex are normally

installed at first logon.

Link to comment
Share on other sites

cmdow @ /HID
@Echo Off

FOR %%i IN (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:\win51ip.SP2 SET CDROM=%%i:

SET PP=%cdrom%\$OEM$\$1\

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

REG ADD %KEY% /V TITLE /D "Installing Applications" /f

REG ADD %KEY%\000 /VE /D "DirectX 9.0" /f
REG ADD %KEY%\000 /V 1 /D "%PP%install\dx.exe /Q" /f

REG ADD %KEY%\001 /VE /D "Firefox" /f
REG ADD %KEY%\001 /V 1 /D "%PP%install\fox.exe /s" /f

REG ADD %KEY%\002 /VE /D "Quicktime 7.0" /f
REG ADD %KEY%\002 /V 1 /D "%PP%install\QuickTimeInstaller.exe /S /V/qn" /f

REG ADD %KEY%\003 /VE /D "Adobe Reader 8" /f
REG ADD %KEY%\003 /V 1 /D "%PP%install\Ad8\AcroRead.msi /qn /norestart" /f

REG ADD %KEY%\005 /VE /D "Adding Nero's License" /f
REG ADD %KEY%\005 /V 1 /D "REGEDIT /S %systemdrive%\install\Nero\register.reg" /f

REG ADD %KEY%\006 /VE /D "Nero" /f
REG ADD %KEY%\006 /V 1 /D "%PP%install\Nero\Nero.exe /quiet /qn /norestart" /f

REG ADD %KEY%\007 /VE /D "Skype" /f
REG ADD %KEY%\007 /V 1 /D "%PP%install\SkypeSetup.exe /VERYSILENT /SP- /NORESTART" /f

REG ADD %KEY%\008 /VE /D "Windows Media Player 11" /f
REG ADD %KEY%\008 /V 1 /D "%PP%install\WMP11\wmp11.exe /q:A /c:\"setup_wm.exe /Q /R:N /DisallowSystemRestore\"" /f

REG ADD %KEY%\009 /VE /D "TweakUI Powertoy" /f
REG ADD %KEY%\009 /V 1 /D "%PP%install\power\tweak.msiUI /qb /noreboot" /f

REG ADD %KEY%\010 /VE /D "Symantec Clinet Security" /f
REG ADD %KEY%\010 /V 1 /D "%PP%install\Security\SCS\scs.msi /s /qn /noreboot" /f

REG ADD %KEY%\011 /VE /D "Symantec System Center" /f
REG ADD %KEY%\011 /V 1 /D "%PP%install\security\ssc\ssc.msi /S qn /noreboot" /f

REG ADD %KEY%\012 /VE /D "Register .torrent files to uTorrent" /f
REG ADD %KEY%\012 /V 1 /D "REGEDIT /S %systemdrive%\install\Torrent\TorrentReg.reg" /f

REG ADD %KEY%\013 /VE /D "uTorrent" /f
REG ADD %KEY%\013 /V 1 /D "%PP%install\Torrent\torrent.cmd /s" /f

REG ADD %KEY%\014 /VE /D "DVD Shrink" /f
REG ADD %KEY%\014 /V 1 /D "%PP%install\dvd.exe /VERYSILENT /noreboot" /f

REG ADD %KEY%\015 /VE /D "K-Lite Codec Pack" /f
REG ADD %KEY%\015 /V 1 /D "%PP%install\klite.exe /s /noreboot" /f

REG ADD %KEY%\016 /VE /D "Sun Java VM" /f
REG ADD %KEY%\016 /V 1 /D "%PP%install\sun.exe /s /noreboot /v"/qn ADDLOCAL=jrecore IEXPLORER=1"" /f

REG ADD %KEY%\017 /VE /D "Limewire" /f
REG ADD %KEY%\017 /V 1 /D "%PP%install\lime.exe /s /noreboot" /f

REG ADD %KEY%\018 /VE /D "VLC" /f
REG ADD %KEY%\018 /V 1 /D "%PP%install\vlc.exe /s" /f

REG ADD %KEY%\019 /VE /D "Adobe Flash Player Plugin" /f
REG ADD %KEY%\019 /V 1 /D "%PP%install\flash.exe /s" /f

REG ADD %KEY%\020 /VE /D "Memory Card Drivers" /f
REG ADD %KEY%\020 /V 1 /D "%PP%install\Mem\SilentInstall.bat" /f

REG ADD %KEY%\021 /VE /D "WinRAR 3.71" /f
REG ADD %KEY%\021 /V 1 /D "%PP%install\WinRAR.exe /s /noreboot" /f

REG ADD %KEY%\022 /VE /D "Disable ANNOYING f***ING BEEP" /f
REG ADD %KEY%\022 /V 1 /D "REGEDIT /S %systemdrive%\install\nobeep.reg" /f

REG ADD %KEY%\023 /VE /D "Cleaning Up and Rebooting" /f
REG ADD %KEY%\023 /V 1 /D "%PP%install\cleanup.cmd" /f

EXIT

i've changed it around since the last install. so i'll post back with an update to see if it worked.

Link to comment
Share on other sites

ok i'm in the middle of installing it right now and so far so good. it's still doing the installing xp stage. i'll post after work about what happens at the GUI stage.

btw here's my code. and thanks so much for your help JBM

@Echo Off

FOR %%i IN (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:\win51ip.SP2 SET CDROM=%%i:

SET PP=%cdrom%\$OEM$\$1\

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

REG ADD %KEY% /V TITLE /D "Installing Applications" /f

REG ADD %KEY%\000 /VE /D "DirectX 9.0" /f
REG ADD %KEY%\000 /V 1 /D "%PP%install\dx.exe /Q" /f

REG ADD %KEY%\001 /VE /D "Firefox" /f
REG ADD %KEY%\001 /V 1 /D "%PP%install\fox.exe /s" /f

REG ADD %KEY%\002 /VE /D "Quicktime 7.0" /f
REG ADD %KEY%\002 /V 1 /D "%PP%install\QuickTimeInstaller.exe /S /V/qn" /f

REG ADD %KEY%\003 /VE /D "Adobe Reader 8" /f
REG ADD %KEY%\003 /V 1 /D "%PP%install\Ad8\AcroRead.msi /qn /norestart" /f

REG ADD %KEY%\004 /VE /D "Adding Nero's License" /f
REG ADD %KEY%\004 /V 1 /D "REGEDIT /S %systemdrive%\install\Nero\register.reg" /f

REG ADD %KEY%\005 /VE /D "Nero" /f
REG ADD %KEY%\005 /V 1 /D "%PP%install\Nero\Nero.exe /quiet /qn /norestart" /f

REG ADD %KEY%\006 /VE /D "Skype" /f
REG ADD %KEY%\006 /V 1 /D "%PP%install\SkypeSetup.exe /VERYSILENT /SP- /NORESTART" /f

REG ADD %KEY%\007 /VE /D "Windows Media Player 11" /f
REG ADD %KEY%\007 /V 1 /D "%PP%install\WMP11\wmp11.exe /q:A /c:\"setup_wm.exe /Q /R:N /DisallowSystemRestore\"" /f

REG ADD %KEY%\008 /VE /D "TweakUI Powertoy" /f
REG ADD %KEY%\008 /V 1 /D "%PP%install\power\tweak.msiUI /qb /noreboot" /f

REG ADD %KEY%\009 /VE /D "Symantec System Center" /f
REG ADD %KEY%\009 /V 1 /D "%PP%install\security\ssc\ssc.msi /S qn /noreboot" /f

REG ADD %KEY%\010 /VE /D "Symantec Clinet Security" /f
REG ADD %KEY%\010 /V 1 /D "%PP%install\Security\SCS\scs.msi /s /qn /noreboot" /f

REG ADD %KEY%\011 /VE /D "Register .torrent files to uTorrent" /f
REG ADD %KEY%\011 /V 1 /D "REGEDIT /S %systemdrive%\install\Torrent\TorrentReg.reg" /f

REG ADD %KEY%\012 /VE /D "uTorrent" /f
REG ADD %KEY%\012 /V 1 /D "%PP%install\Torrent\torrent.cmd /s" /f

REG ADD %KEY%\013 /VE /D "DVD Shrink" /f
REG ADD %KEY%\013 /V 1 /D "%PP%install\dvd.exe /VERYSILENT /noreboot" /f

REG ADD %KEY%\014 /VE /D "Codec Pack" /f
REG ADD %KEY%\014 /V 1 /D "%PP%install\codec.exe /s /noreboot" /f

REG ADD %KEY%\015 /VE /D "Sun Java VM" /f
REG ADD %KEY%\015 /V 1 /D "%PP%install\sun.exe /s /noreboot /v"/qn ADDLOCAL=jrecore IEXPLORER=1"" /f

REG ADD %KEY%\016 /VE /D "Limewire" /f
REG ADD %KEY%\016 /V 1 /D "%PP%install\lime.exe /s /noreboot" /f

REG ADD %KEY%\017 /VE /D "VLC" /f
REG ADD %KEY%\017 /V 1 /D "%PP%install\vlc.exe /s" /f

REG ADD %KEY%\018 /VE /D "Adobe Flash Player Plugin" /f
REG ADD %KEY%\018 /V 1 /D "%PP%install\flash.exe /s" /f

REG ADD %KEY%\019 /VE /D "Memory Card Drivers" /f
REG ADD %KEY%\019 /V 1 /D "%PP%install\Mem\SilentInstall.bat" /f

REG ADD %KEY%\020 /VE /D "WinRAR 3.71" /f
REG ADD %KEY%\020 /V 1 /D "%PP%install\WinRAR.exe /s /noreboot" /f

REG ADD %KEY%\021 /VE /D "Disable ANNOYING f***ING BEEP" /f
REG ADD %KEY%\021 /V 1 /D "REGEDIT /S %systemdrive%\install\nobeep.reg" /f

REG ADD %KEY%\022 /VE /D "Editing Registery Files" /f
REG ADD %KEY%\022 /V 1 /D "REGEDIT /S %systemdrive%\install\tweak.reg" /f

REG ADD %KEY%\023 /VE /D "Cleaning Up and Rebooting" /f
REG ADD %KEY%\023 /V 1 /D "%PP%install\cleanup.cmd" /f

EXIT

;SetupMgrTag
[UserData]
ProductKey=Wouldnt-u-like-to-know
FullName="*****"
OrgName="*******"
ComputerName=*****

[Data]
MSDosInitiated="0"
UnattendedInstall="Yes"
AutoPartition=0

[Unattended]
UnattendMode=FullUnattended
OemSkipEula=Yes
OemPreinstall=Yes
TargetPath="\WIN"
UnattendSwitch="yes"
DriverSigningPolicy=Ignore

[GuiUnattended]
AdminPassword=encrypted
EncryptedAdminPassword=Yes
OEMSkipRegional=1
TimeZone=230
OemSkipWelcome=1
AutoAdminLogon=1

[Display]
BitsPerPel=32
Xresolution=1920
YResolution=1200
Vrefresh=60
AutoConfirm=1

[Identification]
JoinWorkgroup=BSOX

[Networking]
InstallDefaultComponents=Yes

[WindowsFirewall]
Profiles = WindowsFirewall.TurnOffFirewall

[WindowsFirewall.TurnOffFirewall]
Mode = 0

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

Link to comment
Share on other sites

ok well the install went through. however, my runonceex.cmd did not run. how do you make it run once you get into the GUI update?

The only thing I can think of right now is your runonceex.cmd is not in the root of the $OEM$

directory. The same place as cmdlines.txt. If it's not you have to specify the path to it.

Or you've misspelled the name of the command file.

Link to comment
Share on other sites

yeah i just caught that as i was going through my code. so i had to end up editing my cmdlines.txt also. i have it add my user account. so my cmdlines.txt is as follows

[COMMANDS]
"useraccounts.cmd"
"RunOnceEx.cmd"

i'm running the install right now.

Link to comment
Share on other sites

ok the install went through and the installs went through. i have to fine tune the silent arguments for them though. oh. the resolution didn't change to the 1900x1200. it should be enabled cause of my drivers being installed. but its only like 800x600 i think. i'll find out what exactly. but why didn't it change?


;SetupMgrTag
[UserData]
ProductKey=*******
FullName="******"
OrgName="******"
ComputerName=*******

[Data]
MSDosInitiated="0"
UnattendedInstall="Yes"
AutoPartition=0

[Unattended]
UnattendMode=FullUnattended
OemSkipEula=Yes
OemPreinstall=Yes
TargetPath="\WIN"
UnattendSwitch="yes"
DriverSigningPolicy=Ignore

[GuiUnattended]
AdminPassword=******
EncryptedAdminPassword=Yes
OEMSkipRegional=1
TimeZone=230
OemSkipWelcome=1
AutoAdminLogon=1

[Display]
BitsPerPel=32
Xresolution=1920
YResolution=1200
Vrefresh=60
AutoConfirm=1

[Identification]
JoinWorkgroup=BSOX

[Networking]
InstallDefaultComponents=Yes

[WindowsFirewall]
Profiles = WindowsFirewall.TurnOffFirewall

[WindowsFirewall.TurnOffFirewall]
Mode = 0

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

Edited by Preferiti
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...