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

per machine if user is admin, per user otherwise

Hello,
I'm trying out the latest version of advanced installer
I'm trying to create an installer using installation type per machine if user is admin, per user otherwise.
I tried to create 3 version v1, v2, v3.
I've installed v1 using the administrator access for all users. Then installed v2 for per user (without the admin access). I then tried to install v3 for per user (without the admin access).
The v3 installer should have overridden v2 and in the control panel I should have only 2 version (i.e v1 and v3).
But I can see all the version in the control panel (i.e v1, v2, v3).
trying to uninstalling v3 gives me an error.
I'm using the install type dialogue. Do i've to use any other settings to make this work.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: per machine if user is admin, per user otherwise

Hello,

In order to have a better view about this, can you please send us a verbose log of the installation process when installing the v3 version to support at advancedinstaller dot com so we can investigate it? If it contains confidential information you can send us a small test project which reproduce this behavior.

Also, please check our articles regarding this issue: Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
dexter_v
Posts: 23
Joined: Sat Nov 22, 2014 5:25 pm

Re: per machine if user is admin, per user otherwise

Hi Dan,

Thanks for the quick reply.
I found the solution to my problem.
In the product details page, I had checked override Windows Installer program list entry and I also had Disable repair checked.
I unchecked both this and the installer worked fine :)

In the InstallTypeDlg box is it possible to select the type based on the user installation preference. i.e if the user had previous selected Only for me option in the installation type, then is it possible to detect this and when the next time user updates that option should be pre selected.
dexter_v
Posts: 23
Joined: Sat Nov 22, 2014 5:25 pm

Re: per machine if user is admin, per user otherwise

Hi

Also is there a way to add the firewall exception to only per machine installation i.e if the user select per machine installation type then add the firewall exception, if the user select per user installation type then skip firewall exception set up.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: per machine if user is admin, per user otherwise

Hello,
In the InstallTypeDlg box is it possible to select the type based on the user installation preference. i.e if the user had previous selected Only for me option in the installation type, then is it possible to detect this and when the next time user updates that option should be pre selected.
Indeed, this step should be done automatically by Advanced Installer. I have added this improvement on our TODO list and it will be available in a future version of Advanced Installer. Thank you for your suggestion.
However, you can set a property with the selected value and save it in the registry. During an upgrade, you will retrieve its value and set the AI_InstallPerUser property. The AI_InstallPerUser is set as follow:
  • 1 - Only for me ([LogonUser]) option was selected
  • 0 - Everybody (all users) option was selected
Also is there a way to add the firewall exception to only per machine installation i.e if the user select per machine installation type then add the firewall exception, if the user select per user installation type then skip firewall exception set up.
In this case you can condition the firewall creation through the Condition field from the Edit Firewall Exception Dialog. In order to create the firewall exception, the condition statement must be true, in your case AI_InstallPerUser = 0 .

Please let me know if you need any help.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: per machine if user is admin, per user otherwise

Hello,

This improvement has been added in Advanced Installer 17.4, released on August 26th, 2020.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”