We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

dexter_v
Posts: 23
Joined: Sat Nov 22, 2014 5:25 pm

Firewall Exception

Hello

Is there a way to add the firewall exception to only per machine installation i.e if the user select per machine installation type from the Install type dialogue, then add the firewall exception, if the user select per user installation type then skip firewall exception set up.

What conditions can be used in the firewall exception page to achieve the above task.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Firewall Exception

Hi,

In order to achieve this, you can follow the steps below:
- create a new public property in the "Install Parameters" page (i.e. PER_MACHINE = "0")
- select the "Next" button of the "InstallTypeDlg" dialog and add a new "Set installer property" published event as below:
  • Property: PER_MACHINE
    Value: 1
    Condition: AI_InstallPerUser = "0"
- select the following condition for your firewall rule: PER_MACHINE = "1"
- build and run the project

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

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
dexter_v
Posts: 23
Joined: Sat Nov 22, 2014 5:25 pm

Re: Firewall Exception

Hi Eusebiu,

Thanks for the reply.

I've made the changes that you have suggested, but the installer still ask for admin passwords while trying to install in per user installation type. If I click on No in the admin credentials pop up, the installer rolls back.

To replicate this, please try to install the installer using per user installation type on an account which does not have admin rights. The install works fine on a system which has admin rights.

I've attached the .aip file which I'm testing.
Attachments
Test Project.aip
(22.73 KiB) Downloaded 448 times
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Firewall Exception

Hi,

I tested the project that you sent and, indeed, I reproduced the problem. This seems to be an Advanced Installer issue. A fix will be available in a future version of Advanced Installer, thank you for bringing it to our attention.

Meanwhile, you can go in the "Table Editor" page, "InstallExecuteSequence" table and add the following condition to the "AI_FwUninstall" and "AI_FwInstall" rows: AND (PER_MACHINE = "1")

Also, you need to go in the "Install Parameters" page, edit the "PER_MACHINE" property and check the "Set persistent property" flag for it. In this case, its value will be remembered on uninstall and maintenance, when the user will not set it through the "InstallTypeDlg" dialog.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
dexter_v
Posts: 23
Joined: Sat Nov 22, 2014 5:25 pm

Re: Firewall Exception

Hi Eusebiu,

Thanks for your quick reply.

I followed the instructions, its working fine if I install it on an admin system.

I created 2 installers version 1 and version 2 with the same configuration that u suggested.

I installed version 1 using admin login (per machine for all users), then I tried to install version 2 on the same system but with another account which does not have admin rights (per user installation type). This time version 2 rolled back due to firewall exception.

I tried the same thing again (this time without checking the "Set persistent property" flag ), this time it worked fine (i.e installation was successful).

Is there a way to solve this?
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Firewall Exception

Hi,

Indeed, this happens if the "InstallTypeDlg" dialog is not displayed during the upgrade, so the user can choose the installation type anymore. In this case, the value that was set for the "PER_MACHINE" property in the firs version will be remembered because the "Set persistent property" option is set for it.

To avoid this, you can add a "Set installer property" custom action after the "Wizard Dialogs Stage -> Searches" action group with the following settings:
  • Property: PER_MACHINE
    Value: {}
    Execution Stage Condition: check only Upgrade
So, the "PER_MACHINE" property will be reset during the upgrade and the firewall rules will be configured only if the user chooses on the "InstallTypeDlg" dialog to install the new version per-machine.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
dexter_v
Posts: 23
Joined: Sat Nov 22, 2014 5:25 pm

Re: Firewall Exception

Thanks Eusebiu, the installer is working now :)
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Firewall Exception

You're welcome. I'm glad you got this working.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Firewall Exception

Hello,

This was fixed in version 12.7 of Advanced Installer released on February 4th, 2016.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”