witekgb
Posts: 3
Joined: Tue Apr 23, 2019 8:36 pm

My updater does not work - please help

I am trying up update my test software and while it can update during an initial install, it will not update if I click on the updater - I use the "a file version search" option to check for the software version.

Here is the update.txt file on the webserver:

Code: Select all

;aiu;

[Company]
Name = Company Program
ProductVersion = 1.7.9
URL = http://hq-app6:8080/1-7-9-Installer.exe
Size = 98015046
MD5 = c2ec023b94d4d630ed1f6ead2f7556c1
ServerFileName = 1-7-9-Installer.exe
Flags = Sys64|NoCache
FilePath = [ProgramFilesFolder][Company]\[SC]\Updater.exe
Version = 1.7.8
UpdatedApplications = Company Program[1.0-1.7.8)
Description = This is a test Description
Feature = This is a test Feature
Enhancement = This is a test Enhancement
BugFix = Test Bug Fixes
Here is the updater.ini file:

Code: Select all

[General]
AppDir=C:\Program Files (x86)\Company\SC
ID={1C64BBCB-7987-45E7-8252-41E1003E4F7D}
ApplicationName=Company Program
CompanyName=Company
ApplicationVersion=1.7.8
DefaultCommandLine=/checknow
CheckFrequency=2
DownloadsFolder=C:\ProgramData\Company\SC\updates\
Flags=PerMachine|ShowConfigOptionsButton
URL=http://hq-app6:8080/installer-update.txt
The updater checks its own version to see if it need to update the software or not. According to my computer the "Product Version" is 1.7.8. The "File version" is: 1.7.8.0

Any help is appreciated.
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: My updater does not work - please help

Hello,

Please note that your "File Path" field (currently set to [ProgramFilesFolder][Company]\[SC]\Updater.exe) is incorrectly configured. The "File Path" field can contain only the following references:
  1. [APPDIR] - The default path where the application is installed. This detection criteria might fail if the user will change the install default location.
  2. Environment Variables - Enclose the environment variable name in "%".
  3. ProductCode and ComponentId - If the update is an MSI file, you can use the component ID associate with a resource to detect whether if the resource is installed. The string should have the following format: [{ProductCodeGUID}{ComponentIdGUID}].
    Example: [{A1D0B7F7-12EE-4CCC-97DC-3F045B47523E}{D87552E1-C3AF-401D-83ED-00C73207A336}]
Thus you could make sure that the exe file (i.e. Updater.exe) whose version you want to check is added in "Application Folder" directory from "Files and Folders" page of your setup project and then use a "File Path" field configured like this:

Code: Select all

[APPDIR]Updater.exe
Hope this helped.

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

Return to “Building Installers”