erik_demon Posted October 12, 2004 Posted October 12, 2004 I Recently made my first unnattended disk, and it all works great. Now I want to change the simple commandprompt window to a better looking RunonceEX type of window.In general, this is not a problem. The only problem is with the Sleep command.I have a program, called gemevoice server, and it has a very enoying "press ok to exit" window at the end of the installation (no switches availble). Herefore I don't use "start /wait" command. But i use the methode that you see here bellow.ECHO.ECHO Installeren Gamevoice ServerECHO Een Moment AUB. . .CD %systemdrive%\install\Applications\Gamevoice_serverstart %systemdrive%\install\Applications\gamevoice_server\servinst.exesleep 5taskkill /IM servinst.exe /FAs I understand it correctly, runonceEX will install the entire programm before continuing, so that means that it would be the same as "start /wait". In that case My installation would stop at the "press ok to exit" window. Is there a way to let runonceEX know that it needs to go to the next line, so that the taskkill can end the installation, or should I make gamevoice_server.cmd and use the code below?REG ADD %KEY%\050 /VE /D "Gamevoice Server" /fREG ADD %KEY%\050 /V 1 /D "%systemdrive%install\Applications\gamevoice_server\gamevoice_server.cmd" /f
evilvoice Posted October 12, 2004 Posted October 12, 2004 create a batch file that run the install program...guesstimate how long it takes to install and set sleep for the time plus about 30 seconds after...I usually set sleep for 60 (seconds) but sometimes you may need a higher setting...in the batch, use thisstart %systemdrive%\install\Applications\gamevoice_server\servinst.exesleep xxtaskkill /IM servinst.exe /Fnotice that there isnt a /wait...in fact, you could prolly remove the "start " from the beginning
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now