Updater support service issue during per-user installation - Advanced Installer Community
naniew
Posts: 12
Joined: Fri Apr 24, 2015 10:31 am

Updater support service issue during per-user installation

My installer has the installation type set to: Per-machine if user is Administrator, per-user otherwise. I want the update of the application to be silent, without user rights elevation in both cases: per-machine and per-user installattion.

During application installation, if user selects per-machine installation, the support service is installed properly. If user selects per-user installation, it fails and the installation is cancelled, because the service cannot be installed without administrator rights.

I want the support service to be installed only when the user selects the per-machine installation. During per-user installation, the installer shoud not even try to install the service. How can I do that?
Irina
Posts: 113
Joined: Mon Apr 27, 2015 11:42 am

Re: Updater support service issue during per-user installati

Hello,

One way to achieve the launch of the update only if the user is administrator, is to customize the project of the updates setup package.
You can create in the updater a custom action that sets a property when verifying if the user is administrator or not.

Then, use this property as a custom launch condition.
You can find some guidelines in the launch condition FAQ article.

Please let me know if you have any more questions.

Kind regards,
Irina
Last edited by Irina on Fri May 08, 2015 11:28 am, edited 1 time in total.
Ecaterina Irina Grosu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
naniew
Posts: 12
Joined: Fri Apr 24, 2015 10:31 am

Re: Updater support service issue during per-user installati

This is not a solution to my problem.

I will rephrase it:
1. I want to provide installer that can be installed both per-machine and per-user. To do so, the installation type in Install Parameters is set to: Per-machine if user is Administrator, per-user otherwise. Also the GUI contains the InstallTypeDlg, so the user can choose the type of installation.
2. In the Updater settings the 'Install support service' checkbox is checked, because I want the application installed per-machine to update without elevation.
3. If the user selects per-machine (all users) installation, everything works great.
4. If the user selects per-user (only for me) installation, installation fails because the updater service cannot be installed:
Image

I don't want to install the support service if the user chooses the per-user installation. It should be installed only for per-machine installation. How can I achieve that?
Irina
Posts: 113
Joined: Mon Apr 27, 2015 11:42 am

Re: Updater support service issue during per-user installati

Hello,

In order to achieve an update without elevation, you should have a project with "Per machine only (fails if user is not administrator)" installation type.

Unfortunately, we do not have support for your second request.

Let me know if I can be of any more help.

Kind regards,
Irina
Ecaterina Irina Grosu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”