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!

TheRocket
Posts: 45
Joined: Thu Jul 26, 2012 6:55 pm

Extract Zip then Update XML

Hi Advanced installer team!

I'm working towards deploying web sites with Advanced installer.
The website is in a zip file with the web.config (xml) file inside the zip.
During installation, I want to Extract the zip in a folder, and update the XML file with configuration asked during the setup.

With version 14.4.2, it seems the XML update event occurs before the Zip extraction, thus I'm missing the expected XML configuration.
My suspicion was confirmed by the installation logs files, where xml is updated before unzip.

I created a quick new project with version 15.8, and the table "InstallExecuteSequence" seems to also execute the "AI_XmlInstall" operations before the "AI_ExpandArchInstall" operation.

Is there special configurations to do, to be able to update an XML file after it got extracted?

I guess I can workaround by not zipping the web.config file, and installing it directly then the XML update will work. But I want to validate this with you first.

Thanks!
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: Extract Zip then Update XML

Hello,

Indeed, I have tested this and you are right. It seems that the XML Update happens before the extraction operation takes place. However, this can be changed by modifying the "AI_ExmpandArchInstall" action sequence (lowering it to the point where its sequence number is smaller than the sequence number of the XML Update operation), so this action will be executed before the XML Update.

To do so, simply go to "Table Editor" page --> "InstallExecuteSequence" --> modify the "AI_ExpandArchInstall" action sequence number.

Important:: Please be aware that this number should be unique.

Hope this helps.

All the best,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
TheRocket
Posts: 45
Joined: Thu Jul 26, 2012 6:55 pm

Re: Extract Zip then Update XML

Thanks Catalin!

This works beautifully!
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: Extract Zip then Update XML

You are always welcome.

Glad I could help.

All the best,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”