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

Component Files in Custom Folder

Greetings, InstallShield specialists.

As you can see I'm a new user that is already facing some problems while trying to understand how this great tool works. My main problem might not be a big issue for experienced users, but as a newbie I am really having a bad time while trying to make the files of one of my project's components (e.g. "Repository") be copied to a custom folder (e.g. "C:\Repository"), that can be changed by the end-user. What's the best way to do that? While in design-time? Run-time? Can I set a property, path variable or something? How can I use it?

Any ideas will be very appreciated.
Thank you so very much!
Labels (1)
0 Kudos
(4) Replies
rasky74
Level 6

The easiest way would be to create another feature and move that component to it. Then at runtime they can select a different location for that feature. For the desitnation set some default path (don't use INSTALLDIR since your other features may use it).
0 Kudos
Lord_Sammael
Level 3

I am trying to do that in the "Application Data -> Files and Folders" view, but it just allows me to place my files in Predefined Folders.

How can I avoid those predefined folders and set a variable custom end-user-specified folder path and then associate it with my files?

Thank you very much!

(If I am not being very clear, please let me know)
0 Kudos
Lord_Sammael
Level 3

OK, after hours of research, I found out that it is possible to, in the "Files and Folders" view, right-click the "Destination Computer" icon, create a "New Folder" and name it, say, "C:" and then create the directory tree I want. But it's still a design-time and hard-coded solution. How can I let the user enter the path and create it at run-time? Any directions to solve that? Thanks a lot.
0 Kudos
Lord_Sammael
Level 3

How can I do all this stuff at run-time? What are the command lines?
Do you have any example?
0 Kudos