cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
eallwood
Level 3

Dynamic File Linking - taking just the files without their subdirectories

Using IS express and not having the ability to use path variables, I've tried using dynamic file linking to get some specific file from a project folder that might end up changing paths. I have the [INSTALLDIR] dynamically linked to the main folder of the project with the inclusions simply being a list of the filenames I want, which are sorted into several subdirectories.

 

The issue is that the dynamic file includes all of the many empty subdirectories I don't care about and the files that I've included are all deeply hidden in their folders.

 

What I'd like is a way to have all the included files in the dynamic file link to be sent to the [INSTALLDIR], ignoring what subdirectory of the linked folder they came from so that it is just a folder of the selected files with no subdirectories. Is something like this possible using just one dynamic file link to the upper folder? Or is there a better way to do this without dynamic file links, keeping in mind I don't have access to path variables in express? Any suggestions appreciated.

 

Here's an example of what I mean in case it is still unclear:

I have this "Folder A"

Folder A
  | Folder B
  |   | File1.file
  |   | File2.file
  | Folder C
  |   | Folder D
  |   |   | File3.file
  |   |   | File4.file
  |   | Folder E
  |   |   | File5.file

and I have INSTALLDIR linked to Folder A, including only: "File2.file, File4.file"

The end result I need should be

[INSTALLDIR]
  | File2.file
  | File4.file

but what I get right now is

[INSTALLDIR]
  | Folder B
  |   | File2.file
  | Folder C
  |   | Folder D
  |   |   | File4.file
  |   | Folder E

Labels (1)
0 Kudos
(1) Reply
banna_k
Revenera
Revenera

Hi @eallwood ,

 

 It is possible to do with multiple components targeting to INSTALLDIR with different source folder. But I do not know whether you can access component view in express.

See the below link for adding dynamic links to component.

https://helpnet.flexerasoftware.com/installshield22helplib/helplibrary/IHelpAddDynFile.htm#organizingfiles_1481236491_1186198

0 Kudos