Jump to content

Unattended Setup Problems at T-12


Recommended Posts

Hey Guys, I'm having a bit of trouble with my XP Unattended CD, so I figured I would tap the resources of the forum :)

I'm using RunOnceEx to run all my apps, but at the T-12 Mark, My computer just stops doing anything...

Another Problem, but less important is that I can not run a setup that uses the installshield without running my iTouch Drivers EXE which seems to "repair" it to some extent...

All the scripts execute, but I can not see a thing about what is going on in the VM

Here are the files I am using...

cmdlines.txt

[COMMANDS]
"useraccounts.cmd"
"RunOnceEx.cmd"
"REGEDIT /S mirc.reg"
"daemontools.cmd"

RunOnceEx.cmd

cmdow @ /HID
@echo off

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

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

REG ADD %KEY%\001 /VE /D "Changing Video Mode"
REG ADD %KEY%\001 /V 1 /D "1365vidchng.exe 1152x864x60 -q"

REG ADD %KEY%\002 /VE /D "iTouch Drivers"
REG ADD %KEY%\002 /V 1 /D "%systemdrive%\Install\Applications\iTouch\Disk1\setup.exe -s setup.iss"

REG ADD %KEY%\002 /VE /D "Audigy LS Drivers"
REG ADD %KEY%\002 /V 1 /D "%systemdrive%\Install\Applications\audapps.cmd" /f

REG ADD %KEY%\005 /VE /D "ABC Bittorrent client" /f
REG ADD %KEY%\005 /V 1 /D "%systemdrive%\Install\Applications\Bittorrent\Bittornado.exe /S"

REG ADD %KEY%\010 /VE /D "FlashFXP" /f
REG ADD %KEY%\010 /V 1 /D "%systemdrive%\Install\Applications\FlashFXP\FXP.exe" /f

REG ADD %KEY%\015 /VE /D "Gaim 1.0.2" /f
REG ADD %KEY%\015 /V 1 /D "%systemdrive%\install\Applications\Gaim\gaim-1.0.2.exe /S" /f

REG ADD %KEY%\020 /VE /D "Google Toolbar" /f
REG ADD %KEY%\020 /V 1 /D "\"%systemdrive%\Install\Applications\Google Toolbar\GoogleToolbarInstaller.exe\" /q /d" /f

REG ADD %KEY%\030 /VE /D "K-Lite Mega Codec Pack" /f
REG ADD %KEY%\030 /V 1 /D "%systemdrive%\Install\Applications\Megapack\klmcodec101.exe /silent" /f

REG ADD %KEY%\055 /VE /D "Messenger Plus!" /f
REG ADD %KEY%\055 /V 1 /D "\"%systemdrive%\Install\Applications\Messenger plus!\MsgPlus-325.exe\" /SilentInstallNoSponsor" /f
REG ADD %KEY%\055 /V 2 /D "taskkill /F /IM msnmsgr.exe >nul"
REG ADD %KEY%\055 /V 3 /D "taskkill /F /IM iexplore.exe >nul"

REG ADD %KEY%\040 /VE /D "MP3 Creation Pack" /f
REG ADD %KEY%\040 /V 1 /D "%systemdrive%\Install\Applications\MP3forXP\MP3forXP.msi /q" /f

REG ADD %KEY%\045 /VE /D "MS Java Virtual Machine" /f
REG ADD %KEY%\045 /V 1 /D "%systemdrive%\install\Applications\MSJavaVM\MSJavaVM_3810.exe" /f

REG ADD %KEY%\050 /VE /D "MSN Messenger 6.2" /f
REG ADD %KEY%\050 /V 1 /D "%systemdrive%\Install\Applications\MSN\MsnMsgs.msi /QB" /f

REG ADD %KEY%\060 /VE /D ".NET Framework + SP1" /f
REG ADD %KEY%\060 /V 1 /D "%systemdrive%\install\Applications\NetFramework\netfxsp1.exe" /f

