twenty94470
Posts: 10
Joined: Wed Apr 06, 2016 4:41 pm

Loop for Detect Process

Hello,

I create a detection process and a message box to warning the user that a software need to be close.
But this Software is outlook and i can't kill the process just like that.
It's possible to create a loop during the custom action " Detect process and messagebox " while the users close the outlook application himself ?

Best regards
Eusebiu
Posts: 4959
Joined: Wed Nov 14, 2012 2:04 pm

Re: Loop for Detect Process

Hi,

To achieve this you can go in the "Custom Actions" page and add a "Detect process" custom action "without sequence" to detect if the process is running during the installation.

Then, follow the "How to make sure an edit box is not empty" tutorial, but do not create any edit box and use the "AI_PROCESS_STATE = "Running"" condition at step 8, instead of the "NOT MY_EDIT" condition.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
twenty94470
Posts: 10
Joined: Wed Apr 06, 2016 4:41 pm

Re: Loop for Detect Process

Thanks for your reply,

But i import an existing MSI and on the left pane i don't have Dialogs, how can i do a loop with just Custom Actions ?

Best regards,
Attachments
PrtScr capture_6.jpg
PrtScr capture_6.jpg (32.27 KiB) Viewed 4806 times
Eusebiu
Posts: 4959
Joined: Wed Nov 14, 2012 2:04 pm

Re: Loop for Detect Process

Hi,

In order to add the "Dialogs" page in your project you can use the "Add/Remove" link from the bottom of that pane and select the page in the full list.

I'm afraid that if you want to achieve this from the "Custom Actions" page you need create your own custom action that check if the process is running and displays a message box until the users closes the process.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
twenty94470
Posts: 10
Joined: Wed Apr 06, 2016 4:41 pm

Re: Loop for Detect Process

Hi,

But when i import an existing MSI (not created with advanced installer) i don't have the "add/remove" button, and when i create a new project i have this button
There is a option for activate the dialog pane ?

Best regards,
Attachments
PrtScr capture_8.jpg
PrtScr capture_8.jpg (8.06 KiB) Viewed 4803 times
PrtScr capture_7.jpg
PrtScr capture_7.jpg (46.74 KiB) Viewed 4803 times
Eusebiu
Posts: 4959
Joined: Wed Nov 14, 2012 2:04 pm

Re: Loop for Detect Process

Hi,

Indeed, that option is not available when you "Edit an MSI in Advanced Installer", but if you use the import it using the "Import MSI" feature the "Add/Remove" option and the "Dialogs" page will be available, too. However, in this case a new MSI package will be created, it will not modify the existing one.

I'm afraid that if you want to edit the existing MSI you will need to create your own custom action as I explained in a previous post.

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

Return to “Building Installers”