Upgrader shows me Modify Repair Remove Screen - 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!

kkkwj
Posts: 88
Joined: Thu Mar 01, 2007 10:45 pm

Upgrader shows me Modify Repair Remove Screen

Hi, I am trying to get the auto upgrader working with my app. I got the first Upgrade cycle to work properly, end to end, to upgrade the app on the destination computer.

But on the second upgrade (using the same Upgrade project, but with a different FileVersion for Main.exe), when the Check for Updates shortcut detects a new upgrade and downloads it, things start going wrong. The next thing I get is the Modify Repair Remove dialog. I expect to see the usual installing upgrade dialog.

The only thing I can think of is that I reuse the original Upgrade in the Upgrader project. I named that upgrade "Upgrade.110", but I changed the FileVersion test for Main.exe from 1.0.0.0 to 1.1.0.0 to 1.2.0.0 (1.2 is the one that showed the Modify Repair Remove dialog).

Here is the AIU file that was involved in the failure. (I'm guessing it is fine.)

;aiu;

[Update.110]
Name=Build Doctor
URL=http://site/user/MyProgram.msi
Size=2738176
MD5=983fc0973c7d3cb1f4329653002911a0
FilePath=[APPDIR]Main.exe
Version=1.2.0.0
Description=Ho Ho, v1.2.0.x.
Feature=It has updated help files.
Enhancement=This is an enhancement.
BugFix=And a bug fix.


Any ideas?
kkkwj
Posts: 88
Joined: Thu Mar 01, 2007 10:45 pm

In case it might help you, here is the procedure I use to generate my upgrades for my application (includes many files, and has a Main.exe). The following example shows what I did to upgrade from 1.1 to 1.2.

- in AssemblyInfo.cs for Main.exe, increment AssemblyFileVersion from 1.1.0.0 -> 1.2.0.0
- rebuilt the visual studio solution (now I have a "new" main.exe)
- now the application files are ready

- in AI Installer project,
- increment product version from 1.1.0 to 1.2.0
- built a new MSI file (presumably this has a new package code, but I can't tell)
- now the MSI file is ready (includes the CAB file inside the MSI)

- in AI Upgrades project,
- I use the same Update screens that I did for 1.1.0 (since my upgrades have no serial dependencies on each other; they replace the whole app)
- increment Expected File Version for Main.exe to 1.2.0.0 (by clicking on the "..." button, and pointing at the main.exe that I just built
- updated descriptive information on Description page
- rebuilt the Upgrades project to generate a new AIU file
- now the AIU file is ready to go

- FTP MyApp.msi and Upgrades.aiu to the webserver

The target computer correctly detects that a new upgrade is available, displays the correct descriptive info, downloads the new MSI, and then shows me the Modify/Repair/Remove dialog. (which suggests that some product code, product version code, file version, or package code is not being changed, I think.) But I don't know how to fix the problem.
kkkwj
Posts: 88
Joined: Thu Mar 01, 2007 10:45 pm

Further investigation (sigh) seems to reveal that when the auto upgrader downloads a new upgrade, it puts the MSI and AIU files in the following two places:

c:\docsettings\me\appdata\[Manufacturer][ProductName]\updates\Updates.AIU

c:\docsettings\me\appdata\[Manufacturer][ProductName]\updates\<myUpdateName>\MyApp.MSI

BUT .. the upgrader apparently will NOT overwrite the old MSI file (in my case, "updates\Update.110\MyApp.MSI") with the new upgraded MSI file. This means that when the upgrader tries to run the upgrade, it runs the OLD msi file, which is already installed, and so windows installer pops up the modify/repair/remove dialog.

This is not good. Here are suggestions for fixes:

(1) The AI help documentation should explain all this, just like I have done here. That way I would know that I MUST always use a new Upgrade name, even if there are no serial dependencies among my upgrades. That way I would also know that the Update name that I choose is used to generate a unique directory name on the installing computer.

(2) The AI help documentation should clearly tell me that I MUST always use a new update node in the project for successive upgrades, to avoid name collisions on the remote machine. The doc should clearly point out that the AI upgrader on the remote machine will NOT overwrite old MSI files.

Now I am off to try using the "New Update" method (properly.. :-)
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,
BUT .. the upgrader apparently will NOT overwrite the old MSI file (in my case, "updates\Update.110\MyApp.MSI") with the new upgraded MSI file. This means that when the upgrader tries to run the upgrade, it runs the OLD msi file, which is already installed, and so windows installer pops up the modify/repair/remove dialog.
In the "Updates Configuration" project the left tree represents the updates history. So it is very normal to create a new section for a new update since could be more available updates at a specific time (the section is unique for each update). I think the doc file are clear regarding this:
http://www.advancedinstaller.com/user-g ... ation.html

Regards,
Gigi
_____________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
kkkwj
Posts: 88
Joined: Thu Mar 01, 2007 10:45 pm

I agree that the doc talks about creating a new update section for each sucessive update. But it sure doesn't warn against trying to reuse the same one over again by changing versions. And it doesn't explain that the updater.exe program will not overwrite an existing MSI file.

So hopefully someone else can read about my experiences here in the forums, to find out why things behave the way they do.. :-)

Return to “Common Problems”