REG ADD %KEY%\060 /VE /D "Windows XP Powertoys" /f
REG ADD %KEY%\060 /V 1 /D "%systemdrive%\Install\Applications\PowerToys\TweakUI.msi /qb" /f
REG ADD %KEY%\060 /V 2 /D "%systemdrive%\Install\Applications\PowerToys\CmdHerePowertoySetup.exe /s /v/qn" /f

REG ADD %KEY%\065 /VE /D "Shockwave Install" /f
REG ADD %KEY%\065 /V 1 /D "%systemdrive%\install\Applications\shockwave\Shockwave_Installer_Full.exe /s" /f

REG ADD %KEY%\070 /VE /D "Spybot 1.3" /f
REG ADD %KEY%\070 /V 1 /D "%systemdrive%\install\Applications\spybot\spybotsd13.exe /verysilent" /f

REG ADD %KEY%\071 /VE /D "TightVNC 1.3d5" /f
REG ADD %KEY%\071 /V 1 /D "%systemdrive%\Install\Applications\TightVNC\tightvnc-1.3dev5-setup.exe /silent" /f

REG ADD %KEY%\075 /VE /D "Xbox Controller Driver"
REG ADD %KEY%\075 /V 1 /D "%systemdrive%\Install\Applications\XBCD\XBCD.exe /S"

REG ADD %KEY%\080 /VE /D "Winamp 5.05" /f
REG ADD %KEY%\080 /V 1 /D "%systemdrive%\Install\Applications\Winamp\winamp505_pro.exe /S" /f
REG ADD %KEY%\080 /V 2 /D "taskkill /F /IM winampa.exe >nul" /f
REG ADD %KEY%\080 /V 3 /D "taskkill /F /IM winamp.exe >nul" /f
REG ADD %KEY%\080 /V 4 /D "REGEDIT /S %systemdrive%\Install\Applications\Winamp\Winampnostartup.reg" /f
REG ADD %KEY%\080 /V 4 /D "REGEDIT /S %systemdrive%\Install\Applications\Winamp\Winampreginfo.reg" /f

REG ADD %KEY%\085 /VE /D "WinRAR 3.40" /f
REG ADD %KEY%\085 /V 1 /D "%systemdrive%\Install\Applications\WinRAR\WinRAR340Corp.exe /s" /f

REG ADD %KEY%\090 /VE /D "Importing Registry Tweaks" /f
REG ADD %KEY%\090 /V 1 /D "REGEDIT /S %systemdrive%\Install\RegTweaks.reg" /f

REG ADD %KEY%\095 /VE /D "Cleaning Up and Rebooting" /f
REG ADD %KEY%\095 /V 1 /D "%systemdrive%\Install\cleanup.cmd" /f

daemontools.cmd (To avoid the Hardware Prompt it runs in cmdlines)

cmdow @ /HID
@Echo Off

START /wait %systemdrive%\install\Applications\Daemon-tools\daemon.msi /quiet /passive /qn /norestart REBOOT=ReallySuppress

EXIT

useraccounts.cmd

net user Dyne -------- /add
net localgroup Administrators Dyne /add
net accounts /maxpwage:unlimited
REGEDIT /S autologon.reg
REGEDIT /S info.reg
EXIT

Any help would be MUCH appriciated! :thumbup:

Link to comment
Share on other sites


there are things missing on soem of these such as the /f at the end. ALL lines must finish with this.

You are also using the same Key numbers eg. iTouch and Audigy using 002

Plus further down winamp uses the 4 twice.

in front of some of your %systemdrive% are backslashes they need to be removed too

cmdow @ /HID
@echo off

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

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

REG ADD %KEY%\001 /VE /D "Changing Video Mode"
REG ADD %KEY%\001 /V 1 /D "1365vidchng.exe 1152x864x60 -q"

REG ADD %KEY%\002 /VE /D "iTouch Drivers"
REG ADD %KEY%\002 /V 1 /D "%systemdrive%\Install\Applications\iTouch\Disk1\setup.exe -s setup.iss"

REG ADD %KEY%\002 /VE /D "Audigy LS Drivers"
REG ADD %KEY%\002 /V 1 /D "%systemdrive%\Install\Applications\audapps.cmd" /f

