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!

jahme
Posts: 2
Joined: Wed Feb 14, 2007 6:41 pm

some of the updates failed to update properly

Hi,
I'm having a problem with automatic updates. the updates download and go through the install procedure but at the end of the installation I get the error "some of the updates failed to update properly"

Below is my update.ini file

Code: Select all

;aiu;

[Update]
Name=Zibee
URL=http://www.jahme.plus.com/JN-SW-4026-SDKwithIDE-1v1_patch.msp
Size=95744
MD5=ebfb5fd3b50d10ccc8e1dd7cd97d32a9
RegistryKey=HKLM\SOFTWARE\Jennic\Version\version
Version=1.1.0
Description=test Zigbee
I've tried to update with both a .msp file and a .msi file as well as searching for a Registry Key and a File. Not sure if the problem lies in my .ini file.

Hope you can help.[/quote]
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

Please make sure that the update file (.msp or .msi) updates that registry key to "1.1.0" value. "RegistryKey + Version" represents the installed condition. Advanced Updater verifies this condition first to see if the update is already installed or not and after installation to see is the update was installed correctly.

Let me know if the problem persist.

Best Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
jahme
Posts: 2
Joined: Wed Feb 14, 2007 6:41 pm

OK my .MSP installer should update a registry key and add a folder as part of a new organisational unit that is not present within the original installer (pre update install). neither of these get installed (I'm not sure if this is because the condition is not getting met at the end of the install.)
Also the Reg Key is now this

Code: Select all

RegistryKey=HKLM\SOFTWARE\Jennic\version 
version has an integer value assigned of 1.1
When you say "Please make sure that the update file (.msp or .msi) updates that registry key to "1.1.0" value" is this done when you change the version no. within AI project file and generate a new product code?


Thanks for your reply.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,
When you say "Please make sure that the update file (.msp or .msi) updates that registry key to "1.1.0" value" is this done when you change the version no. within AI project file and generate a new product code?
No, you need to have that registry key in the AI "Registry" page and change it with each update, let me explain step by step:

1. When the AI Updater is checking for updates is looking for the "HKLM\SOFTWARE\Jennic\Version\version" registry value to see if it's equal with "1.1.0". If not (the update is not already installed) the Updater will download and install the update.
2. After the update installation AI Updater is looking again for the "HKLM\SOFTWARE\Jennic\Version\version" registry value to see if it's equal with "1.1.0". If not it means that the update was not installed properly (this is the behavior you get).

So your patch must update "HKLM\SOFTWARE\Jennic\Version\version" value to "1.1.0". This can be done in the "Registry" page.

Let me know if it's something that you don't understand.

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

Gigi,

Does this same algorithm apply to upgrades that check for file versions? That is, does AIP:

1. Check existing file version of App.exe to see if it is 1.1.0.x (if not, the update is installed.)
2. After the update, API checks to ensure the new App.exe file version is 1.1.0.x (if not then print the error message).

If this is true, it means that I should be changing my App.exe file version to 1.1.0.x in the Assembly file before compiling it for the msi package, right?
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,
If this is true, it means that I should be changing my App.exe file version to 1.1.0.x in the Assembly file before compiling it for the msi package, right?
Yes, you need to change (increase) the version file with each upgrade.

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”