Multiple directories

You have trouble using InstallForge? Then this is the right place for you.
Post Reply
Dzirka
Posts: 1
Joined: 20 Apr 2024, 21:04

I would need help on how to set up multiple directories. I have a program that goes into the Program Files\.... directory but yet another whole folder that the program needs must also be located in C:\Users\...\AppData\Roaming

Also, I wonder what I should type instead of a specific user's name? In each system there is a different user name i.e. I need the directory to copy to AppData\Roaming.

Thank you in advance for your help.
User avatar
markbell
Posts: 19
Joined: 30 May 2023, 18:56

This is not directly possible with InstallForge. However, you could use the Custom Commands function:
https://docs.installforge.net/how-tos/u ... indows-cli

Say, you want to install folder ABC into another location. Then I would just add ABC as a regular folder in InstallForge. This folder would be installed into the application installation folder first (which is what we do not want), but could then be moved from there into another location using a Custom Command, which calls the shell command move of Windows.

Does that make sense for you?
InstallForge Power User
shafique12
Posts: 6
Joined: 17 May 2024, 06:45

As my knowledge
Use environment variables:
For Program Files use %ProgramFiles%.
For user roaming data: %APPDATA%\ (backslash after APPDATA is important).
Example path: %ProgramFiles%\...\MyProgramData and %APPDATA%\MyProgramData.
lizaclarr
Posts: 3
Joined: 11 Jun 2024, 09:18

markbell wrote: 26 Apr 2024, 13:47 This is not directly possible with InstallForge. However, you could use the Custom Commands function:
https://docs.installforge.net/how-tos/u ... indows-cli

Say, you want to install folder ABC into another location. Then I would just add ABC as a regular folder in InstallForge. This folder would be installed into the application installation folder first (which is what we do not want), but could then be moved from there into another location using a Custom Command, which calls the shell command move of Windows.

Does that make sense for you?
Hello there,
Can you elaborate on it more?
shafique12
Posts: 6
Joined: 17 May 2024, 06:45

Yes we can do that
Post Reply