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!

mccorkled
Posts: 23
Joined: Wed Feb 05, 2020 5:32 am

Edit XML File

Is there a way that I can have AI open and XML, add lines of text in alphabetical order, save, and close? I would also need it to remove those lines upon uninstall. This is a very important.

Thank you :)
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: Edit XML File

Hello,

Is the XML file in subject part of your installer (added in "Files and Folders" page), or is it supposed to already exist on the client machine?

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
mccorkled
Posts: 23
Joined: Wed Feb 05, 2020 5:32 am

Re: Edit XML File

It is part of the initial installer. I have a main base package, and add-on packages. I need to edit the XML from the initial package (after it is installed on the machine) to include lines that will allow the add-on packages to be visible once they are installed. I hope this makes sense.
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: Edit XML File

Hello,

Thank you for your followup on this.

Let's consider we have the following .XML file:

Code: Select all

<?xml version="1.0"?>

-<note>

<to>Tove</to>

<from>Jani</from>

<heading>Reminder</heading>

<body>Don't forget me this weekend!</body>

</note>
When adding the above (or any) .XML file in Advanced Installer, you are being asked if you want to add the file in Windows Installer format.
XML.png
XML.png (14.05 KiB) Viewed 5647 times

If you add the .XML file in Windows Installer format and then double click on it, you will be able to edit it.
Edit_one.png
Edit_one.png (18.57 KiB) Viewed 5647 times
Edit_two.png
Edit_two.png (21.73 KiB) Viewed 5647 times

Hope this helps.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
mccorkled
Posts: 23
Joined: Wed Feb 05, 2020 5:32 am

Re: Edit XML File

Thank you, I will give this a try.
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: Edit XML File

You are always welcome!

Please let me know if that helped.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
mccorkled
Posts: 23
Joined: Wed Feb 05, 2020 5:32 am

Re: Edit XML File

I believe that did the trick!

Thank you again for your help. By chance, are you one of the people that work on Newspaper X? I have seen several very familiar names here.
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: Edit XML File

Hello,

You are always welcome!

I am glad that helped.
By chance, are you one of the people that work on Newspaper X? I have seen several very familiar names here.
No, I am not working on Newspaper X. Most probably, just a name coincidence.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”