November 8, 200718 yr I've been following FireGeier's guide to unattended vista (it's awesome BTW, congrats! ), everything works OK, but I have a doubt: in his guide he mentions that the Synchronous Commands in Pass 6 auditUser must have the comand CMD/ C (wich calls vista's command line interpreter) preceding the actual command for installing the application; for example:cmd /c %AppsRoot%\Install\AcrRead\AcroRead.msi /qbI tried to install some apps without the CMD /C instruction but the setup fails and quits.If I use the CMD /C command everything works OK.The only problem is that CMD /C opens (of course) a black command window, which I don't like.Is there any way to avoid CMD /C in the syntax?This issue is merely cosmetic, as I said, everything works fine, but I don't like black command windows open. Edited November 8, 200718 yr by chon_
November 8, 200718 yr Hi there !you can use the programm cmdow to make the cmd window go away. Be sure to have the program somewhere in the path, then use this commandline in the xml:cmd /c "cmdow @ /HID & %DVDRoot%\setupcommand...."Bye,Alex
November 9, 200718 yr I have not tried it with program installations, however I am calling regedit to import .reg files from that pass, without calling cmd.
November 10, 200718 yr I have not tried it with program installations, however I am calling regedit to import .reg files from that pass, without calling cmd.Regedit and cmd are both native to Windows and it knows what they are. does that make sense?To do a msi you can use this: msiexec.exe /I %SystemDrive%\APPS\Jump2reg\Jump2reg.msi /qbWhen you hide that thing installing and it seems hungup remember you can Ctrl Alt Del and end task
November 10, 200718 yr Author Thanksregarding the CMDOW tool, I don't like it that much, so does my antivirus and prevents it form running, hence, it causes an error Thanks for the MSIEXEC /I tip maxXPsoft, I'll try it tonight BTW, I noticed that the error occurs only when the command line has spaces, for example, the following line does NOT cuase any trouble:%CDROM%\Install\nero\INSTALL.CMDbut, as you can see it has no spaces in it, in the other hand, the following line DOES cuase a problem::%CDROM%\Install\Office2007\setup.exe /adminfile CUSTOM.MSPnote the blank space between setup.exe and /adminfile and between adminfile and custom.msp. Edited November 10, 200718 yr by chon_
November 15, 200718 yr regarding the CMDOW tool, I don't like it that much, so does my antivirus and prevents it form running, hence, it causes an errorAntivirus during vista setup , i dont think so@alexI tried it in fase 4, but that didnt work.Can you show an example from one of your commands please with cmdow in it? Edited November 15, 200718 yr by sp00f
November 15, 200718 yr Hi sp00f,Can you show an example from one of your commands please with cmdow in it?Sure. For instance in phase 4 I have the following synchronous command:cmd /c "cmdow @ /HID & FOR %i IN (C D E F G H I J K L N M O P Q R S T U V W X Y Z) DO IF EXIST %i:\DVDRoot.txt SETX DVDRoot %i: -m"I am attaching my xml in case you need it.
January 26, 200818 yr you can use Java script (WSH) to Completely hide cmd Window , Perfect ! example.js // this's Java Script examplevar CmdPath = "your cmd path\\example.cmd";var cmd1 = "%windir%\\System32\\cmd.exe /c " + CmdPath;var WshShell = WScript.CreateObject("WScript.Shell");return1 = WshShell.Run(Cmd1,0,true);autounattend.xml in specialize or audituser<settings pass="specialize"> <component name="Microsoft-Windows-Deployment" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <RunSynchronous> <RunSynchronousCommand wcm:action="add"> <Order>1</Order> <Path>cscript %windir%\Setup\example.js</Path>[/color] <Description>Run Jscript</Description> </RunSynchronousCommand> </RunSynchronous> </component> </settings> example.cmd @echo off%CDROM%\Install\nero\INSTALL.CMD %DVDRoot%\setupcommand...." and more .... Sorry ! My English is poor. Edited January 26, 200818 yr by faxio
January 26, 200818 yr NOTE:Not always needed but when you do an expand variable or a path with blank spaces in it for instance %ProgramFiles%\use quotes around it "%ProgramFiles%\dada"
Create an account or sign in to comment