Jump to content

Windows XP preinstall problem.


Recommended Posts

Hi,

We are building pc's for our customers, we install the pc and the end user must fill in the windows serial key and their names.

I've made a pre-install of windows xp.

Windows update and software are automaticly installed.

When we are finished the installation then we click on "Reseal" button.

But when the end user boot up his new pc, the files start.cmd, hotfixes.cmd are running again.

This is the problem we don't want that, because we allready do this, these files are runing for the second time.

how to solve this?

Please help me.

Greetings, Arjan

Link to comment
Share on other sites


Crusher,Apr 19 2004, 08:10 AM] we need a little more detail, and some CODE copies of your files (how are you executing all of your programs and sysprep) did you use the msfn unattended xp guide? or another?

try something i learnt tonight, use MSOOBE instead of sysprep to add user accounts etc..., check this topic Does Sysprep Add Users?

first i've made a preinstall using microsoft opktool.

Then I use msfn unattended xp guide to add software and windows updates.

here some short samples of start and hotfixes.cmd

*** Start.cmd ***

ECHO.

ECHO Bezig met installeren van Microsoft Windows Journal Viewer 1.5

ECHO Even wachten...

start /wait \\ghost_server\d\install\Applications\jviewer\JViewer.msi /qn

ECHO.

ECHO Applying Windows updates...

start /wait \\ghost_server\d\install\hotfixes.cmd

ECHO.

ECHO Applying Registry Tweaks...

REGEDIT /S \\ghost_server\d\install\RegTweaks.reg

ECHO.

ECHO software kiezer...

start /wait \\ghost_server\d\install\install.exe

ECHO.

ECHO De computer wordt binnen 1 minuut opnieuw opgestart...

shutdown.exe -r -f -t 30 -c "Windows XP wordt nu na een halve minuut automatisch opnieuw opgestart."

ECHO.

ECHO Verwijderen Tijdelijke Installatie bestanden...

RD /S /Q %systemdrive%\Drivers

RD /S /Q %systemdrive%\install

EXIT

*** Hotfixes.cmd ***

ECHO.

ECHO Bezig met installeren van vbs56nnl

ECHO Even wachten...

start /wait \\ghost_server\D\install\Updates\vbs56nnl.exe /Q:A /R:N

ECHO.

ECHO Bezig met installeren van wm9codecs

ECHO Even wachten...

start /wait \\ghost_server\D\install\Updates\wm9codecs.exe /Q:A /R:N

start /wait \\ghost_server\D\install\Updates\qchain.exe

EXIT

these scripts are running while we pre install windows for our customer.

when our customer fill in the windows serial key and fill in his username, these script are running all over again.

*** This is my unattend.txt ***

;This is the default Unattended installation file

;Target Path should be new directory

;Adminpassword is blank.

[unattended]

Unattendmode = FullUnattended

OemPreinstall = Yes

TargetPath = *

DriverSigningPolicy=Ignore

Filesystem = LeaveAlone

OemSkipEula = YES

FactoryMode = YES

OemPnPdriversPath="Drivers\Net"

[userData]

FullName = "Uw gebruikersnaam"

OrgName = "Uw bedrijfsnaam"

ComputerName = *

ProductKey=bla-bla

[GuiUnattended]

TimeZone = "110"

AdminPassword = *

AutoLogon = Yes

OEMSkipRegional = 1

OEMSkipWelcome = 1

[LicenseFilePrintData]

AutoMode = "PerServer"

AutoUsers = "5"

[Display]

BitsPerPel = 32

XResolution = 1024

YResolution = 768

VRefresh = 70

[branding]

BrandIEUsingUnattended = No

IEBrandingFile = install.ins

[Networking]

[GuiRunOnce]

; command to install PROSetII - uncomment to install PROSetII after push install

Command2="c:\drivers\net\Proset.msi /qn"

Command2="\\ghost_server\d\install\start.cmd"

[identification]

JoinWorkgroup = Werkgroup

[shell]

CustomDefaultThemeFile = "%WINDIR%\System32\case.Theme"

DefaultStartPanelOff = No

DefaultThemesOff = No

DoDesktopCleanup = Yes

DelayCleanUp = Yes

What else do you need to examine my problem?

thanks for your fast reply.

Link to comment
Share on other sites

