Text File Update on Existing File? - Advanced Installer Community
nickrsan
Posts: 3
Joined: Mon Nov 10, 2014 9:12 pm

Text File Update on Existing File?

Hi,

I'd like to create a text file update for a file that I'm not including as part of my installation. In short, there's a small bug in a specific version of Python that this application relies on and I'd like to patch the file in the Python folder, but not include my own copy (in case they're on a different subversion). I know the path of the file (or can reliably find it with a Search). Can I specify an existing file on disk to modify in a text file update, or do all files that a text file update can operate on need to be included as part of my installer. Thanks for your help!
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Text File Update on Existing File?

Hello and welcome to Advanced Installer forums,

Yes, you can update a file from the computer using the text file update.

In order to achieve that, you can follow these steps:
  • create a property in the Install parameters page. (e.g. FILE_PATH with a valid value e.g. C:\)
  • in the Files and Folders page, create a property based folder
  • in this new created folder, create your text file update operation
In order to set the value of the property used for the property based folder, you can use our predefined Set installer property custom action.

You can set the property with the value of the property assigned to the search operation. e.g.
Property: FILE_PATH
Value: [SEARCH_OPERATION_NAME]

Please let me know if that helped.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
nickrsan
Posts: 3
Joined: Mon Nov 10, 2014 9:12 pm

Re: Text File Update on Existing File?

Hi Dan,

That's very helpful - I wasn't certain if property-based folders would be created or if they could be existing, so that clarification is helpful. I'll give that a try now and see if I can do what I need to do. Thanks!
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Text File Update on Existing File?

You're welcome,

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

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”