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 ?
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)
Please log in to answer
Posted by:
asjohnstone
13 years ago
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.
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
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 ?
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.
so that the conversation will remain readable.