Problem with Updater service - Advanced Installer Community
PatrickV
Posts: 4
Joined: Tue May 07, 2013 6:22 am

Problem with Updater service

I have run into a problem when I try to run the updater as a service, to allow a normal user to install updates to the program.

The first time there is a update i get the prompt "The Setup must update files or services that cannot be updated while the system is running. if you choose to continue, a reboot will be required to complete the setup."
If i choose to continue the setup completes without a UAC prompt or a reboot prompt.

After this i made a new update for the install, and when the updater is run ( to update the install ) the same prompt get shown but after that a UAC prompt is given to login with admin rights.

I made the install with the tutorial at http://www.advancedinstaller.com/user-g ... dates.html

Must the install/update stop the updater service when it is run to prevent this situation to occur?

I have included the aip files for the install that i have used.

What can i do to make the install work without a UAC prompt for updates, I have tried this with the version 10.0 and 10.1
Attachments
Updates.aip
update script
(8.58 KiB) Downloaded 342 times
UpdateTest.aip
Install script
(14.22 KiB) Downloaded 337 times
PatrickV
Posts: 4
Joined: Tue May 07, 2013 6:22 am

Re: Problem with Updater service

It even occurs when i have the productVersion in the directory path.
Then i don't get any popups on the first application update, but on the second update i get a UAC popup.
I can provide the MSI install logs if that helps find the problem?
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Problem with Updater service

Hi,

Can you please try the updater from this URL: https://dl.dropboxusercontent.com/u/539 ... pdater.zip

This contains some improvements related to files in use message, that will be included in Advanced Installer 10.2. Just close Advanced Installer, replace the file with the same name from "stubs" sub-folder, installation folder of Advanced Installer
and rebuild the projects, starting with the first version.

Also, please make sure in all versions of your product the updater is installed as a service.

Best regards,
Bogdan
PatrickV
Posts: 4
Joined: Tue May 07, 2013 6:22 am

Re: Problem with Updater service

Hallo Bogdan,

Thanks for the reply, I have tried it with the files that you have given, it solves the problem that I have partially.
It does solve the problem of the file is in use, but not the problem that I get a UAC popup when the first install tries to uninstall.

The steps I did was:
  • make a new install (in the zip file Version 1.0)
  • Install that version on a clean windows 7 x86 machine.
  • change the product version to 1.1 and make a update file
  • Run the updater on the windows 7 machine.
  • It will see that there is a update, and this update is installed without a UAC Prompt.
  • change the product version to 1.2 and make a update file
  • Run the updater on the windows 7 machine.
  • It will see that there is a update, and this update is installed with a UAC Prompt when it wants to uninstall the V1.1 update.
I have attached a zip file with the different version of the AIP files and with the MSI logs of the updates for the different version.
Attachments
UpdateV2.zip
AIP and logs
(70.64 KiB) Downloaded 346 times
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Problem with Updater service

Hi Patrick,

Thank you for the detailed feedback on this issue. I managed to reproduce it, we'll try to release a fix for this in version 10.2, scheduled for release in the next weeks.

Best regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Problem with Updater service

Hello,

This was fixed in version 10.3 of Advanced Installer released on June 26, 2013.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
PatrickV
Posts: 4
Joined: Tue May 07, 2013 6:22 am

Re: Problem with Updater service

Sorry for the late reply I was on vacation.

I have updated to 10.3 and retried the situation but still get a UAC prompt when I try to update the program.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Problem with Updater service

Hello,

I've tested you scenario, but I cannot reproduce the behavior. Can you please give us a step by step test case scenario so we can try to reproduce the behavior? Also, can you please send us the .AIPs (upgrade, upgraded and upgrade configurations projects files) to support at advancedinstaller dot com so we can investigate them?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”