admin rights - Advanced Installer Community
IFS-Dragon
Posts: 19
Joined: Thu Apr 17, 2008 11:26 am

admin rights

Hi,

We have a customer who is installing some updates to their current product. The original product was installed by a user who was an administrator and a subsequent update installed by the same user with no problems at all.

However another update is required for them but this time the user who is on the pc is not an administrator. When that user tries to install the next update it shows it on the control panel as a duplicate to the previous update already installed. ie it shows it twice with previous one being unabled to be removed. The registry items did not get updated either. I didn't get the chance to check if the updated programs had been installed in the application folder. When we got the user to log off and log on as an administrator it installed correctly.

This will become critical as were are using the built in updater for the user to auto update their product and it will be very inconvenient for them to log off and log back on each time.

The installation type is set to Per-machine if user is administrator, per-user otherwise. The pcs are XP-Pro.

Can anyone bring any light to this issue.

Regards
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: admin rights

Hello,

This is the expected behavior for the "Per-machine if user is administrator, per-user otherwise" option. Since the new user is not an admin, it installs per-user, in another folder location. This also explains why there are two entries in Control Panel. If you only want one instance of your install for all users, you will need to set your package type per-machine only.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
IFS-Dragon
Posts: 19
Joined: Thu Apr 17, 2008 11:26 am

Re: admin rights

Thanks Gabriel.

the type per machine has in brackets fails if user is not administrator. If this is the case then it would defeat my object of auto updating the product to the machine as our users would then have to get someone with admin rights to install the updates. This becomes very problematic as some of our customers have over 20 users on different floors. Even using remote desktop would be a pain for the our Customer's IT administrator.

Also in the lauch conditions I have Run only if user has admin privelegs NOT ticked so surely I would expect the product to install on the machine if user is not an administrator.

Regards

David
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: admin rights

Hello David,

Installing per machine programs on non-admin users in a networked environment is solved using group policy objects and active directory. I am sure your network administrator knows more about this. If not, you can search the internet for documentation on this.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
IFS-Dragon
Posts: 19
Joined: Thu Apr 17, 2008 11:26 am

Re: admin rights

Hi Gabriel,

Thnak you for you reply.

We tried using GPO but we found that upgrades were in the hands of the customers IT dept and some did pcs did not get updated because their set up was not correct or they put the wrong msi in the shared folder. This became a nightmare to make sure our customers had the correct upgrade. Also not all our customers have ADS set up and therefore GPO is not a viable solution. We like the idea of auto updating from our internet site and were are going to put in our code to check if they have right software and wont let them sign on if they dont.

I may have to suggest that the users either have local admin rights, which may not go down so well with our Customer's IT dept or they right the update using the RunAS option.

Any other suggestions please let me know.

Regards

David
IFS-Dragon
Posts: 19
Joined: Thu Apr 17, 2008 11:26 am

Re: admin rights

Hi Gabriel,

Just one quick question if the user right clicks on the shortcut to run the Updater (ie to check for latest updates) and select Runas... and then specifies local admin credentials will the MSI install with admin rights ?

Regards

David
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: admin rights

Hi David,

Yes, the MSI will install with admin rights. But the Updater will in turn prompt for elevation, so, I'm not sure if this solves your problem.

I may have another suggestion for you:
On first install, which I understand will be an elevated one, simply install an updater service. The service will always run in background, initiating elevated installs whenever an update is available.
The user will not need elevation for this, it will not even be aware of the process.

Another method would be to create a scheduled task for the updater. The updater would run elevated on user log-on or some other trigger and initiate the update process. Note that both the updater and the install process must be run without a user interface, otherwise they will lock up.
The updater can run silently when launched with the /silentall switch. An msi can be launched with the /qn switch for a silent install.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
IFS-Dragon
Posts: 19
Joined: Thu Apr 17, 2008 11:26 am

Re: admin rights

Hi Daniel,

I like the idea of a updater service so I tried setting up updater service as a test but when I tried to install the package I get an error

Service 'Your Service' (Updater.exe) failed to start. Verify that you have sufficient privileges to start system services.

I am logged on as administrator

any clues?

David
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: admin rights

Hi David,

Sorry for not being more specific. The updater does not (yet) support the service interface. What I meant was you should create your own service that launches the updater. But I think a scheduled task would be simpler to set up, in my opinion.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”