简体   繁体   中英

How to add a launch condition of searching for a process in a setup project c#?

I have made a setup project for my Outlook Addin in C#(Visual Studio 2010). I want to add a condition to my setup project for Addin which prompts the user to close the outlook if it is open else continues to Install. I'll appreciate any help on this. Also tell me if somehow we can restart the outlook at finish of installation.

It's possible if you are using VS to create a setup project, but to make it works you have to write a little code blocks and make some settings. Hope these posts will help you how to do that.

How to: Get an Instance of Outlook

Extending Visual Studio Setup Project

Launching Your Application After Install using Visual Studio 2005

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM