InTheWayBoy Posted August 9, 2005 Share Posted August 9, 2005 How can I make the CMD never appear during installations. Currently I have all my setup routines controlled by a batch file. The batch file calls CMDOW first so as to keep it from showing, but you still see the flash of the windows before it processes the CMDOW command.I'm calling the batch file from config.txt that I am using to create a 7zip installer. As it is right now I just call my 'setup.bat' and everything works as explained. I thought maybe I could do something different like run cmdow and then feed it the batch file. It works fine in a regular command window, but when I compile and run the installer it extracts and then complains about program not found and the like...I don't have the exact message. So I tried nircmd and got similar results.So how can this be done? I know there has to be a way to do this...if I understand it as I do, the only real way to do this would be to call the batch file from a program that hides the box, but how do I do that with a 7zip sfx? Anyone? Here's my current setup:setup.batstart "" /wait .\setup.exe /Sdel "C:\Documents and Settings\%USERNAME%\Desktop\ABC.lnk"config.txt;!@Install@!UTF-8!RunProgram="setup.bat"";!@InstallEnd@!build.batcopy /b 7zs.sfx + config.txt + ABC.7z ABC.exeso in this case I make an archive (ABC.7z) containing setup.exe and setup.bat. I then execute build.bat which does all the magic and presto it works. Now I was including cmdow.exe in the archive with an entry at the beginning of setup.bat, but of course that's where I'm not happy.I saw on some forum about a new tools made by someone at another forum...runhiddencmd.exe or something. It sounded like just what I'm looking for, but I can't find it anymore. I think I'm getting mixed up on the syntax for config.txt, so if you have any examples that would be nice too...thanx! Link to comment Share on other sites More sharing options...
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 account
Already have an account? Sign in here.Sign In Now