Reading a value from a file

I am evaluating Paquet Builder and have a question relating to custom actions.

I would like to read a value from a text file into a custom variable, the text file only contains a single line which is the full folder path of my installed application, so I just need to be able to read the value directly from the text file to know where to patch the application.

e.g. File content follows on 1 line:

C:\Program Files\XXX\ApplicationName\YYYYYY

Is this possible using custom actions or any other method?


Currently, it is possible to read data from .INI or XML file. So if you manage to modify your application to have a .INI format, you can try this one:

Otherwise, it’s a good suggestion, we’ll add the option to read lines from text files in next release of PB.