updater.exe disappears after update - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

iastor
Posts: 2
Joined: Thu Mar 06, 2008 7:40 pm

updater.exe disappears after update

Hey guys,

Using the tutorials and user guide, I've added the auto-update feature to my installer packages. The problem I'm having is that the updater.exe and updater.ini files disappear from the installation directory after an upgrade is performed. If I use "Add/Remove Programs" to 'repair' the installation, they come back.

Steps to reproduce:
  • 1. Create and install MyProgram-1.0.0.msi package:
    • * this has a shortcut in the start menu called "Check for updates" which calls "updater.exe /checknow"
      * updater.exe and updater.ini exist in the Program Files folder after installation.
      * "Add/Remove Programs" reports that the 1.0.0 version is installed.
    2. Run the "Check for updates" shortcut.
    • * The updater.exe finds and installs the MyProgram-1.0.1.msi package.
    3. Check installation after update is complete.
    • * updater.exe and updater.ini are no longer in the Program files folder.
      * The "Check for updates" shortcut is missing from the start menu
      * "Add/Remove Programs" reports the current installed version is 1.0.1
    4. Use "Add/Remove Programs" repair feature.
    • * The updater.exe and updater.ini files are now found in the Program files folder.
      * The shortcut is back on the start menu.
      * "Add/Remove Programs" reports the current installed version is 1.0.1
I'm using Advanced Installer 6.2 Professional to create these msi packages. What am I missing here?

Joe
ciprian
Posts: 259
Joined: Thu Jul 14, 2005 12:56 pm
Location: Craiova, Romania
Contact: Website

Hi Joe,

This behavior is caused by a Windows Installer bug which sometimes manifests during an upgrade. Here is a workaround:

Go to the "Files and Folders" view, and select the updater.exe file. From its context menu choose the "Properties" option.

In the displayed dialog select the "Version" tab. Enable the "Ensure that this file overwrites any installed target file" option.

Please let me know if this solvers the problem.

Best regards,
Ciprian
Ciprian Burca
Advanced Installer Team
http://www.advancedinstaller.com
iastor
Posts: 2
Joined: Thu Mar 06, 2008 7:40 pm

Hi Ciprian,

That works very well. Thank you for your assistance.

Joe
j.msr
Posts: 6
Joined: Tue Jul 08, 2008 10:43 am

Re: updater.exe disappears after update

Hi,

I have this issue too, but its not only the updater.exe that disappears, at least one of my dll files (changed but version did not) goes away too.
After running a repair anything is fine. Setting all the files to "Ensure that this file overwrites any installed target file" solves this but brings up a install dialog on the first application start with two windows event entries saying: (translated by me)

Code: Select all

Detection of product "{96927845-E304-4D59-A259-BD7C970EBE31}", function "SIP" and component "{303994BA-6487-47AE-AF1D-7AF6088EEBDB}" failed. The resource "" is not available.
and

Code: Select all

Detection of product "{96927845-E304-4D59-A259-BD7C970EBE31}" and function "SIP" failed when requesting component "{22056900-C842-11D1-A0DD-00A0C9054277}".
I would be more satisfied when I do not have to use "Ensure that this file overwrites any installed target file".

I can send you the two install packages (each ~80MB) and the AI project if you need it.

-archy
Ionut
Posts: 605
Joined: Tue Nov 22, 2005 11:29 am
Contact: Website

Re: updater.exe disappears after update

Hi Archy,

Please send the AIP file to support at advancedinstaller dot com in order to investigate the cause of the on-demand installation.

If the Installation Type is per-machine, it should not install files in per-user locations, such as "My Documents" and "Application Data". This is a possible reason for the on-demand installation performed by Windows Installer.

Regards,
Ionut
Denis Toma
Advanced Installer Team
http://www.advancedinstaller.com/
j.msr
Posts: 6
Joined: Tue Jul 08, 2008 10:43 am

Re: updater.exe disappears after update

Hey,

okay I found the component that did the on-demand setup. Wasn't AIs' fault, I have send you the informations by email.

Back to the problem with the vanishing files:
As far as I see the missing dlls have changed but the version number did not. They get removed in the uninstall process (because the files changed?) and not reinstalled in the install process (because the versions are the same?). Either the original ones must not be deleted or the new one must be installed but removing both is bad.
Setting the files to "Ensure override" naturally solves this problem but is not the ideal solution.

regards,
julian
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: updater.exe disappears after update

Hi Julian,

We investigated the test case you provided and this behavior is caused by a known Windows Installer bug. Basically, here is what happens:
- the presence of the assemblies in the package on the target machine is evaluated during the "CostFinalize" standard action
- the assemblies in the old package are removed during the "RemoveExistingProducts" standard action
- since "CostFinalize" comes before "RemoveExistingProducts", the assemblies are seen as installed (the new package will not install them)
- when "RemoveExistingProducts" runs, it removes the assemblies
- after the upgrade, the advertised shortcut detects the missing assemblies and installs them

The solution is to edit the MSI with Orca in order to modify the sequence of "RemoveExistingProducts". This can be done in the "InstallExecuteSequence" table by modifying the "Sequence" column. For example, you can set the sequence to a value which would position "RemoveExistingProducts" above "CostInitialize".
Setting the files to "Ensure override" naturally solves this problem but is not the ideal solution.
This is the usual workaround for files in your project. When this option is enabled, the assemblies in the upgraded package are seen as newer than the ones already installed. Therefore, the assemblies in the upgraded package are marked for installation.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”