Edit XML File Action Only During Maintenance Mode? - Advanced Installer Community

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!

sjeslis
Posts: 308
Joined: Mon Aug 22, 2011 11:40 pm
Contact: Website

Edit XML File Action Only During Maintenance Mode?

Is is possible to perform a Edit XML File "action"(?) only during Maintenance Mode?

My initial guess is to associate the Edit XML properties file in a component that has an install condition on it to only running during maintenance mode (e.g. AI_MAINT =?).

Was hoping someone would know this was possible before I make the changes in my install.
Scott Jeslis
Senior Software Engineer
Cicero, Inc.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Edit XML File Action Only During Maintenance Mode?

Hello,

In order to achieve what you want you can proceed like this:
- Go to "Table Editor" page and select the "InstallExecuteSequence" table.
- Set the following condition for "AI_XmlInstall" custom action:

Code: Select all

( Installed AND REMOVE <> "ALL" AND AI_INSTALL_MODE <> "Remove" )
- Build and run your project.

Please note that in this way all XML files within your project which are not added as regular files will be installed only during maintenance mode.

Also, please keep in mind that our "Table Editor" feature is available only in an "Enterprise" or higher project type.

Let us know if this helped, otherwise please give us more details about your scenario.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sjeslis
Posts: 308
Joined: Mon Aug 22, 2011 11:40 pm
Contact: Website

Re: Edit XML File Action Only During Maintenance Mode?

It's unfortunately not feasible for us to alter the behavior of all "Edit XML File" actions within this particular merge module project.

While the project in question doesn't have any other "Edit XML File" actions today I do want to convert from using my C# CA to "Edit XML File" actions now that Advanced Installer supports it for Merge Modules.
Scott Jeslis
Senior Software Engineer
Cicero, Inc.

Return to “Common Problems”