Dynamically replace text in files based on property values. - 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!

faysal
Posts: 1
Joined: Mon Jan 31, 2011 11:46 am

Dynamically replace text in files based on property values.

We have some files in our installation package that needs to be modified when being copied to the target machine. Like we have an xml file that contains the IP address of target machine. This IP address is fetched using a script during installation and needs to be replaced with certain tag in xml file. Is it possible with advanced installer?
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Dynamically replace text in files based on property values.

Hello and welcome to the Advanced Installer Forums,

Yes, it is possible. You can use a public property( uppercase letters ) to edit your XML file. Here is the tutorial that can help you.

Please let me know if you have any questions.

Regards,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”