Jump to content

Unattended Woes


Recommended Posts

Ok I've been reading the webpages over on the normal site concerning methods for creating an unattended install and I'm glad to say everything goes smoothly until I reach the section where RunOnce is executed on the first startup. The task window comes up fine displaying all the tasks, except every task that I have listed can't be found by the virtual machine. I've tried placing the files on the hard drive as well, via the '$OEM$\$1\install\' route on the image. When I tried this method with the '%systemdrive%\apps' header on each of the lines in RunOnce, the files were copied to C:\apps but windows still didn't see them. I've also tried to get them to read from the iso image. As you can see currently I'm trying from the image, with no luck. What's wrong? is this a problem with the virtual machine program (VMware btw) or is there something up with my code? Attached is a picture of the error. Much thanks to any help rendered! :thumbup

cmdlines.txt

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

RunOnceEx.cmd

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:\CD.txt SET CDROM=%%i:

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

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

REG ADD %KEY%\005 /VE /D "Microsoft Office 2003" /f
REG ADD %KEY%\005 /V 1 /D "%CDROM%\apps\Office2003\setup.exe TRANSFORMS=Unattended.MST /qb REBOOT=Suppress" /f

REG ADD %KEY%\010 /VE /D "Microsoft FrontPage 2003" /f
REG ADD %KEY%\010 /V 1 /D "%CDROM%\apps\FrontPage2003\setup.exe TRANSFORMS=Unattended.MST /qb REBOOT=Suppress" /f

REG ADD %KEY%\015 /VE /D "Norton SystemWorks 2004" /f
REG ADD %KEY%\015 /V 1 /D "%CDROM%\apps\NSW2004\NSWSETUP.exe /qb /Reboot=Suppress" /f

REG ADD %KEY%\020 /VE /D "Real Player Alternative" /f
REG ADD %KEY%\020 /V 1 /D "%CDROM%\apps\realalt141.exe /VERYSILENT /SP-" /f

REG ADD %KEY%\025 /VE /D "K-Lite Codec Pack 2.27" /f
REG ADD %KEY%\025 /V 1 /D "%CDROM%\apps\K-LiteCodecPack\klcodec227f.exe /verysilent /loadinf=".\silent.inf"" /f

REG ADD %KEY%\030 /VE /D "Daemon Virtual Drive" /f
REG ADD %KEY%\030 /V 1 /D "%CDROM%\apps\Daemon\daemon.msi /qb /Reboot=Suppress" /f
REG ADD %KEY%\030 /V 2 /D "taskkill /F /IM daemon.exe" /f

REG ADD %KEY%\035 /VE /D "Mozilla Firefox 1.0.6" /f
REG ADD %KEY%\035 /V 1 /D "%CDROM%\apps\Firefox1.0.6Silent.exe" /f

REG ADD %KEY%\040 /VE /D "Adobe Photoshop CS" /f
REG ADD %KEY%\040 /V 1 /D "%CDROM%\apps\PhotoshopCS\setup.exe -s -f2"%systemdrive%\ps.log"" /f

:: REG ADD %KEY%\040 /VE /D "MSN Messenger 6.1" /f
:: REG ADD %KEY%\040 /V 1 /D "%CDROM%\install\MSN_Messenger_6.1.0202.msi /qn" /f

:: REG ADD %KEY%\045 /VE /D "Nero Burning ROM 5.5" /f
:: REG ADD %KEY%\045 /V 1 /D "REGEDIT /S %systemdrive%\install\nero\register.reg" /f
:: REG ADD %KEY%\045 /V 2 /D "%CDROM%\install\Nero\Nero551054.exe /silent /noreboot" /f

:: REG ADD %KEY%\050 /VE /D "Importing Registry Tweaks" /f
:: REG ADD %KEY%\050 /V 1 /D "REGEDIT /S %CDROM%\install\regtweaks.reg" /f

REG ADD %KEY%\045 /VE /D "Cleaning Up and Rebooting" /f
REG ADD %KEY%\045 /V 1 /D "%CDROM%\$OEM$\cleanup.cmd" /f

EXIT

Cleanup.cmd

cmdow @ /HID
shutdown.exe -r -f -t 60 -c "Windows XP will now restart in 1 minute..."
net user aspnet /delete

DEL "%AllUsersProfile%\Start Menu\Windows Update.lnk"
DEL "%AllUsersProfile%\Start Menu\Set Program Access and Defaults.lnk"
DEL "%AllUsersProfile%\Start Menu\Windows Catalog.lnk"

