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?
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)
Please log in to answer
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.
so that the conversation will remain readable.