Jump to content

Recommended Posts

Posted

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 Server

ECHO Een Moment AUB. . .

CD %systemdrive%\install\Applications\Gamevoice_server

start %systemdrive%\install\Applications\gamevoice_server\servinst.exe

sleep 5

taskkill /IM servinst.exe /F

As 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" /f

REG ADD %KEY%\050 /V 1 /D "%systemdrive%install\Applications\gamevoice_server\gamevoice_server.cmd" /f


Posted

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 this

start %systemdrive%\install\Applications\gamevoice_server\servinst.exe
sleep xx
taskkill /IM servinst.exe /F

notice that there isnt a /wait...in fact, you could prolly remove the "start " from the beginning

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

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...