Hi Arjan,

Could you also post the contents of sysprep.inf (in C:\Sysprep) ?

Make sure it doesn't have this section, otherwise these commands will get re-added when you reseal your system.

[GuiRunOnce]

; command to install PROSetII - uncomment to install PROSetII after push install

Command2="c:\drivers\net\Proset.msi /qn"

Command2="\\ghost_server\d\install\start.cmd"

Link to comment
Share on other sites

Hi,

But when the end user boot up his new pc, the files start.cmd, hotfixes.cmd are running again.

This happens, because Windows restarts all of your GUIrunOnce Commands, after RESEAL.

I think the only way to solve this Problem is, to use cmdlines.txt to install the Hotfixes and Software. The Most Registry Tweaks should work also thru cmdlines.txt

But you couldn´t use the network shares to install Software during using the cmdlines.txt . Because there is no user loged in during this Point of installation, so you couldn´t get Access to any share.

I have made a Bootable CD / DVD which installs almost all Hotfixes and recommended Updates thru cmdlines.txt.

There is only one Hotfix that doesn´t work in my cmdlines.bat which is startet thru cmdlines.txt.

I install only this Hotfix and the Acrobat Reader thru a start.bat which is startet thru Guirunonce.

So i think, that this would be the only Batch that would be revoked after RESEAL.

Bye

Link to comment
Share on other sites

Hi Arjan,

Could you also post the contents of sysprep.inf (in C:\Sysprep) ?

Make sure it doesn't have this section, otherwise these commands will get re-added when you reseal your system.

[GuiRunOnce]

; command to install PROSetII - uncomment to install PROSetII after push install

Command2="c:\drivers\net\Proset.msi /qn"

Command2="\\ghost_server\d\install\start.cmd"

[GuiRunOnce]

; command to install PROSetII - uncomment to install PROSetII after push install

Command2="c:\drivers\net\Proset.msi /qn"

Command2="\\ghost_server\d\install\start.cmd"

how should I start this?

Link to comment
Share on other sites

[GuiRunOnce]

; command to install PROSetII - uncomment to install PROSetII after push install

Command2="c:\drivers\net\Proset.msi /qn"

Command2="\\ghost_server\d\install\start.cmd"

start it from winnt.sif, do not have the same entries in sysprep.inf otherwise it will re-run them from there too....

why are they both Command2? most people aren't really using GuiRunOnce anymore (rather, use cmdlines.txt), but I remember when I did use it my commands looked like this:

[GuiRunOnce]

"%systemdrive%\install\apps.cmd"

"%systemdrive%\install\cleanup.cmd"

make sure you use a cleanup command like ME2U said, because sysprep re-initialises the runonce commands when it is run

Link to comment
Share on other sites

Crusher,Apr 20 2004, 02:35 AM] [GuiRunOnce]

; command to install PROSetII - uncomment to install PROSetII after push install

Command2="c:\drivers\net\Proset.msi /qn"

Command2="\\ghost_server\d\install\start.cmd"

start it from winnt.sif, do not have the same entries in sysprep.inf otherwise it will re-run them from there too....

why are they both Command2? most people aren't really using GuiRunOnce anymore (rather, use cmdlines.txt), but I remember when I did use it my commands looked like this:

[GuiRunOnce]

"%systemdrive%\install\apps.cmd"

"%systemdrive%\install\cleanup.cmd"

make sure you use a cleanup command like ME2U said, because sysprep re-initialises the runonce commands when it is run

ok, thanks

what commands are needed in cleanup.cmd?

Link to comment
Share on other sites

something like this

@echo offTitle Cleaning up after Installationecho.if exist %systemdrive%\drivers rmdir /s /q %systemdrive%\driversif exist %systemdrive%\install rmdir /s /q %systemdrive%\installif not exist %systemdrive%\sysprep\sysprep.exe rmdir /s /q %systemdrive%\sysprepif exist %systemdrive%\something.cmd del /q %systemdrive%\something.cmddel %0

normally everything would be in drivers and install directories, but yours may be different... in my example, if the sysprep folder has files in it, they won't be deleted (only has the files if I have specified sysprep to run, if it isn't going to be run, the empty dir is deleted)

the "del %0" at the end, it deletes the actual cleanup.cmd file off the hard drive

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