Two versions of xml file - 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!

T72
Posts: 2
Joined: Fri Dec 17, 2010 8:47 am

Two versions of xml file

Hi,
I have two web.config files. One in folder A and one in folder B which is in folder A and has set option "install folder content into the parent folder". This works fine. But when i import xml file (the same - i want to change connections string) i get an error on instalation progress. Error says nothing, EventViewer also. How can I change two different versions of XML files in two different ways depend on some condition?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Two versions of xml file

Hi,
But when i import xml file (the same - i want to change connections string) i get an error on instalation progress. Error says nothing, EventViewer also.
Can you please send us the .AIP (project) file you are using and a verbose log of the installation to support at advancedinstaller dot com so we can investigate them?
How can I change two different versions of XML files in two different ways depend on some condition?
I'm not sure I understand what you need to do. Can you please give me more details? Are you trying to update a single XML file or more? Also, what is the difference between the two possible updates (what exactly is being updated)?

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
T72
Posts: 2
Joined: Fri Dec 17, 2010 8:47 am

Re: Two versions of xml file

I solve my problem but not i the right way... not eee proffesional. I have problems to write in english.
So... When i have to change something in xml file (eg. web.config) I add it as a simple file, as other files, and then I import the same file as an XML file. I delete all nodes without this which I have to modify. It's works. I know that I can only import an XML file and exclude this web.config file. But now, I have two different web.config files. Totaly different. And i want to install one of them based on a condition. So I can import XML file to my folder A. It's work, now i have to create folder B which which has set option "install folder content into the parent folder". I import in to it my second web.config file. But i must have it in other component because i have to set condition. But this imported XML file cannot be as a single file in component. So.... I added empty txt file, create new component with condition and move my second web.config file into it....
Ufff i don't know if you understand me...
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Two versions of xml file

Hi,

This is a correct approach. Please note that instead of a dummy text file you can use a registry entry.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”