View Full Version : How to "Terminate active application" - 64 bit
NewsArchive
04-06-2011, 02:59 AM
Hi
I have a small .Net program compiled for "AnyCPU" - meaning that it runs
as a 64 bit process on 64 bit OS'es. This program is running "trayed".
When the user installs a new version of the program on top of an
existing install, I would like the installer to stop the old version, to
avoid having to reboot the machine.
I have tried the "Terminate Active Application" script funtion with the
filename of the .exe - but it doesn't seem to work.
The help for this function states: "The Terminate Active Application
function lets you terminate a selected 32-bit process." Is this really
true? And if yes, how can I terminate a 64 bit application?
Best regards
Kasper
NewsArchive
04-06-2011, 02:59 AM
BTW. I get errocode: 603 - Process was not currently running, and I have
checked the file-name a couple of times now ;-)
/Kasper
NewsArchive
04-06-2011, 02:59 AM
Hi Kasper,
> BTW. I get errocode: 603 - Process was not currently running, and I have
> checked the file-name a couple of times now ;-)
And that is correct ;-) That's why the documentation says "32-bit process".
You can't "open" a 64-bit process from a 32-bit process.
Friedrich
NewsArchive
04-07-2011, 12:19 AM
Hi Kasper,
If you are interested, I think we have a solution for you to detect/kill
64-bit processes from your SetupBuilder installer.
Please send this thread with your email address to our support [at]
lindersoft [dot] com.
Friedrich
NewsArchive
04-07-2011, 12:19 AM
Thank you - I am interested, so I have now sent you a mail :-)
Best regards
Kasper
NewsArchive
04-07-2011, 12:19 AM
> Thank you - I am interested, so I have now sent you a mail :-)
Email received. We have developed a library that allows to check for 64-bit
processes and to terminate 64-bit processes from the SetupBuilder
application. I'll send you a test lib that should get you going.
BTW, we'll make this method available as a built-in feature in the next SB
version.
Friedrich
NewsArchive
04-07-2011, 12:20 AM
BTW, we'll make this method available as a built-in feature in the next SB
version.
Friedrich
Keep 'em coming Friedrich! :-)
Donald Ridley
NewsArchive
04-07-2011, 12:20 AM
>
> Keep 'em coming Friedrich! :-)
>
;-)
Friedrich
NewsArchive
04-08-2011, 01:17 AM
I have received the library and (of course) it works!
Thank you for your outstanding support!
Best regards
Kasper
NewsArchive
04-08-2011, 01:18 AM
Hi Kasper,
> I have received the library and (of course) it works!
>
> Thank you for your outstanding support!
You are very welcome! We'll make this feature to detect and terminate
64-bit processes available in a future SetupBuilder version.
Thanks for the good idea :)
Friedrich
NewsArchive
04-08-2011, 01:18 AM
Friedrich,
Just a side question about this: I make 32-bit applications, do I have any concern
if a future customer tries my install on such environments? Do I need to do any
type of detections like this?
--
Russell B. Eggen
www.radfusion.com
Clarion developers: www.radfusion.com/devs.htm
NewsArchive
04-08-2011, 01:18 AM
Russ,
> Just a side question about this: I make 32-bit applications, do I have any
> concern if a future customer tries my install on such environments? Do I
> need to do any type of detections like this?
No. If your own files (or the files to be checked) are native 32-bit, then
there is no problem. There is only a problem if you have to check a native
64-bit process from your setup.
For example, if you would like to check if an instance of "notepad.exe" (a
64-bit app) is running on 64-bit Windows 7, then "Detect Active
Application..." function will always return "603" (process not currently
running) now.
In a future SB version, there will be a "Native 64-bit process" checkbox in
the "Detect Active Application..." and "Terminate Active Application..."
script functions to "lift" the detection process to 64-bit so the installer
can communicate with the 64-bit application.
Friedrich
NewsArchive
04-08-2011, 01:19 AM
Gotcha. Subtle stuff indeed!
Thanks!
--
Russell B. Eggen
www.radfusion.com
Clarion developers: www.radfusion.com/devs.htm
NewsArchive
04-08-2011, 01:19 AM
Friedrich is now in both 32- and 64-bits...
The Terminator!
jf
NewsArchive
04-08-2011, 01:20 AM
Is that better than Tron Guy? :)
Jeff Slarve
www.jssoftware.com
www.twitter.com/jslarve
NewsArchive
04-09-2011, 12:49 AM
> Friedrich is now in both 32- and 64-bits...
>
> The Terminator!
<G> :-)
Friedrich
NewsArchive
04-09-2011, 12:49 AM
Heck, I've got Setup Builder making my coffee in the morning. Just runs a
script and off it goes. You can setup various variables as to how string
the coffee needs to be, etc.
I'm working on other projects with Setup Builder. Changing my vehicle's
oil. Taking out the trash.
I think it can do anything! If it can't, Friedrich will add the function
within 24 hours...
:-)
Don
NewsArchive
04-09-2011, 12:50 AM
He does his tax returns in hex.
--
Russell B. Eggen
www.radfusion.com
Clarion developers: www.radfusion.com/devs.htm
NewsArchive
04-09-2011, 12:51 AM
That's 'cause he's a youngster who grew up in the post z80 era.
Real men do their tax returns in octal!
Jane Fleming
NewsArchive
04-09-2011, 12:51 AM
EBCIDIC actually <bg>
--
Russell B. Eggen
www.radfusion.com
Clarion developers: www.radfusion.com/devs.htm
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.