PDA

View Full Version : Terminate application



NewsArchive
05-05-2014, 03:28 AM
In the SB8 Script I placed two lines to terminate applications after Import:
Initialize default install folder. Following that line I retrieve the
%_SB_INSTALLDIR%.
The terminate line reads Terminate Application "%SB_INSTALLDIR%\EziNet.exe
[Application File Name }

Saved the script and compiled.
Started the above application in the same folder as InstallDir to test. Then
ran the compiled install to test. It runs without error but does not
terminate the application. Where am I going wrong?
Thanks
Nev

NewsArchive
05-05-2014, 03:28 AM
Nev,

> In the SB8 Script I placed two lines to terminate applications after
> Import: Initialize default install folder. Following that line I retrieve
> the %_SB_INSTALLDIR%.
> The terminate line reads Terminate Application "%SB_INSTALLDIR%\EziNet.exe
> [Application File Name }
>
> Saved the script and compiled.
> Started the above application in the same folder as InstallDir to test.
> Then ran the compiled install to test. It runs without error but does not
> terminate the application. Where am I going wrong?

Please see "Remarks":

Process names are executables without the full path, e.g., "notepad.exe"
or "winword.exe". If multiple processes have the same name, the one with
the highest PID is terminated - regardless of how recently the process
was spawned.

So in your case, if you would like to kill via the Fila Name,
"%SB_INSTALLDIR%\EziNet.exe" is not correct. The running File Name (e.g. in
Task Manager) is only "EziNet.exe", not the fully qualified path name and
file name.

Friedrich

NewsArchive
05-05-2014, 03:29 AM
Thanks Mate. You should have been more direct and said RTFM.
Nev

NewsArchive
05-06-2014, 02:03 AM
> Thanks Mate. You should have been more direct and said RTFM.

<G>. No! I am here to help ;-)

Friedrich

NewsArchive
05-06-2014, 02:04 AM
Friedrich,

And you are hands down the most helpful developer that I have ever
worked with. Thank you!

Larry Sand

NewsArchive
05-06-2014, 02:04 AM
+2 from me!

Neville Wright

NewsArchive
05-06-2014, 02:04 AM
+30 from me

Jeff Slarve
www.jssoftware.com
www.twitter.com/jslarve
I'll search help files & Google for you.

NewsArchive
05-06-2014, 06:51 AM
Thank you all for your kind words !!!

Friedrich