LeveL Posted May 22, 2007 Share Posted May 22, 2007 (edited) I have this section in my Autounattend.xml unattended answer file: <FirstLogonCommands> <SynchronousCommand wcm:action="add"> <CommandLine>REGEDIT /S C:\WINDOWS\system32\tweak.reg</CommandLine> <Description>RegEntries</Description> <Order>1</Order> </SynchronousCommand> </FirstLogonCommands>So this is only any use if you install on a C:\ drive, so I change it to this: <FirstLogonCommands> <SynchronousCommand wcm:action="add"> <CommandLine>REGEDIT /S %WINDIR%\system32\tweak.reg</CommandLine> <Description>RegEntries</Description> <Order>1</Order> </SynchronousCommand> </FirstLogonCommands>And it does not work!These XML methods suck, this was never a problem in XP with WINNT.SIF, you justused %SYSTEMDRIVE% or %WINDIR% and it worked, not in Vista though. I thoughtthings were supposed to get better and easier, not worse and harder? Edited May 22, 2007 by LeveL Link to comment Share on other sites More sharing options...
FireGeier Posted May 22, 2007 Share Posted May 22, 2007 Hello LeveL!use cmd /c in front of your command and it will work again:<FirstLogonCommands> <SynchronousCommand wcm:action="add"> <CommandLine>cmd /c REGEDIT /S %WINDIR%\system32\tweak.reg</CommandLine> <Description>RegEntries</Description> <Order>1</Order> </SynchronousCommand> </FirstLogonCommands>Regards,Martin Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now