neoswarm
Posts: 15
Joined: Tue Dec 04, 2012 10:41 pm

closing Outlook 2007, 2010, 2013

umm, such an easy question, but i'm missing something really basic here

I'm trying to close Outlook 2007, 2010, 2013 (whatever's running) can't find the 'auto close application tab'
http://www.advancedinstaller.com/user-g ... close.html

thanks!
m
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: closing Outlook 2007, 2010, 2013

Hi,

The "Auto Close Applications" feature is available when you create an Update Configuration File. It has the functionality of closing some applications during the update process.

For closing an application you can also use the Close application custom action.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
neoswarm
Posts: 15
Joined: Tue Dec 04, 2012 10:41 pm

Re: closing Outlook 2007, 2010, 2013

I was able to close outlook using custom action.

However, it does not prompt the user to close.

Is there a way we can prompt the user to close outlook instead of just force closing?

thanks!
Mike
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: closing Outlook 2007, 2010, 2013

Hi Mike,

In order to achieve this you can follow the steps below:
- go in the Custom Actions page and create a "Detect process" custom action
- create a "Display message box" custom action under the "Detect process" custom action with the following settings:

Action Data:

Code: Select all

 Outlook application is running. Do you want to stop it automatiaclly? | Title | MB_YESNO , MB_SETFOREGROUND , MB_ICONQUESTION | MYRESULTPROPERTY | [CLIENTPROCESSID]
Condition:

Code: Select all

AI_PROCESS_STATE = "Running"
- create the "Close application" custom action under the "Display message box" custom action with the following condition:

Code: Select all

MYRESULTPROPERTY = "IDYES"
- build and run the project

Let us know if this helped, otherwise give us more details about your scenario.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
neoswarm
Posts: 15
Joined: Tue Dec 04, 2012 10:41 pm

Re: closing Outlook 2007, 2010, 2013

Okay that's working GREAT!

Another related question.

Is it possible to detect a silent installation and SKIP the message prompt/close custom actions?

I'm guessing I'm going to need to pass in the /exenoui /qn commmand switches???
(i'm building a .exe installer)

thanks,
MK
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: closing Outlook 2007, 2010, 2013

Hi Mike,

In order to achieve this you can use the following condition for the "Display message box" custom action:

Code: Select all

(AI_PROCESS_STATE = "Running") AND (UILevel>2)
The UILevel property gives the level of the User Interface.

Let us know if this helped.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”