cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Anonymous
Not applicable

Convert Environment Variable to Short Name

I am setting an Environment variable to [INSTALLDIR]. But if INSTALLDIR contains "Program Files", I need it to be "Progra~1".

Since the user gets to change INSTALLDIR, I need some type of way to convert it to a short name.

This is for a 64bit Basic MSI so I am not using scripts. Any ideas?

Thanks
Labels (1)
0 Kudos
(2) Replies
MichaelU
Level 12 Flexeran
Level 12 Flexeran

On Formatted, it describes the notations [!filekey] and [$componentkey]; the former is a short path for the registry or ini file changes, but includes a file; the latter is the folder but doesn't say anything about being a short path. You may have to write a custom action in the language of your choice to handle this.
0 Kudos
Anonymous
Not applicable

I don't understand how I can use that to set Environment variables in InstallShield.
0 Kudos