milanche
Posts: 14
Joined: Mon Sep 10, 2012 5:41 pm

Read path from text file and copy file there

Hello

is it possible to read .txt or .ini file that will contain just one line with text, that will be some folder name.
I need to get that line value, and then to copy one installation file to that folder with same name.

Is something like that possible?

Thanks
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Read path from text file and copy file there

Hello,

I'm afraid we don't have a predefined functionality for this. However, you can use a custom action in order to achieve what you want (e.g. you can create your own custom action which will read from file and store the result in a property (e.g. MY_PROP)). Also, the custom action should be added before "Paths Resolution" action group. Then, you can create in "Files and Folders" page a property based folder using MY_PROP property.

You can take a look on our "How could I read an "external" .INI file?" which may be helpful for you.

Also, if you want you can set the related path in an XML file and use our "XML Search" Enterprise feature.

Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”