MSI vs MSP and UAC elevation - Page 2 - Advanced Installer Community
kjullion
Posts: 176
Joined: Mon Nov 11, 2013 9:02 pm

Re: MSI vs MSP and UAC elevation

Hi Daniel,
So I am now trying to learn as much as possible about the Updater tool. I am going through the How To 'Handle updates without elevation' article
and the final bullet point says: "In the end, enable each update's "Install update without elevation" option from the Updates Configuration Project > Update Properties Tab."

Does that apply to my scenario if I am not using an MSP? Recall that I am looking to achieve updating without UAC elevation via AI's major upgrade feature (not MSP) because our system (as it is now) violates one of the MSI patching rules ("Do not move files from one folder to another").

Secondly, our application's download website requires HTTP authentication which we already have "baked-into" our application so the user does not have to know (or remember them, or keep up with them as we expire passwords) the authentication credentials. Can those credentials somehow be included in the updater.ini, so that our user's do not have to type in anything to begin their update check / download?

Thanks.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: MSI vs MSP and UAC elevation

Hello Kevin,
Does that apply to my scenario if I am not using an MSP? Recall that I am looking to achieve updating without UAC elevation via AI's major upgrade feature (not MSP) because our system (as it is now) violates one of the MSI patching rules ("Do not move files from one folder to another").
Yes, the related option ("Install update without elevation") should be also enabled in the updates configuration project when you are building the updates packages as major upgrades.

Please keep in mind that starting with version 10.8 of Advanced Installer (released on December 10, 2013) the configuration steps for handling updates without elevation has been simplified. Also, before configuring the Updater to handle updates without elevation I strongly suggest you to get through our "Using The Auto Updater" tutorial.
Secondly, our application's download website requires HTTP authentication which we already have "baked-into" our application so the user does not have to know (or remember them, or keep up with them as we expire passwords) the authentication credentials. Can those credentials somehow be included in the updater.ini, so that our user's do not have to type in anything to begin their update check / download?
Yes, you can set the URL (added in the "Updates configuration file URL" field from your installation project, and in the "Download URL" field from your updates configuration project -> Updates page -> Properties tab) as it is described in our "Updater To Handle 407 - proxy" thread.

If you have any questions just let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
kjullion
Posts: 176
Joined: Mon Nov 11, 2013 9:02 pm

Re: MSI vs MSP and UAC elevation

Hi Daniel,
I have looked at the tutorials you mentioned. It helps, but there are two places that I see URLs are required but I don't see any crystal clear examples on what those URL examples might be and when. Here are the two URL places:

1. In the regular AIP file on the Product Information > Updater > Updater > Updates Configuration file URL
2. On the Updates Configuration Project > Updates > Update Properties > Download URL.

I am assuming that in both places the format that includes the username and password would be required, like this:
http://username:password@www.example.com/

Let's say my specific example URL to download my product updates from is as follows:
http://johndoe:1234@www.mysite.com/prod/1/

but I am not so sure what the filename part of the URL should be pointing at...?

In the Configuration Project it seems like the Download URL points to the available MSI file, like this: http://johndoe:1234@www.mysite.com/prod/1/Product.msi

And in the regular AIP project the "updates configuration file URL" should include the filename for the TXT configuration file, like this: http://johndoe:1234@www.mysite.com/prod/1/Update.txt

Are these correct assumptions?
Thanks.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: MSI vs MSP and UAC elevation

Hello Kevin,

Your assumptions are correct.

In the " Product Information > Updater > Updater > Updates Configuration file URL" field you should set the URL of your updates configuration file (build with your updates configuration project and, then hosted on your server).

In the " Updates Configuration Project > Updates > Update Properties > Download URL" filed you should set the URL of your updates setup package hosted on your server.

If you have any doubts just let us know.

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

Return to “Common Problems”