How do I refer an xml-file using the File-properties? - 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!

holbech
Posts: 3
Joined: Fri Apr 04, 2008 7:35 am

How do I refer an xml-file using the File-properties?

I am trying to create an installer for one of our products, and this product relies on an xml-file with settings (say, A.xml). I need to alter A.xml during installation, which was pretty easy. However, our product needs to be told where to find A.xml and the name of A.xml. This information is supposed to go into a register key. But when I click the "File..." button in the "Edit Registry Entry" dialog, I cannot see the xml-file. Is it impossible to refer to the name/path of xml-files as properties?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: How do I refer an xml-file using the File-properties?

Hi,
But when I click the "File..." button in the "Edit Registry Entry" dialog, I cannot see the xml-file.
Note that the "File" button in the "Edit Registry Entry" dialogs allows you to reference a file which will be written in the File table. Since the information in an XML file is written in the AI_XmlFIle table, you cannot reference a XML file in a registry value.

If you need to write the path of an XML in the registry you need to specify it in the "Data" field. For example, if the A.xml file is in "Application Folder" then the "Data" field can be set to:

Code: Select all

[APPDIR]A.xml
Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”