/build/static/layout/Breadcrumb_cap_w.png

Close MS Office Before Install

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

Answers (0)

Be the first to answer this question

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