chon_ Posted November 8, 2007 Posted November 8, 2007 (edited) 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, 2007 by chon_
midiboy Posted November 8, 2007 Posted November 8, 2007 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
Joe User 99 Posted November 9, 2007 Posted November 9, 2007 I have not tried it with program installations, however I am calling regedit to import .reg files from that pass, without calling cmd.
maxXPsoft Posted November 10, 2007 Posted November 10, 2007 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
chon_ Posted November 10, 2007 Author Posted November 10, 2007 (edited) 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, 2007 by chon_
sp00f Posted November 15, 2007 Posted November 15, 2007 (edited) 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, 2007 by sp00f
midiboy Posted November 15, 2007 Posted November 15, 2007 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.
faxio Posted January 26, 2008 Posted January 26, 2008 (edited) 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, 2008 by faxio
maxXPsoft Posted January 26, 2008 Posted January 26, 2008 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"
faxio Posted January 31, 2008 Posted January 31, 2008 Hidden cmd Windows Using CHP http://www.commandline.co.uk/chp/
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now