Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Looping after unattended install

Featured Replies

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

  • Author

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

I dont see anything in your runonceex or your clean up cmd.

Can you post your sysprep.inf and your unattended.txt and cmdlines.txt?

R

  • Author

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

  • Author

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

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

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.