Hello,
I've been getting to grips with Advanced Installer over the last few days and the design and overall intuitiveness of the software is impressive - thank you!
However, I'm finding the procedure to read data from a text file more of a challenge. Specifically, I want to check an existing *.cfg file in a known location for a custom installation path written by a executable command line switch argument. Unfortunately it seems a more conventional registry search to find this information won't be suitable for the project in question.
As far I can see, I need to:
1. Use a file search custom action to store the path of the *.cfg file in a property.
2. Use a second custom action to launch the file, execute some VBScript to read its contents, and store the relevant line in another property.
It's the second part I'm having trouble with, so any pointers or suggestion would be much appreciated.
To provide a bit more context, the *.cfg file has a structure something like this...
Title=Another Add-On
Path=C:\Users\Nick\Documents\Another folder
Title=My Add-On
Path=F:\My Add-On\My Folder
Title=A Different Add-On
Path=C:\Program Files (x86)\A Different Folder
...In which case I'd need to search for the string "My Add-On" and the parse the line below to extract the file path.
Many thanks,
Nick
FOLLOW US
Get the latest news in Application Packaging