sbaird
Posts: 57
Joined: Tue Sep 01, 2015 2:08 pm

Condition on "Extract Archive" operation causes install to fail

I am using "Extract Archive" to extract some .zip files during the install. I have noticed that the files are being re-extracted unnecessarily during maintenance mode (modify, not repair). To attempt to prevent this, I tried adding a condition to the "Extract Archive" operations, but any condition that evaluates to false causes the install to fail and roll back. This also happens on the initial install if the condition is false. This is easy to replicate with a test project. Looking at the log, it looks like there are other AI custom actions related to extraction which are running even though the condition is false.

(I just want to note also that I have another unresolved issue regarding a .zip file in this post: http://www.advancedinstaller.com/forums ... =2&t=31770)
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Condition on "Extract Archive" operation causes install to fail

Hello,

Indeed, this happens due to an Advanced Installer issue. A fix will be available in a future version of Advanced Installer, thank you for bringing it to our attention. We will notify you as soon as the fix will be out.

Until then, as a workaround, you can go to "Table Editor page -> InstallExecuteSequence table -> AI_ExpandArchInstall action row" and add in its "Condition" column the condition you used on your extract archive operation:

Code: Select all

(VersionNT >= 501) AND (REMOVE <> "ALL") AND (<your extract operation condition>)
In case you have more than one extract archive operation, then you should use forthe "AI_ExpandArchInstall" action a condition like this:

Code: Select all

(VersionNT >= 501) AND (REMOVE <> "ALL") AND (<fisrt extract operation condition> OR <second extract operation condition>)
(I just want to note also that I have another unresolved issue regarding a .zip file in this post: http://www.advancedinstaller.com/forums ... =2&t=31770)
We apologize for this inconvenience. We were a bit busy lately and your ticket was postponed. We'll try to get back to you on the related thread as soon as possible. Thank you for your patience and understanding.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sbaird
Posts: 57
Joined: Tue Sep 01, 2015 2:08 pm

Re: Condition on "Extract Archive" operation causes install to fail

That worked! Thanks for your help, as always!
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Condition on "Extract Archive" operation causes install to fail

You're always welcome.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: Condition on "Extract Archive" operation causes install to fail

Hello,

This was fixed in version 13.0 of Advanced Installer released on June 2nd, 2016.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”