REG ADD %KEY%\005 /VE /D "ABC Bittorrent client" /f
REG ADD %KEY%\005 /V 1 /D "%systemdrive%\Install\Applications\Bittorrent\Bittornado.exe /S"

REG ADD %KEY%\010 /VE /D "FlashFXP" /f
REG ADD %KEY%\010 /V 1 /D "%systemdrive%\Install\Applications\FlashFXP\FXP.exe" /f

REG ADD %KEY%\015 /VE /D "Gaim 1.0.2" /f
REG ADD %KEY%\015 /V 1 /D "%systemdrive%\install\Applications\Gaim\gaim-1.0.2.exe /S" /f

REG ADD %KEY%\020 /VE /D "Google Toolbar" /f
REG ADD %KEY%\020 /V 1 /D "\"%systemdrive%\Install\Applications\Google Toolbar\GoogleToolbarInstaller.exe\" /q /d" /f

Link to comment
Share on other sites

I Was Bored , Hope This Works

cmdow @ /HID
@echo off

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

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

REG ADD %KEY%\001 /VE 1 /D "Changing Video Mode"
REG ADD %KEY%\001 /V 2 /D "1365vidchng.exe 1152x864x60 -q"

REG ADD %KEY%\003 /VE 1 /D "iTouch Drivers"
REG ADD %KEY%\003 /V 2 /D "%systemdrive%\Install\Applications\iTouch\Disk1\setup.exe -s setup.iss"

REG ADD %KEY%\005 /VE 1 /D "Audigy LS Drivers"
REG ADD %KEY%\005 /V 2 /D "%systemdrive%\Install\Applications\audapps.cmd" /f

REG ADD %KEY%\007 /VE 1 /D "ABC Bittorrent client" /f
REG ADD %KEY%\007 /V 2 /D "%systemdrive%\Install\Applications\Bittorrent\Bittornado.exe /S"

REG ADD %KEY%\009 /VE 1 /D "FlashFXP" /f
REG ADD %KEY%\009 /V 2 /D "%systemdrive%\Install\Applications\FlashFXP\FXP.exe" /f

REG ADD %KEY%\011 /VE 1 /D "Gaim 1.0.2" /f
REG ADD %KEY%\011 /V 2 /D "%systemdrive%\install\Applications\Gaim\gaim-1.0.2.exe /S" /f

REG ADD %KEY%\013 /VE 1 /D "Google Toolbar" /f
REG ADD %KEY%\013 /V 2 /D "\"%systemdrive%\Install\Applications\Google Toolbar\GoogleToolbarInstaller.exe\" /q /d" /f

REG ADD %KEY%\015 /VE 1 /D "K-Lite Mega Codec Pack" /f
REG ADD %KEY%\015 /V 2 /D "%systemdrive%\Install\Applications\Megapack\klmcodec101.exe /silent" /f

REG ADD %KEY%\017 /VE 1 /D "Messenger Plus!" /f
REG ADD %KEY%\017 /V 2 /D "\"%systemdrive%\Install\Applications\Messenger plus!\MsgPlus-325.exe\" /SilentInstallNoSponsor" /f
REG ADD %KEY%\017 /V 2 /D "taskkill /F /IM msnmsgr.exe >nul"
REG ADD %KEY%\017 /V 3 /D "taskkill /F /IM iexplore.exe >nul"

REG ADD %KEY%\019 /VE 1 /D "MP3 Creation Pack" /f
REG ADD %KEY%\019 /V 2 /D "%systemdrive%\Install\Applications\MP3forXP\MP3forXP.msi /q" /f

REG ADD %KEY%\021 /VE 1 /D "MS Java Virtual Machine" /f
REG ADD %KEY%\021 /V 2 /D "%systemdrive%\install\Applications\MSJavaVM\MSJavaVM_3810.exe" /f

REG ADD %KEY%\023 /VE 1 /D "MSN Messenger 6.2" /f
REG ADD %KEY%\023 /V 2 /D "%systemdrive%\Install\Applications\MSN\MsnMsgs.msi /QB" /f

