How the update process knows current client version

Got a problem you cannot solve? Try here.
Post Reply
prasanth.nair
Posts: 15
Joined: Mon Feb 21, 2011 1:09 pm

How the update process knows current client version

Post by prasanth.nair »

Hi,

I am creating a new update pack for my installer as in the help file. I am curious to know how the update process finds the current version of app installed on client machine.


Thanks
Prasanth Nair
giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: How the update process knows current client version

Post by giaviv »

Dear Prasanth,

The update process reads the current version from the following registry path: HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{ProductCode}\Version.
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
prasanth.nair
Posts: 15
Joined: Mon Feb 21, 2011 1:09 pm

Re: How the update process knows current client version

Post by prasanth.nair »

Is this in MSI Code ?
giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: How the update process knows current client version

Post by giaviv »

No, its a part of the InstallAware engine that is not exposed in the MSIcode.
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
prasanth.nair
Posts: 15
Joined: Mon Feb 21, 2011 1:09 pm

Re: How the update process knows current client version

Post by prasanth.nair »

I am trying to create a shortcut using the below code.

Create Shortcut $STARTUPDIR$\ to $TARGETDIOR$\_ClientEgents\Atlas.WindowsAgent.exe

Here is error message :

Error during build: Unable to compile MSI action create/advertised shortcut.

Any idea about this ?
bokkie
Posts: 767
Joined: Sun Feb 08, 2009 6:30 am

Re: How the update process knows current client version

Post by bokkie »

prasanth.nair wrote:I am trying to create a shortcut using the below code.

Create Shortcut $STARTUPDIR$\ to $TARGETDIOR$\_ClientEgents\Atlas.WindowsAgent.exe

Here is error message :

Error during build: Unable to compile MSI action create/advertised shortcut.

Any idea about this ?
Perhaps it was a copy and paste error but did you mean TARGETDIR and not TARGETDIOR?
Peter. Smartly dressed, he still resembles an unmade bed.
InstallAware MVP
prasanth.nair
Posts: 15
Joined: Mon Feb 21, 2011 1:09 pm

Re: How the update process knows current client version

Post by prasanth.nair »

Figured out.I didnt provide the Link Name. Thanks again...
giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: How the update process knows current client version

Post by giaviv »

Great! Good luck :)
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
prasanth.nair
Posts: 15
Joined: Mon Feb 21, 2011 1:09 pm

Re: How the update process knows current client version

Post by prasanth.nair »

I need to add the app in start up for all users and it has to check for updates when ever I start the app. I dont want to use the scheduled tasks for updates.changed the project properties to Manual update checking and following the same steps provided with http://www.installaware.com/blog/?p=12
I can not see the short cut in all users folder and also in my start up folder.
giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: How the update process knows current client version

Post by giaviv »

Dear prasanth.nair,

Please follow up on your other thread - thanks.
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: How the update process knows current client version

Post by giaviv »

Dear Prasanth,

I have been advised that I was mistaken - the values you were asking about before are hard-coded into the installation binary, and is not read from the registry.
Aviv Giladi
InstallAware Software

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