Ignore user input for maintenance - 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!

GlennWilson
Posts: 33
Joined: Wed Sep 01, 2010 2:22 pm

Ignore user input for maintenance

Hi,

I've created an Installer (Enterprise) setup project using Advanced Installer 7.7. My goal is to create an installer when run for the first time takes values from a user and writes them to a configuration file. But all updates must run in quiet mode therefore removing the need for user input. I've managed the first part - that is, I can collect values from users during the install process and write the values to the configuration file. But the second part is giving me grief. How do I run the installer so that it doesn't update the configuration file during an update of the software (Maintenace and Patches)?

I've tried removing the dialog, which collects the data, from the Maintenance and Patch sequence. But I also need to stop the installation from trying to update the configuration file otherwise installation fails as the properties no longer exist.

The configuration file is a well-formatted xml document, and I am using the xml editor in the Files and Folders section to pass the value to the document. I am only updating this file, not creating it during the installation process.

Can anyone put me on the the right track please.

Glenn
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Ignore user input for maintenance

Hi Glenn,

What you need is to preserve user data.
Please refer to the following thread that discusses the issue:
http://www.advancedinstaller.com/forums ... rve#p31565

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
GlennWilson
Posts: 33
Joined: Wed Sep 01, 2010 2:22 pm

Re: Ignore user input for maintenance

Thank you Gabriel.

I need to take this a step further than just preserving the configuration file. The configuration file can change between updates (new static values are often added). So when I run the update, I need to persist the values the user originally entered, but in an update configuration file. My approach was to store the values entered by the user during the first install, into an INI file. Then use these values to update the new configuration file. Is this possible?

Glenn

Return to “Common Problems”