REG ADD %KEY%\025 /VE 1 /D ".NET Framework + SP1" /f
REG ADD %KEY%\025 /V 2 /D "%systemdrive%\install\Applications\NetFramework\netfxsp1.exe" /f

REG ADD %KEY%\027 /V 2 /D "%systemdrive%\Install\Applications\PowerToys\TweakUI.msi /qb" /f
REG ADD %KEY%\027 /V 2 /D "%systemdrive%\Install\Applications\PowerToys\CmdHerePowertoySetup.exe /s /v/qn" /f

REG ADD %KEY%\029 /VE 1 /D "Shockwave Install" /f
REG ADD %KEY%\029 /V 2 /D "%systemdrive%\install\Applications\shockwave\Shockwave_Installer_Full.exe /s" /f

REG ADD %KEY%\031 /VE 1 /D "Spybot 1.3" /f
REG ADD %KEY%\031 /V 2 /D "%systemdrive%\install\Applications\spybot\spybotsd13.exe /verysilent" /f

REG ADD %KEY%\033 /VE 1 /D "TightVNC 1.3d5" /f
REG ADD %KEY%\033 /V 2 /D "%systemdrive%\Install\Applications\TightVNC\tightvnc-1.3dev5-setup.exe /silent" /f

REG ADD %KEY%\035 /VE 1 /D "Xbox Controller Driver"
REG ADD %KEY%\035 /V 2 /D "%systemdrive%\Install\Applications\XBCD\XBCD.exe /S"

REG ADD %KEY%\037 /VE 1 /D "Winamp 5.05" /f
REG ADD %KEY%\037 /V 2 /D "%systemdrive%\Install\Applications\Winamp\winamp505_pro.exe /S" /f

REG ADD %KEY%\039 /VE 1 /D "Winamp 5.05 Clean Up " /f
REG ADD %KEY%\039 /V 2 /D "taskkill /F /IM winampa.exe >nul" /f
REG ADD %KEY%\039 /V 3 /D "taskkill /F /IM winamp.exe >nul" /f
REG ADD %KEY%\039 /V 4 /D "REGEDIT /S %systemdrive%\Install\Applications\Winamp\Winampnostartup.reg" /f
REG ADD %KEY%\039 /V 4 /D "REGEDIT /S %systemdrive%\Install\Applications\Winamp\Winampreginfo.reg" /f

REG ADD %KEY%\041 /VE 1 /D "WinRAR 3.40" /f
REG ADD %KEY%\041 /V 2 /D "%systemdrive%\Install\Applications\WinRAR\WinRAR340Corp.exe /s" /f

REG ADD %KEY%\043 /VE 1 /D "Importing Registry Tweaks" /f
REG ADD %KEY%\043 /V 2 /D "REGEDIT /S %systemdrive%\Install\RegTweaks.reg" /f

REG ADD %KEY%\045 /VE 1 /D "Cleaning Up and Rebooting" /f
REG ADD %KEY%\045 /V 2 /D "%systemdrive%\Install\cleanup.cmd" /f

Link to comment
Share on other sites

net user Dyne -------- /add

If your password is longer than 14 characters, net user will prompt you with a warning. This may be stalling your installation at T-12; if your password is longer than 14 characters.

Dude,

You cant put a backslash in fron of %systemdrive%.

Test it by opening Start>Run and typing in both "\%systemdrive%" and "%systemdrive%"

You will get an error message when you use the one with the backslash.

The extra backslashes are necessary when you need quotation marks to be written as a part of the path. This is the case when the path includes spaces.

Link to comment
Share on other sites

Dude,

You cant put a backslash in fron of %systemdrive%.

Test it by opening Start>Run and typing in both  "\%systemdrive%" and "%systemdrive%"

You will get an error message when you use the one with the backslash.

dude, understand before saying they're wrong.

"\%systemdrive%" indeed does NOT work, HOWEVER

he has "\"%systemdrive the \" escapes the quote so that it is imported into the registry properly, because ""%systemdrive%\Program Files\setup" /qb" does NOT work.

if SmokingGun's thing doesn't work, remove the cmdow @ /hid at teh beginning and retest. You probally have a prompt somewhere waiting for a response (missing /f perhaps_)

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