mrjrt Posted January 26, 2014 Share Posted January 26, 2014 I want to do unspeakable things to my custom Windows install without changing the WIM, if possible. To that end, I want to wait until the initial "windowsPE" pass has completed, and only then run my commands. Unfortunately, if I specify RunSynchronous commands they seem to execute at the beginning of the pass, and there's no way to specify I want them at the end. No problem, I thought, I'll put them in the next phase - "offlineServicing". Ah - components I've found only let me specify driverpaths, no custom commands. Given that the driver installers are running, am I correct in assuming I'm going to have to bodge what I want to do into fake driver or some kind of other package?By the time we get to the "specialise" pass, the new windows install is running and it's too late to monkey around with system files and directories that will be in use, so I'm kinda stuck between a rock and a hard place.Just thought I'd ask if I'd missed anything or if the fake driver/custom package route is the best I can hope for? Link to comment Share on other sites More sharing options...
mrjrt Posted January 26, 2014 Author Share Posted January 26, 2014 Actually, answered my own question having poked around setup with process explorer - what I want to do has to be done in the windowsPE pass as once the first reboot happens it's too late - the new installation is hosting the setup environment.So my options are either:Run an asynchronous command that watches and waits until everything completes, inhibits the reboot, then does it's thing and rebootsExtend the setup proxy I built to run the recovery environment to give me the ability to run commands after setup terminates.The latter sounds more robust than the former...IMHO Link to comment Share on other sites More sharing options...
Tripredacus Posted January 27, 2014 Share Posted January 27, 2014 You can do it if you don't use Setup.exe. If you deploy an image with DISM, you can do whatever after DISM closes and before rebooting. The only problem is that if you are using an unattend file, you'll have to create an image to deploy, since you can't use an answer file with DISM. Link to comment Share on other sites More sharing options...
mrjrt Posted February 2, 2014 Author Share Posted February 2, 2014 You can do it if you don't use Setup.exe. If you deploy an image with DISM, you can do whatever after DISM closes and before rebooting. The only problem is that if you are using an unattend file, you'll have to create an image to deploy, since you can't use an answer file with DISM.Thanks - may go down that route in the future. Was trying to avoid duplicating setup's functionality if possible, but I guess you can't piggyback off of it 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