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!

Livesey
Posts: 12
Joined: Tue Apr 25, 2006 11:30 am

Update failure

Hi

I am using Advanced Installer for a Java application that we are developing. I'm testing the first update for this application and have run into a problem. I've searched this forum, but can't seem to find what I'm looking for.

I currently compare registry values and if they don't match, then update. The problem comes in after the update has completed. I get the Windows screen saying that the update has successfully completed, but when I click ok, I get the Advanced Installer screen saying that the update failed because of an unexpected error.

The update appears to have gone through, but I get Java errors when I try to launch the application. It is definately not the Java App which is the problem, as installing directly from the msi installation package doesn't cause any errors.

Any help or pointers would be greatly appreciated.

Thanks,
Aubrey

PS. This is my update.ini file:
;aiu;

[app 0.5.261]
Name = App 0.5.261
Description = Test update for App
Feature = Feature description
BugFix = Bug fix description
Enhancement = Feature enhancement description
URL = http://www.app.com/app_05261.msi
Size = 7181312
RegistryKey = HKLM\SOFTWARE\JavaSoft\Prefs\com\AppManufacturer\App\prefs\Version
Version = >= 0.5.261

I've replaced the actual application data with dummy data.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

That condition in your ini file is the condition to inform the updater that the update is already installed.

Your update package must change that registry value with the new version of your package. After the update package is installed then the AI Updater tool check again that registry value to see if the update was installed properly. So please check if your update package updates that registry value.

Also you can use the FilePath with version check as detection mechanism instead of RegistryKey.

For more help please take a look here:
http://www.advancedinstaller.com/user-g ... ation.html

Regards,
Gigi
________________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
Livesey
Posts: 12
Joined: Tue Apr 25, 2006 11:30 am

Thanks

Thanks for the help. I got it to work using the registry value.

Return to “Common Problems”