Updater permissions on Windows XP - Advanced Installer Community

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!

GlennWilson
Posts: 33
Joined: Wed Sep 01, 2010 2:22 pm

Updater permissions on Windows XP

Hi,

I have created an installer that makes use of the updater.exe feature provided by Advanced Installer (version 7.7). After I install the application on a machine running Windows XP as an administrator, a restricted user is unable to run the updater.exe. When a restricted user runs the updater.exe file a message box appears stating that Access is Denied.

The AI project has been set with installation type set to "Per-machine if user is adminstrator, per-user otherwise".

I have given full control of the Application Folder to the restricted user.

Does anyone know how to allow an adminstrator to install the software, but a restricted user to run the updater?

Many thanks,

Glenn
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Updater permissions on Windows XP

Hi Glenn,

The Updater doesn't need Administrator privileges to run. Most likely the access denied error is shown because the updates found cannot be downloaded in the specified location. Try setting the updates download folder to a per-user location, for example:

Code: Select all

[AppDataFolder][Manufacturer]\[ProductName]\updates\
Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
GlennWilson
Posts: 33
Joined: Wed Sep 01, 2010 2:22 pm

Re: Updater permissions on Windows XP

Hi Cosmin,

Thank you for your prompt reply.

The Downloads folder is already set to [AppDataFolder][Manufacturer]\[ProductName]\updates\

If I run the updater as an adminstrator it works, but if I run it as a non-privileged user, it doesn't. When I run it as an adminstrator, the relevent aiu file produced in the correct updates folder for the admin user. However, when running it as a low privieged user, the updates folder is not created.

In addition to this, when I set up an account with local admin rights on the machine and run the updater using the credentials of the local adminstrator, I notice it is actually writing to the documents and settings folder of the user that originally installed the application.

Glenn
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Updater permissions on Windows XP

Hi Glenn,

I'm sorry, I didn't notice that the original installation was performed by another user. In this case the updates download folder should be a per-machine location, for example:

Code: Select all

[ProgramFilesFolder][Manufacturer]\[ProductName]\updates\
This way all users have access to it. Please note that a limited user doesn't have write access to this location by default. Therefore you need to specify permissions which give all users full control over the updates download folder.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
GlennWilson
Posts: 33
Joined: Wed Sep 01, 2010 2:22 pm

Re: Updater permissions on Windows XP

Thanks Cosmin, that worked nicely!

Return to “Common Problems”