Page 1 of 1

Installation Process: Start TC after installation

Posted: 2014-03-24, 02:03 UTC
by scegg
Hi.

Is that possible to allow user to launch TotalCommander after installation by program?

for example, show a message box to ask if user wanna start this program.

We know that setup program can detect and close existed TC process while upgrading. Why not to restart it after this process?

It will make easier for me coz I always start TC with administrator privilege.

Posted: 2014-03-24, 05:53 UTC
by MVV
Since TC installation is elevated, it is a problem to start non-elevated TC from it. And it is very unsafe to work with always elevated TC. I don't think it is too hard to start TC by double-clicking its desktop icon after installation.

Posted: 2014-03-24, 06:42 UTC
by Stefan2
If you really need this behavior, you could do that by utilizing a batch like:

Code: Select all

@ECHO OFF

FOR %%E in (tcmd*exe) Do (
 ECHO.
 ECHO "%%E"
 SET /P answer=launch this TC setup? [y/n]:
 If %answer% == y (
    echo START /Wait "%%E"
  )
 ECHO.
)

ECHO.
ECHO.
ECHO ***** ***** ***** ***** no more setups found ***** ***** ***** 
ECHO.
ECHO.

ECHO ***** ***** ***** ***** launch now your TC?
ECHO. & ECHO. & ECHO. & ECHO. 
SET /P launch=launch now your TC? [y/n]:
If %launch% == y ( 
  echo START "" "D:\rive\path\TOTALCMD.EXE"
)

ECHO Fin!
pause
Don't know if this really works. Try it. Remove lower case 'echo' and 'pause' to leave demo mode for real use.