T
Thom Little
During an uninstall, how can I check to see if the application I an
uninstalling is currently running?
uninstalling is currently running?
Thom Little said:It ALMOST does. What came up with was ...
using System ;
using System.Windows.Forms ;
using System.Diagnostics ;
namespace ThomLittleAssociates
{
public class tlaSystemTrayDetect
{
public static void Main( string[] args )
{
for ( ; ; )
{
Process[] procMain = Process.GetProcessesByName(
"tlaSystemTray" );
if ( procMain.Length > 0 )
MessageBox.Show( "Your system is currently running
tlaSystemTray.\nRight-clicktlaSystemTray and select Exit.\nThen respond OK
to this message.", "tlaSystemTray" );
else
break ;
}
}
}
}
... and this works fine when added as a custom action to uninstall.
The only problem is that it displays an empty command line window as it
runs.
My NEXT dumb question is how do I get rid of the bogus command line window?
--
-- Thom Little -- www.tlaNET.net -- Thom Little Associates, Ltd.
--
"Jeffrey Tan[MSFT]" said:Hi Thom,
Does my reply make sense to you? Do you still have any concern on this
issue?
Please feel free to post. Thanks
Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
through Windows Installer PlatformFelix Wang said:Hi Thom,
I think the dialog for "Shut down this application if running during
uninstall" does exisit but the wording is a little bit different.
The dialogsI looked rather agressibely and if ...Setup project, or
hook a button with "SpawnDialog" event to show it.
hook a button with "Spawn Dialog"