tewss
Posts: 3
Joined: Wed Jul 16, 2008 3:35 pm

Auto Updater... permissions?

Hi There,

I'm trying to get the auto updater to run. I've distributed the aiu file to our website and after a number of days realised that the problems I'd been having are due to not having the updates folder already created. I have created the updates folder (manually for now), but I'm still getting the following error:-

Access is denied

I'm trying to replace the .exe file of my application. Is this down to something specific in Vista or do I need to allow special persmissons on the files i'm trying to replace during the initial install of my application???

Another way around this that I'd be happy with, would be to create a new msi for each new application version release, and then use the auto installer to download and install the new msi - Can you get the auto updater to look for a new msi file???

Many thanks for your help,
Tim.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Auto Updater... permissions?

Hi Tim,
after a number of days realised that the problems I'd been having are due to not having the updates folder already created.
Please note that this folder is created automatically if it doesn't exist. Therefore, you don't have to create it manually.
I'm trying to replace the .exe file of my application. Is this down to something specific in Vista or do I need to allow special persmissons on the files i'm trying to replace during the initial install of my application???
If the file which needs to be replaced was installed in a per-machine location (like "Program Files"), most likely its installation required Administrator privileges. Therefore, any update which replaces this file also needs to run with Administrator privileges. Please note that this problem is related to the update installation privileges, not to Updater permissions.
Another way around this that I'd be happy with, would be to create a new msi for each new application version release, and then use the auto installer to download and install the new msi - Can you get the auto updater to look for a new msi file???
Please note that you can add any installation package as an update. However, you should make sure that you use a correct detection criteria in the "Installed Detection" section of the Update properties page in your Updates Configuration Project.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
tewss
Posts: 3
Joined: Wed Jul 16, 2008 3:35 pm

Re: Auto Updater... permissions?

Hi, and thanks for the insight.

It appears that the access rights are all as a result of the installation being an administrative installation process (especially under Vista). To enable me to prove this is the case, I need to be able to run the Auto updater as an administrator (in Vista, this means right clicking and selecting 'run as administrator', or setting the auto Updater properties - Compatibility Tab - Privilage Level to 'run as administrator' = true). This worked!

However, this does cause me the following issue:-

When I create a new msi (a new versioned release), I don't want multiple versions of my application running on the same desktop. Currently, I have to uninstall the existing version via 'add and remove programs' before installing the new version. Can I automate the uninstall task prior to running the downloaded update?

Thanks again,
Tim
Cristi
Posts: 34
Joined: Wed Oct 08, 2008 8:44 am
Contact: Website

Re: Auto Updater... permissions?

Hi,
I have created the updates folder (manually for now), but I'm still getting the following error:-
Access is denied
I think you are receiving this message because the updates are downloaded in a folder that is not accessible by all users. I would recommend using the
[CommonAppDataFolder] folder in the "Downloads folder" field from the Updater page.
When I create a new msi (a new versioned release), I don't want multiple versions of my application running on the same desktop. Currently, I have to uninstall the existing version via 'add and remove programs' before installing the new version. Can I automate the uninstall task prior to running the downloaded update?
When creating an upgrade project you must start from the initial project, increase its version and add some features and/or components and answer "Yes" when asked whether you want to change the Product Code. Then make sure that the "Automatically upgrade older product versions" option from the Upgrades page is selected. This way the older version is automatically uninstalled when installing an upgrade. Fore more details see this page and this page.

Best regards,
Cristi
______________________________
Cristi Costache
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”