This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallAnywhere
- :
- InstallAnywhere Forum
- :
- Re: A question about "Add Files"
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 16, 2013
07:36 AM
A question about "Add Files"
When I click "Add Files" in "Install" task, A "Add Files to Project" window will apprear to select the files to be added. After selecting files or directories, a list or files will be added in "Visual Tree".
But that doesn't satisfy my request. What can I do if the location of files hasn't been decided when I start to add files? I mean the location will be dynamically decided when building the installer. In other words, the files to be added may be in a variable location ${Source_File_Root}. I hope Install Anywhere should know where to get all the files when building. But how can I use ${Source_File_Root} when "Add Files"? I don't want to just add files from some directories in local disk of my desktop.
Do I have to use custom action or custom code?
Thanks.
But that doesn't satisfy my request. What can I do if the location of files hasn't been decided when I start to add files? I mean the location will be dynamically decided when building the installer. In other words, the files to be added may be in a variable location ${Source_File_Root}. I hope Install Anywhere should know where to get all the files when building. But how can I use ${Source_File_Root} when "Add Files"? I don't want to just add files from some directories in local disk of my desktop.
Do I have to use custom action or custom code?
Thanks.
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 17, 2013
01:55 AM
Hi,
you can use custom code to add files from variable location and execute this code using "Execute Custom Code" action which will add files dynamically. Other ways can use General IA actons "Copy Folder Action" or "Copy File Action" which will add files or folder while building the installer.
Thanks
you can use custom code to add files from variable location and execute this code using "Execute Custom Code" action which will add files dynamically. Other ways can use General IA actons "Copy Folder Action" or "Copy File Action" which will add files or folder while building the installer.
Thanks
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 21, 2013
05:44 AM
kshirabdhi wrote:
Hi,
you can use custom code to add files from variable location and execute this code using "Execute Custom Code" action which will add files dynamically. Other ways can use General IA actons "Copy Folder Action" or "Copy File Action" which will add files or folder while building the installer.
Thanks
Thank you Kshirabdhi,
For "Execute Custom code"or "Copy Folder action", I think they will be executed when the installer is launching, and they will copy folders on target machine ( the installer is running on ). right?
My question is how to dynamically add or put source files from variable locations into the installer when building it.
![](/skins/images/8CE4FAD0DE6F3A6F9D0567434D2D2DAE/responsive_peak/images/icon_anonymous_message.png)