:: RD /S /Q %systemdrive%\drivers\
:: RD /S /Q %systemdrive%\D\
:: RD /S /Q %systemdrive%\apps\

EXIT

winnt.sif

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

[Unattended]
OemPreinstall = "Yes"
   FileSystem=*
   UnattendMode=FullUnattended
   OemSkipEula=Yes
   DUDisable = No
   Hibernation = Yes
   AutoActivate = Yes
   Repartition = No
   TargetPath=\WINDOWS
   
   UnattendSwitch = Yes
   OEMPnPDriversPath = "drivers\RAID\PIDE;drivers\RAID\SATA;drivers\RAID\IDE;drivers\USB2;drivers\LAN\Marvel;drivers\Audio"
   WaitForReboot = No

[GuiUnattended]
   AdminPassword=xxx
   EncryptedAdminPassword=NO
   OEMSkipRegional=1
   TimeZone=35
   OemSkipWelcome=1

[UserData]
   ProductKey=xxx
   FullName=xxx
   OrgName=xxx
   ComputerName=Seawolf

[Display]
   BitsPerPel=32
   Xresolution=1280
   YResolution=1024
   Vrefresh=75
   AutoComfirm=1

[Identification]
   JoinWorkgroup=

[Networking]
   InstallDefaultComponents=No

[NetAdapters]
   Adapter1=params.Adapter1
   Adapter2=params.Adapter1
   Adapter3=params.Adapter1

[params.Adapter1]
   INFID=*

[NetClients]
   MS_MSClient=params.MS_MSClient

[NetServices]
   MS_SERVER=params.MS_SERVER

[NetProtocols]
   MS_AppleTalk=params.MS_AppleTalk
   MS_TCPIP=params.MS_TCPIP
   MS_NWIPX=params.MS_NWIPX

[params.MS_TCPIP]
   DNS=Yes
   UseDomainNameDevolution=No
   EnableLMHosts=Yes
   AdapterSections=params.MS_TCPIP.Adapter1

[params.MS_TCPIP.Adapter1]
   SpecificTo=Adapter1
   DHCP=Yes
   WINS=No
   NetBIOSOptions=0

[params.MS_NWIPX]
   VirtualNetworkNumber=00000000
   AdapterSections=params.MS_NWIPX.Adapter1

[params.MS_NWIPX.Adapter1]
   SpecificTo=Adapter1
   PktType=0xFF
   NetworkNumber=00000000

[URL]
   Home_Page=http://dsc.discovery.com/news/news.html

[WindowsFirewall]
   Profiles = WindowsFirewall.TurnOffFirewall

[WindowsFirewall.TurnOffFirewall]
   Mode = 0

[GUIRunOnce]
command9 = "%SystemDrive%\D\BTS_DPs_finish.cmd"

post-66077-1122423747_thumb.jpg

Edited by Solar257
Link to comment
Share on other sites


Hi,

I am just learning this but first thing i noticed with your CMD file was %CDROM% and was wondering if it should be %systemdrive% instead?

Your files were copied over to the souce drive?

Hope it works out

Jim

Link to comment
Share on other sites

that may be the problem, but i am guessing that you are installing from the CD?

i use "WIN51IP.SP2" when looking for the file, for some reason the CD.txt never worked for me (and also make sure that you remembered to create the CD.txt file as that may be the problem.

Link to comment
Share on other sites

I am just learning this but first thing i noticed with your CMD file was %CDROM% and was wondering if it should be %systemdrive% instead?
I tried using the system drive command but it didn't work, so now I tried to get it to read from the CD and I've had no luck as well
i use "WIN51IP.SP2" when looking for the file, for some reason the CD.txt never worked for me (and also make sure that you remembered to create the CD.txt file as that may be the problem.

Forgive my ignorance but what is the CD.txt file and where do I place it?

Edited by Solar257
Link to comment
Share on other sites

I notised you have named one of your files commands.txt, it is supposed to be named cmdlines.txt. But it seems to work anyway because it reads your RunOnceEX?

The CD.txt file is not needed, use some other file already present on the Windows cd.

The line:

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:\CD.txt SET CDROM=%%i:

is used for finding out which drive letter the cd has by checking if a specific file is present. Try replacing \CD.txt with for example \I386\PRODSPEC.INI.

Link to comment
Share on other sites

my mistake in typing the file in my post. The file on my unatteded cd is already named cmdlines.txt, just a typo in my post which I'll fix right now...

Currently I've edited RunOnce so all the files point to "C:\install\apps" hopefuly that will work, if it does I'll know I have one wway of getting this to work. I'll definitely edit my CD line so I can test that next.

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