arjanv Posted April 19, 2004 Share Posted April 19, 2004 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 More sharing options...
[BM]Crusher Posted April 19, 2004 Share Posted April 19, 2004 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? Link to comment Share on other sites More sharing options...
arjanv Posted April 19, 2004 Author Share Posted April 19, 2004 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.5ECHO Even wachten...start /wait \\ghost_server\d\install\Applications\jviewer\JViewer.msi /qnECHO.ECHO Applying Windows updates...start /wait \\ghost_server\d\install\hotfixes.cmdECHO.ECHO Applying Registry Tweaks...REGEDIT /S \\ghost_server\d\install\RegTweaks.regECHO.ECHO software kiezer...start /wait \\ghost_server\d\install\install.exeECHO.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%\DriversRD /S /Q %systemdrive%\installEXIT*** Hotfixes.cmd ***ECHO.ECHO Bezig met installeren van vbs56nnlECHO Even wachten...start /wait \\ghost_server\D\install\Updates\vbs56nnl.exe /Q:A /R:NECHO.ECHO Bezig met installeren van wm9codecsECHO Even wachten...start /wait \\ghost_server\D\install\Updates\wm9codecs.exe /Q:A /R:Nstart /wait \\ghost_server\D\install\Updates\qchain.exeEXITthese 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 = FullUnattendedOemPreinstall = YesTargetPath = *DriverSigningPolicy=IgnoreFilesystem = LeaveAloneOemSkipEula = YESFactoryMode = YESOemPnPdriversPath="Drivers\Net"[userData]FullName = "Uw gebruikersnaam"OrgName = "Uw bedrijfsnaam"ComputerName = *ProductKey=bla-bla[GuiUnattended]TimeZone = "110"AdminPassword = *AutoLogon = YesOEMSkipRegional = 1OEMSkipWelcome = 1[LicenseFilePrintData]AutoMode = "PerServer"AutoUsers = "5"[Display]BitsPerPel = 32XResolution = 1024YResolution = 768VRefresh = 70[branding]BrandIEUsingUnattended = NoIEBrandingFile = install.ins[Networking][GuiRunOnce] ; command to install PROSetII - uncomment to install PROSetII after push installCommand2="c:\drivers\net\Proset.msi /qn"Command2="\\ghost_server\d\install\start.cmd"[identification]JoinWorkgroup = Werkgroup[shell]CustomDefaultThemeFile = "%WINDIR%\System32\case.Theme"DefaultStartPanelOff = NoDefaultThemesOff = NoDoDesktopCleanup = YesDelayCleanUp = YesWhat else do you need to examine my problem?thanks for your fast reply. Link to comment Share on other sites More sharing options...
sambrus Posted April 19, 2004 Share Posted April 19, 2004 You better remove your product key! Link to comment Share on other sites More sharing options...
arjanv Posted April 19, 2004 Author Share Posted April 19, 2004 You better remove your product key!ehhh, oops. Link to comment Share on other sites More sharing options...
Nielson Posted April 19, 2004 Share Posted April 19, 2004 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 installCommand2="c:\drivers\net\Proset.msi /qn"Command2="\\ghost_server\d\install\start.cmd" Link to comment Share on other sites More sharing options...
Burger Posted April 19, 2004 Share Posted April 19, 2004 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 More sharing options...
ME2U Posted April 19, 2004 Share Posted April 19, 2004 Why don't you delete the start.cmd and hotfixes.cmd batch files, maybe on a cleanup batch command so when you reseal, it has no batch file to run when restarted. Link to comment Share on other sites More sharing options...
arjanv Posted April 20, 2004 Author Share Posted April 20, 2004 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 installCommand2="c:\drivers\net\Proset.msi /qn"Command2="\\ghost_server\d\install\start.cmd"[GuiRunOnce]; command to install PROSetII - uncomment to install PROSetII after push installCommand2="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 More sharing options...
[BM]Crusher Posted April 20, 2004 Share Posted April 20, 2004 [GuiRunOnce]; command to install PROSetII - uncomment to install PROSetII after push installCommand2="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 More sharing options...
arjanv Posted April 20, 2004 Author Share Posted April 20, 2004 Crusher,Apr 20 2004, 02:35 AM] [GuiRunOnce]; command to install PROSetII - uncomment to install PROSetII after push installCommand2="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 runok, thankswhat commands are needed in cleanup.cmd? Link to comment Share on other sites More sharing options...
[BM]Crusher Posted April 20, 2004 Share Posted April 20, 2004 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 %0normally 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 More sharing options...
arjanv Posted April 21, 2004 Author Share Posted April 21, 2004 Hi,Is it possible to disable the GuiRunOnce after all applications and update are installed?does anyone know how?Thanks Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now