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!

Castit
Posts: 4
Joined: Thu Mar 12, 2015 4:26 pm

Browse for XML file to load

HI,

Still on a quest to find a way to pre-configure installer properties when the software is going to be installed on multiple computers.

I know I can read Property values from a known XML file, if it exists, but can I browse for an XML file and then parse it if found.

That way I can have the user browse to the XML file and load default values, or if not then they are prompted for them.

Or am I missing something obvious to be able to do this?

Bob
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Browse for XML file to load

Hi Bob and welcome to Advanced Installer forums,
I know I can read Property values from a known XML file, if it exists, but can I browse for an XML file and then parse it if found.
For this, you can create a XML Search operation in the Search page. For details, please take a look on the Creating an XML Search tutorial which will guide you step by step in the process of creating a valid and working XML custom search.

Also, I've attached a sample project which implements a similar scenario. During the fist time install, the user is prompted to enter some information.

To perform an upgrade the following steps need to be done:
  • increase the product version from the Product Details page;
  • generate a new ProductCode when prompted;
  • build the project;
  • run the installation package;
When running the upgraded version, the related fields will be filled automatically, so the user don't have to enter once again the related information.

Should there be any difficulty you encounter implementing something, please do not hesitate to contact me and I will gladly assist.

Best regards,
Dan
Attachments
Your Application.zip
(3.71 KiB) Downloaded 186 times
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”