cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
ridolfo
Level 2

Empty folder based on environment variable

In the dialogs of our installer, a user can enter environment variables for destination folders (e.g. c:\temp\%username%\). When going through the installation this works fine for components that actually install files into the destination folders.

However, for empty folders we use the CreateFolder table in the Direct Editor. The variables that reference the destination folders in the CreateFolder table do not expand the environment variables. So if a user entered c:\temp\%username%\ during the setup, a folder with this exact name is created (including the "%"-signs)

Is there any way to expand environment variables for folders in the CreateFolder table?
Labels (1)
0 Kudos
(1) Reply
MichaelU
Level 12 Flexeran
Level 12 Flexeran

I think the CreateFolder table is likely to be "Formatted". If it is, you can use the expansions from this article including [%EnvVarName]. That said, the username is also available in a property [USERNAME]
0 Kudos