/build/static/layout/Breadcrumb_cap_w.png

Windows 7 Post install tasks

Hi,

I have a problem with my post install tasks not running.

I sysprep a W7 enterprise VM with the following command

C:\windows\system32\sysprep\sysprep.exe /unattend:C:\Windows\System32\Sysprep\unattend.xml /oobe /generalize /shutdown

then capture the image

Deploy it out and create some post-installation tasks, after I exit the boot environment. Tried it with a single task just to install drivers with the KACE "Drivers - Install feed to workstation" task.

Doesn't seem to run, I'm left with the c:\KACE directory, with the drivers there and a post_install batch file that as far as i can see should create a set of registry entries to perform tasks.

reg load HKLM\TEMP_SOFTWARE C:\windows\system32\config\software
reg add %KEY% /V 001 /T REG_EXPAND_SZ /D "cmd /c \"%%systemdrive%%\KACE\bin\cmdhide.exe hide ^&^& cd %%systemdrive%%\KACE\Applications\19 ^&^& install_drivers.exe\"" /F

As far as I can see these keys aren't created, when I try and do it manually I get a locked message.

suggestions ?

0 Comments   [ + ] Show comments

Answers (3)

Posted by: asjohnstone 13 years ago
Senior Yellow Belt
0
I don't have a windows\setup\scripts folder btw
Posted by: asjohnstone 13 years ago
Senior Yellow Belt
0
You're right about the sysprep.

On further investigation I have a post_install batch file that checks for sysprep and should populate the installcmd.bat file (if it isn't sysprep'd it should generate the reg keys).

The post_install.bat doesn't seem to run or at the very least it fails. I need to do another one and then I'll post the contents of the installcmd.bat file.
Posted by: asjohnstone 13 years ago
Senior Yellow Belt
0
Ok, so i have the installcmd.bat file.

It has three entries, first one is driver install. That works.

Second one is the new rename and joined domain command, this doesn't. i'm assuming that the system reboots after the driver install and it never gets to finish the command?

so, assuming I'm dumb (I'm not really) how do I go about making this batch file finish post reboot for the driver install ?

I'm guessing I need to write some kind of custom post install task to write a reg key ?
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

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