agustinator
Posts: 5
Joined: Wed Sep 05, 2007 4:52 pm

Installer fails after installing

Hi,

I have an installer of my 1.0 version (.msi) and another installer for my 1.1 version (another .msi).

I can install my app from two installers and all runs fine.

But if I install my app from my 1.0 installer and update it with 1.1 installer (I'm using one update configuration projecte (updates file)), the process finalizes correctly (the update is done) but the downloading screen shows me an error saying that something wrong has happen with the installation.

I don't know what's hapenning, because the 1.1 version is installed correctly but it still shows me this error (I repeat it: the error appears in the downloading form, in the last step. The installer finalizes correctly).

Thanks in advance.
Agusti
Adriana
Posts: 28
Joined: Tue Aug 14, 2007 9:32 am
Location: Craiova
Contact: Website

Hi Agusti,

This is because you have not configured the condition for the "Installed Detection"
correctly in the Updates Configuration project. Make sure that:

1. You have specified a versioned file from your package in the "File" field. Usually
this is the main executable of your application:

[APPDIR]YourProgram.exe

2. Specify the new version of this file in the "Expected Value" field. That is, the
"Expected Value" field will contain the version of the file that will be installed by
the new version MSI. This version must be greater than the version of the file installed by the initial MSI.

Regards,
Adriana

_________________
Adriana Simion
Advanced Installer Team
http://www.advancedinstaller.com/
agustinator
Posts: 5
Joined: Wed Sep 05, 2007 4:52 pm

Hi Adriana,

all you say it is correct in my project.

I think I know what's the problem. Inside "Install Parameters" section, I set the application folder to [ProgramFilesFolder][Manufacturer]\[ProductName] [ProductVersion], but when the installer starts, it shows me the original version number.

The current msi is 1.0.2 version, but the path is ended with 1.0.0 in the installation folder screen.

I check the same but changing 1.0.2 by 1.0.0 and the process ends succesfully.

I want to install into a new folder (with version number as name).

What's worng in my project?

Thanks in advance,
Agusti
Adriana
Posts: 28
Joined: Tue Aug 14, 2007 9:32 am
Location: Craiova
Contact: Website

Hi Agusti,

The updater cannot use a file version for detection if the installation folder changes during an update. If you want to have the installation folder name to contain the version then you should have a registry value as a detection criteria.

If you want to install in a folder which has as a name the version use:
[ProgramFilesFolder][Manufacturer]\[ProductName] \[ProductVersion]

Regards,
Adriana
_________________
Adriana Simion
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”