/build/static/layout/Breadcrumb_cap_w.png

SOLVED: K2000 Sysprepped Image Deployment Post Installation Task Problems

I am trying to use the K2000 to deploy Windows XP with all the updates included.  I am able to deploy the images just fine by themselves, but when I start to add Postinstallation Tasks I start to get strange behavior.  I have searched through the posts and made sure that I don't have any guirunonce entries as well as not having a Windows\Setup\Scripts directory.  No matter which apps I include post-installation tasks I seem to choose, it only gets to the first 2 or 3.  It appears to do any combination of 2 or 3 so it doesn't seem as if one package is killing the tasks, and I'm calling for no reboots.

Relevant (maybe?) info:

I am using sysprep -reseal -quiet -activate -mini -shutdown when I prepare the image for uploading to the K2000.

My sysprep.inf file with my personal info removed:

 

;SetupMgrTag

[Unattended]

    OemSkipEula=Yes

    InstallFilesPath=C:\sysprep\i386

 

[GuiUnattended]

    AdminPassword=" (removed) "

    EncryptedAdminPassword=NO

    AutoLogon=Yes

    AutoLogonCount=3

    OEMSkipRegional=1

    TimeZone=020

    OemSkipWelcome=1

 

[UserData]

    ProductKey=(removed)

    FullName=" (removed) "

    OrgName=" (removed) "

    ComputerName=*

 

[SetupMgr]

    DistFolder=C:\sysprep\i386

    DistShare=windist

 

[Identification]

JoinWorkgroup =  WORKGROUP

;JoinDomain = Domain

;DomainAdmin = Domain\administrator

;DomainAdminPassword = password

;MachineObjectOU="" 

 

[Networking]

    InstallDefaultComponents=Yes

 

[Components]

    accessopt = "off"

    chat = "off"

    deskpaper = "off"

    freecell = "off"

    hearts = "off"

    media_clips = "off"

    media_utopia = "off"

    minesweeper = "off"

    msmsgs = "off"

    msnexplr = "off"

    OEaccess = "Off"

    pinball = "off"

    solitaire = "off"

    spider = "off"

    templates = "off"

    zonegames = "off"

 

[WindowsFirewall]

    Profiles = "WindowsFirewall.TurnOffFirewall"

 

[WindowsFirewall.TurnOffFirewall]

    Mode = "0"

 

And again, no C:\Windows\Setup\Scripts or whatever that directory might be (exact path eludes me at the moment) and no guirunonce in the .inf..

It appears that my first 2-3 apps are installing no matter what apps those might be, but I get no progress indicator like on the scripted installs.

 

Thank you for your time,

Andrew


0 Comments   [ + ] Show comments

Answers (2)

Answer Summary:
My custom .bat scripts were not being executed using the call command, so they were breaking the installcmds.bat script that is ran after the image is applied. Much thanks to dugullett. via dugullett: Take out all of your .bat files out of your post installs and see how far it gets. I'm not sure if you are creating them using "Add New BAT Script...", or if you are importing them. I seem to remember having trouble with them running if I imported them as an app. You could try calling them? This should work if you add the "call" command for your .bat files.
Posted by: dugullett 11 years ago
Red Belt
3

I've had this be a problem before and it turned out I had a typo in one of my post installs. I would login to the machine after the failure and navigate to C:\kace\installcmds.bat (sorry I don't have a machine in front of me, this should be close to the path). See if you can run this manually. If not remove the line after your last working app. See if this will continue. 


Comments:
  • Can you list your post installs by any chance? - dugullett 11 years ago
  • C:\KACE\bin\cmdhide.exe hide && cd C:\KACE\Applications\27 && "7z920.exe" /S
    C:\KACE\bin\cmdhide.exe hide && cd C:\KACE\Applications\26 && installcpdf.bat
    C:\KACE\bin\cmdhide.exe hide && cd C:\KACE\Applications\53 && msiexec /i "mysql-connector-net-6.4.3.msi" /qn
    C:\KACE\bin\cmdhide.exe hide && cd C:\KACE\Applications\50 && msiexec /i "mysql-connector-odbc-3.51.27-win32.msi" /qn
    C:\KACE\bin\cmdhide.exe hide && cd C:\KACE\Applications\48 && placeoracle.bat
    C:\KACE\bin\cmdhide.exe hide && cd C:\KACE\Applications\29 && txpeng473 /s /v"/qn"
    C:\KACE\bin\cmdhide.exe hide && cd C:\KACE\Applications\52 && shortcuts.bat
    C:\KACE\bin\cmdhide.exe hide && cd C:\KACE\Applications\28 && msiexec /i EnterpriseFoxitReader514.1124_enu.msi /quiet /norestart
    C:\KACE\bin\cmdhide.exe hide && cd C:\ && rd /s /q C:\KACE && C:\kcleanup.exe && del /f /q C:\kcleanup.exe - ais4ocho 11 years ago
    • This should work if you add the "call" command for your .bat files. - dugullett 11 years ago
      • Should I always prepend call when using custom .bat scripts for application installation? Such as in scripted installs or deployment through the K1000? Or would this be specific to calling a .bat from another .bat? - ais4ocho 11 years ago
  • That was my installcmds.bat from my most recent attempt.. That one ended after installcpdf.bat (a bat file that installs ghostcript and cutepdf silently).. the .NET connector and ODBC connecter both failed and if I reverse the order of those top four (both connectors first and then 7zip and installcpdf.bat) the connectors will install and then anything after those won't....unless I've just been careless and the installs are always ending on my custom .bat scripts.. I will run another test now and bump the connectors above the cutepdf bat and see if it makes it through cutepdf. - ais4ocho 11 years ago
  • Take out all of your .bat files out of your post installs and see how far it gets. I'm not sure if you are creating them using "Add New BAT Script...", or if you are importing them. I seem to remember having trouble with them running if I imported them as an app. You could try calling them? - dugullett 11 years ago
    • It's definitely the .bat scripts killing the process, trying your fix using call now. - ais4ocho 11 years ago
  • I believe you're on to something here, I've been scrambling the order but never just removed the .bat files.. I have no idea why those didn't stick out to me as the areas that could be killing it until you said something, ha. Thanks for the input, I'll update you as soon as this next attempt is deployed. - ais4ocho 11 years ago
Posted by: philologist 11 years ago
Red Belt
0

The image will not give you a progress indicator.

You should be able to log in while your post install tasks are running.  This may help you to see whether something is rebooting the machine.  If you have been rotating your scripts and it is always only completing two or three, you may find that something else has the machine rebooting after a certain amount of time, and what completes is just based on how much finishes in that time frame.

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