Jump to content

Recommended Posts

Posted

I've given up on trying to run sysprep during the unattended install but I have another small problem.

My unattended install works fine, everything's working great BUT when I eventually run sysprep (on it's own after windows update or whenever) I have a loop of the unattended install programs running and installing again.

Is there a way to stop this from happening? Is it in the runonce area of the registry? If so, how to I delete that key and add it back?

Thanks

Cayce


Posted

My runonceex.cmd code is as follows:

cmdow @ /HID
@echo off
IF EXIST D:\CD.txt set CDROM=D:
IF EXIST E:\CD.txt set CDROM=E:
IF EXIST F:\CD.txt set CDROM=F:
IF EXIST G:\CD.txt set CDROM=G:
IF EXIST H:\CD.txt set CDROM=H:
IF EXIST I:\CD.txt set CDROM=I:
IF EXIST J:\CD.txt set CDROM=J:


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

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

REG ADD %KEY%\053 /VE /D ".NET Framework 1.1" /f
REG ADD %KEY%\053 /V 1 /D "%CDROM%\Software\NetFramework\netfxsp1.exe" /f

REG ADD %KEY%\030 /VE /D "Windows Media Player 10" /f
REG ADD %KEY%\030 /V 1 /D "%CDROM%\Software\WMP10\MP10Setup.exe /q:A /c:\"setup_wm.exe /Q /R:N /DisallowSystemRestore\"" /f

REG ADD %KEY%\085 /VE /D "Cleaning Up and Rebooting" /f
REG ADD %KEY%\085 /V 1 /D "%CDROM%\Software\cleanup.cmd" /f
EXIT

And my cleanup.cmd is:

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

EXIT

Thanks

Posted

I don't have an unattended.txt file (should I?) but here are the others:

cmdlines.txt:

[COMMANDS]
"RunOnceEx.cmd"

And sysprep.inf: (I'm unsure if this is right)

;SetupMgrTag
[Unattended]
   InstallFilesPath=C:\sysprep\i386

[GuiUnattended]
   EncryptedAdminPassword=NO
   OEMSkipRegional=1
   TimeZone=35

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

[TapiLocation]
   CountryCode=107
   AreaCode=905

[SetupMgr]
   DistFolder=C:\sysprep\i386
   DistShare=windist

[Identification]
   JoinWorkgroup=WORKGROUP

[Networking]
   InstallDefaultComponents=Yes

Posted

D'oh, sorry about that:

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

[Unattended]
   UnattendMode=FullUnattended
   OemPreinstall=Yes
   UnattendSwitch="yes"
   OemSkipEula=Yes
   OemPreinstall=No
   Repartition=YES
   FileSystem=*
   TargetPath=\WINDOWS

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

[UserData]
   ProductKey=xxxxx-xxxxx-xxxxx-xxxxx-xxxxx
   FullName="User"
   OrgName=""
   ComputerName=*

[TapiLocation]
   CountryCode=107

[RegionalSettings]
   LanguageGroup=1
   SystemLocale=00001009
   UserLocale=00001009
   InputLocale=1009:00000409

[Identification]
   JoinWorkgroup=WORKGROUP

[Networking]
   InstallDefaultComponents=Yes

[Data]
AutoPartition=0

Posted

The only thing that jumps out at me is your sysprep.inf calls your cmdlines.txt rather than you winnt.sif

[Unattended]
  InstallFilesPath=C:\sysprep\i386

maybe move it to your winnt.sif

R

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