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!

cpinstall
Posts: 19
Joined: Thu Jun 08, 2006 4:00 pm

unzip file update error

In my update.ini file, I've have my URL pointing to a .exe file that is a self-extracting zip file. The updater downloads the file and executes and extracts it properly, but it reports back that the update has failed.

Is this an improper use of the updater? I'd like the updater to download a self extracting zip file and unzip it into the directory.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

Every update must have a detection condition which is used also to verify if the update was installed properly. Probably you don't have such a condition and that's why the updater it reports back an error. Also please tell me where the archive is unzipped? Must be unzipped in your application folder not in the folder where the updates are downloaded.

Also this link could be helpful:
http://www.advancedinstaller.com/user-g ... ation.html

Regards,
Gigi
_________________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
cpinstall
Posts: 19
Joined: Thu Jun 08, 2006 4:00 pm

Yes, it is being unzipped inside my application folder as expected.

This is my .ini file:

;aiu;

[app0.9.9]
Name = Update 0.9.9
URL = http://www.xxx.com/download/self-extracting-zip.exe
Size = 65375
Description = This is the latest version of MyEditor
Feature = Support for other file types
Feature1 = Support for different encodings
BugFix = Fix bug with file open
BugFix1 = Fix crash when opening large files
BugFix2 = Fix bug with search in file feature
RegistryKey = HKLM\Software\company\app\Version
Version = 0.9.9

I'm not sure how to put in a condition to detect if the update has succeeded. I didn't see anything in that page you referred to. I know the RegistryKey and Version is a condition to detect if the update is NEEDED.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

Note that under the "HKLM\Software\company\app\Version" you must have a value which specifies a version to compare with using the Version key. With this approach your application must be capable to write that value in the registry. However I suggest you to use FilePath as detection mechanism instead of RegistryKey.

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

Return to “Common Problems”