alternative to cmdow @ /HID
#1
Posted 22 June 2005 - 02:06 PM
I have tried to usecmd /c cmdow @ /HID start /wait %systemdrive%\Install\Applications\***.exe ..but then nothing happens.
I remember someone mentioned something about other method/command that didnt call up any box at all, anyone has a clue or solution?
#2
Posted 22 June 2005 - 02:40 PM
thats how it is done:
cmdow @ /HID start /wait %systemdrive%\Install\Applications\***.exe
2 LINES!!!!!
see http://unattended.ms...unonceex_cd.htm for examples
then it should work. another method is to use cygwins run.exe to start the batch window hidden.
then you just use
run.exe yourbatchfile.cmd
This post has been edited by websee: 22 June 2005 - 02:41 PM
#3
Posted 22 June 2005 - 03:06 PM
Here are some different examples of how you can use it on your UA CD/DVD to prevent those windows from opening:
Quietly execute any commandline argument:
NirCMD ExeCMD "RD /S /Q "~$folder.common_start_menu$\Programs\**** NFO Viewer""
Run an application invisibly:
NirCMD Exec hide "~$Nir.Exefile$\Applications\Setup.exe" /S
Hide/close/move a window:
NirCMD win close ititle "cmd.exe"
Killing processes:
NirCMD killprocess UltraMon.exe
Or just turn off the monitor
NirCMD Monitor Off
Good stuff, and more in the excellent documentation.
This post has been edited by Achdine: 22 June 2005 - 03:07 PM
#4
Posted 22 June 2005 - 04:12 PM
cmd /c cmdow @ /HID&start /wait %systemdrive%\Install\Applications\***.exeMore to the point however, have you tried using the start command correctly, it will certainly help with commands not waiting
start "" /wait %systemdrive%\Install\Applications\***.exewhere the title, (between the quotes), can be blank as in my example or filled with your chosen text.
#5
Posted 22 June 2005 - 08:59 PM
start wont do crap in RunOnceEx unless you call an batch that contains that command.
thats why I used "cmd /c start" to call cmd first.
I use WPI and feels it's a waste of nice coding not to use provided commandlines and use a single batchfile instead.
The meaning with my somwhat cryptic post whas to get either a better way to use RunOnceEx to call those commands directly OR find that other method where callings those batches in a more hidden fashion that I've read somewhere.
@ Achdine, thanx bro..thats exactly what I'm looking for
..@ websee, ..c'mon dude, "well, i would say first learn to read, then post"
..whats the gain?
I HAVE spent time at those guides, maybe I've missed some but there is NO need for that..pffff.
#6
Posted 22 June 2005 - 09:53 PM
Another alternative is StartX.
StartX can be a replacement for Windows internal start command. Example:
startx /wait /b %systemdrive%\Install\Applications\install.cmd
switch /b will start your application without creating a new window. (no more using cmdow, no more quick flashes of a DOS window either)
just place StartX.exe in $OEM$\$$\SYSTEM32\
start "" /wait %systemdrive%\Install\Applications\***.exe
This only a minor quibble, but it can be stated better as *.exe
Using one or three astericks will give you all instances of exe filetypes in your directory, not necessarily just the three characters .exe if that is what you were looking for.
The ? wildcard would be more appropriate for specifing a specific number of characters.
For exactly three characters, use ???.exe instead.
Anyways hope that helps.
This post has been edited by vcBlackBox: 22 June 2005 - 09:56 PM
#7
Posted 22 June 2005 - 10:27 PM
vcBlackBox, on Jun 23 2005, 05:53 AM, said:
start "" /wait %systemdrive%\Install\Applications\***.exe
This only a minor quibble, but it can be stated better as *.exe
Using one or three astericks will give you all instances of exe filetypes in your directory, not necessarily just the three characters .exe if that is what you were looking for.
The ? wildcard would be more appropriate for specifing a specific number of characters.
For exactly three characters, use ???.exe instead.
Anyways hope that helps.
<{POST_SNAPBACK}>
hehe, my bad..was only using astericks as "whattevaname".exe.
should have known better
looking in on StartX, having probs getting NirCMD to fly with this:
NirCMD ExeCMD "%CDROM%\Install\applications\OpenOffice\setup.exe -r:%CDROM%\Install\applications\OpenOffice\setup.txt" -debug
maybe I'm missing a couple of quotas?
EDIT:
when using startx /wait /b "%CDROM%\Install\Applications\ART\setup.exe" /S
I get "no commands specified" by StartX..I thought this was possible to run from RunOnceEx
I mean, StartX gets reached by RunOnceEx allright but StartX itself can't give the commands...
This post has been edited by Clint: 22 June 2005 - 11:07 PM
#8
Posted 23 June 2005 - 02:35 AM
Clint, on Jun 23 2005, 03:59 AM, said:
start wont do crap in RunOnceEx unless you call an batch that contains that command.
thats why I used "cmd /c start" to call cmd first.<{POST_SNAPBACK}>
My response was a direct fix for your line, which you stated didn't work!
Clint, on Jun 23 2005, 09:06 PM, said:
No batch is used or needed just a single line to run the command interpreter with parameters.
Now with the information I gave and a little research you could also find out that you could run more than one command from the same line, also reducing the number of cmd windows; you could also turn off the echoing too!
cmd /q/c cmdow @hid&start "" /wait first.exe&&start "" /wait second.exe
#9
Posted 23 June 2005 - 03:04 AM
Yzöwl, on Jun 23 2005, 10:35 AM, said:
Clint, on Jun 23 2005, 03:59 AM, said:
start wont do crap in RunOnceEx unless you call an batch that contains that command.
thats why I used "cmd /c start" to call cmd first.<{POST_SNAPBACK}>
My response was a direct fix for your line, which you stated didn't work!
Clint, on Jun 23 2005, 09:06 PM, said:
No batch is used or needed just a single line to run the command interpreter with parameters.
Now with the information I gave and a little research you could also find out that you could run more than one command from the same line, also reducing the number of cmd windows; you could also turn off the echoing too!
cmd /q/c cmdow @hid&start "" /wait first.exe&&start "" /wait second.exe
<{POST_SNAPBACK}>
UhOh, I see now what you mean, I wasnt paying attention enuff (early in the morning)..now I can see that you have fixed that line and THEN provided the proper
start command and quotes..
My mind was all set to that you were refering to a proper batchfile (hence the last line starting with"start")..guess I still had websee's "clever remark" ringin' in my mind
well, you live and learn..thanx for the instructions...worked perfectly
#10
Posted 23 June 2005 - 03:16 AM
cmd or bat which becomes EXE.
no added cmdow needed.
get it it is cool
#11
Posted 23 June 2005 - 03:29 AM
Astalavista, on Jun 23 2005, 11:16 AM, said:
cmd or bat which becomes EXE.
no added cmdow needed.
get it it is cool
<{POST_SNAPBACK}>
passwordprotect your batches...hehe, nice features
this is what it's all about, doing "research" in this fashion by posting questions you get all kinda pearls thrown at you
I DO my research as well, but this is the best...thanx bro!
I gain knowledge, you gain that warm fuzzy feeling helpin' a fella out..
#12
Posted 23 June 2005 - 03:43 AM
for what u want to do ...
enjoy!
#13
Posted 23 June 2005 - 03:44 AM
Also I have to agree, Quick Batch File Compiler is good, and although I rarely use it, the 'Ghost Application' feature is brilliant for silent unattended use. Just make sure that the cmd file works using a test QBFC first, it's still surprising how many you have problems with, once compiled as an exe, which ran perfectly as a cmd. They do however have a good support forum, where you can get help with problems such as this.
#14
Posted 23 June 2005 - 05:46 AM
Yzöwl, on Jun 23 2005, 11:44 AM, said:
Also I have to agree, Quick Batch File Compiler is good, and although I rarely use it, the 'Ghost Application' feature is brilliant for silent unattended use. Just make sure that the cmd file works using a test QBFC first, it's still surprising how many you have problems with, once compiled as an exe, which ran perfectly as a cmd. They do however have a good support forum, where you can get help with problems such as this.
<{POST_SNAPBACK}>
uhumm, can't agree with you more...very picky indeed
guess my batches aren't good enuff..heh.
also that "nag" gets on my nerve, kinda spoils the whole idea..can't afford to shuffle that
39$.
But I see why ppl use it, excellent features with "Ghost" and "Passprotect"..
EDIT: StartX works SWEET..! The postinstall now takes 50% longer time, but thats a good thing for once
No boxes, nada!
This post has been edited by Clint: 23 June 2005 - 07:40 AM
#15
Posted 24 June 2005 - 06:23 AM
Astalavista, on Jun 23 2005, 11:16 AM, said:
cmd or bat which becomes EXE.
no added cmdow needed.
get it it is cool
<{POST_SNAPBACK}>
hehe, what a piece of crap!
I have been trying to make it run the simplest batch...nada!
it wouldnt even run this:
@echo off
MOVE c:\test.txt c:\new\test.txt
EXIT
no, that was a way to smucky app for me..
EDIT: got my hands on "ExeScript 2.0" that looks like a rip-off from that "Quick Batch File converter"..this one actually works!
Downside is, when open that .exe in notepad the "source" is not encrypted at all...another piece of crap as well...
This post has been edited by Clint: 26 June 2005 - 01:28 AM
#16
Posted 24 June 2005 - 09:08 AM
Would the content of this thread be of any help in hiding the sucession of windows during the install of a program?
There is a topic about this problem, but with no success:
http://www.msfn.org/...showtopic=44145
Thanks
#17
Posted 08 February 2008 - 09:48 AM
My problem is that cmdow.exe pr nircmd.exe CAN'T BE EXECUTED from STARTNET.CMD in a X64 WinPE Boot image !!!!
Seems that's a Group Security Policy LOCK for files differents from HKLM\COMPONENTS\CanonicalData\Components
Please HOW can I add my custom executable & run them in X64 WinPE Boot image?
How can i create & add Components for wim files?
Tnx
#18
Posted 11 February 2008 - 11:32 AM
testazzo, on Feb 8 2008, 04:48 PM, said:
My problem is that cmdow.exe pr nircmd.exe CAN'T BE EXECUTED from STARTNET.CMD in a X64 WinPE Boot image !!!!
Seems that's a Group Security Policy LOCK for files differents from HKLM\COMPONENTS\CanonicalData\Components
Please HOW can I add my custom executable & run them in X64 WinPE Boot image?
How can i create & add Components for wim files?
Tnx
SOLVED!
The WinPE Enviroment is a PURE 64BIT so CMDOW, NIRCMD etc DOESN't WORK!
To solve DEFINITELY the problem use AUTOIT:
Forget STARTNET.CMD, instead create a file "Winpeshl.ini"
____________________________________________________________
[LaunchApp]
AppPath = ShellExecuteWait.exe "Setup.cmd" "" "" "open" "SW_HIDE"
____________________________________________________________
Create a file Setup.cmd
____________________________________________________________
@echo off
for %%a in (C D E F G H I J K L M N O P Q R S T U V W X Y Z) do if exist %%a:\sources\setup.exe set CDROM=%%a:
call %CDROM%\sources\$OEM$\Unattended1.cmd
start /wait /realtime %CDROM%\sources\setup.exe
call %CDROM%\sources\$OEM$\Unattended2.cmd
____________________________________________________________
Unattended1.cmd & Unattended2.cmd scripts taht can be used to load/unload drivers before start Setup!
Compile the script (AutoIt) as 64 BIT
____________________________________________________________
;ShellExecuteWait ( "filename" [, "parameters" [, "workingdir" [, "verb" [, showflag]]]] )
Select
Case $CmdLine[5] = "SW_HIDE"
ShellExecuteWait($CmdLine[1],$CmdLine[2], $CmdLine[3], $CmdLine[4], @SW_HIDE)
Case $CmdLine[5] = "SW_MINIMIZE"
ShellExecuteWait($CmdLine[1],$CmdLine[2], $CmdLine[3], $CmdLine[4], @SW_MINIMIZE)
Case $CmdLine[5] = "SW_MAXIMIZE"
ShellExecuteWait($CmdLine[1],$CmdLine[2], $CmdLine[3], $CmdLine[4], @SW_MAXIMIZE)
Case $CmdLine[5] = "SW_SHOWNORMAL"
ShellExecuteWait($CmdLine[1],$CmdLine[2], $CmdLine[3], $CmdLine[4], @SW_SHOWNORMAL)
EndSelect
____________________________________________________________
put files in mounted WinPE startup image
All done .....
This post has been edited by testazzo: 11 February 2008 - 11:34 AM
#19
Posted 18 July 2008 - 11:49 AM



Help

Back to top








