Automatic updates and UAC

Got a problem you cannot solve? Try here.
Post Reply
dawidp
Posts: 31
Joined: Wed Jan 14, 2009 5:45 pm

Automatic updates and UAC

Post by dawidp »

I need UAC elevation and manual update checking.

I've created an installer with manual update checking, and also selected "Always Elevate" for Vista UAC Elevation drop-down. Problem is that everytime I want to check for updates and launch the updater shortcut I get the UAC prompt. Is there a way to avoid UAC until an update is detected?

Thanks,
Dawid
MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Post by MichaelNesmith »

What you can do is compile a separate web update client and use that instead of the one that is built into setup.exe. That way you can specify no elevation for that different compile.
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
dawidp
Posts: 31
Joined: Wed Jan 14, 2009 5:45 pm

Post by dawidp »

Michael,

Are there any articles to help with this, and can I reuse the InstallAware web update client?

Thanks,
Dawid
MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Post by MichaelNesmith »

You'd just copy-paste the existing code for the web update client into a new project, and build.
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
dawidp
Posts: 31
Joined: Wed Jan 14, 2009 5:45 pm

Post by dawidp »

Hi,
I'm still evaluating InstallAware, and creating a POC. I'm not sure what you mean by "existing code" I was not able to find any c# or vb.net code in your installation.

Also, I'm considering another route. I want to download and parse the .ini file to see if there are updates. If so, I can launch the setup.exe \\update to download and install them. How can I get access to the UPDATE_SERVER variable from my app?

Many thanks,
Dawid
MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Post by MichaelNesmith »

The existing code for the web update client is in MSIcode and included as an Include Script in your existing project. You can copy-paste that code into any project and make any changes as you see fit.

I suggest you read the web updates whitepaper if there is any confusion.
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
psycodad
Posts: 7
Joined: Wed Oct 24, 2012 12:48 am

Re: Automatic updates and UAC

Post by psycodad »

So i have the same problem here. is there no easier way to to that.

At moment, my Setup writes at the installation the $UNINSTALLLINK$ variable to the ini-File of my program. So i can easely check for updates in my program with a button i created. Now i wants for myself shows peridoically if a Update is ready on my update server. This should happens without calling the UAC because the user should not detect that i searching for updates. So it would be nice if there is any information about the update.ini format. Then i could check it for myself without making a extra project just for doing this.

[edit]
I readed the White paper. Parsing the update.ini should be makeable.

The idea about creating a new project and insert the update code of the existing setup project i also ok for me. But i tried it and had no success. Is there a example for doing that?
[edit]
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Automatic updates and UAC

Post by FrancescoT »

Dear User,

I am not quite sure if I follow your exact question.

If you are refering on how InstallAware keeps traks of updates available through "update.ini" file, it is quite easy.
Each update package available for a specific application version are stored after "[Update Packs for Versions]" entry.

The idea about creating a new project and insert the update code of the existing setup project i also ok for me. But i tried it and had no success. Is there a example for doing that?
A ready to use sample it is no available, but if you follow the previous reply and have a look at the "Using InstallAware to Deliver Web Updates" whitepaper, you should be able to do.
http://www.installaware.com/publication ... papers.htm

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Post Reply