I am new to Wise for Windows Installer and I have intergrated the product with Visual Studio.NET 2003. I am writing a COM Addin for Outlook and Word 2003 that will require the user to close the applications before installation. I have created an Installer class in C# that provides the following function:

public long CloseMSoffice()
{
// Get all instances of WinWord
// running on the local computer.
Process [] wordProcess = Process.GetProcessesByName("WinWord");
// Get all instances of WinWord
// running on the local computer.
Process [] outlookProcess = Process.GetProcessesByName("Outlook");
if (wordProcess.Length > 0)
{
return 1;
}
else if (outlookProcess.Length > 0)
{
return 1;
}
else
{
return 0;
}
}

How do I get the installation to display a message to the user if the applications are open (return value of 1) and then restart the installation?
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

There are no answers at this time
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

Answer this question or Comment on this question for clarity