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!

Phobos
Posts: 85
Joined: Fri Sep 08, 2006 11:52 am
Location: Germany

Error when upgrading

Hi,

When upgrading my application I get following error:

Image

The file does exist, but gets removed before the error occurs. Is there any way to stop this message from appearing?

Thanks!
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

In order to investigate this problem please send the AIP file (if not contain any confidential informations) or a small similar test case reproducing this issue to support at advancedinstaller dot com.

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
Phobos
Posts: 85
Joined: Fri Sep 08, 2006 11:52 am
Location: Germany

Hi Gigi,

I am not able to create a test case reproducing this issue, as I do not know why this happens. Let me try to explain what I did. In the last release of my product I put about 10 files into a temp folder. When I installed it those files were installed into the temp folder but removed once the installation has finished.
Now I created a new version of my product which contains the same files. When I now try to upgrade the old version, I can see that the temp files are put into the temp folder again, then they get removed, and the error appears. When I click OK the new installation continues and works fine.

When I manually uninstall the old version I do not get this message, installing the new version on a clean machine with no previous version installed works also fine, so this only happens when upgrading.

Is there anything I could do? Maybe I did something wrong when I created the older version of the product, but I do not have the .aip file anymore.
Can I enable logging somehow, and would such a logfile help?
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

We have managed to reproduce this behavior. The problem is that on upgrade the temporary file is removed (by the older version) before the file gets executed (with a custom action).

To avoid this behavior you need to specify a condition in the "Edit Temporary File" dialog like this (NOT UPGRADINGPRODUCTCODE). This condition is evaluated when the temp file is extracted or removed.

http://www.advancedinstaller.com/user-g ... ialog.html

Regards,
Gigi
_______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
Phobos
Posts: 85
Joined: Fri Sep 08, 2006 11:52 am
Location: Germany

Hi Gigi,

Thank you for your reply, but this is something I should have done in the old version, which is already installed?
If this is the case then I won't be able to stop this message from appearing...

Thanks!

Return to “Common Problems”