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

Registry variables

I need to have a variable in the registry table put the hardcoded value in the registry of the client machine. For example, if I use %APPDATA%\Exceed in the Current User section of the registry, it puts that exact text in the registry. Most apps would read the variable correctly. Unfortunately the version of Exceed I have doesn't recognize %APPDATA%. If JoeBlow logs in, I need the key to read C:\Documents and Settings\JoeBlow\Application Data\Exceed. I still need to keep a variable in case a 2nd user logs in. Any help is much appreciated!!!
(5) Replies
Try using the path C:\Documents and Settings\[UserName]\Application Data\Exceed
Nicholas,

When I try that it comes out as:

C:\Documents and Settings\\Application Data\Exceed.

The brackets and their contents don't show up.
Thanks,
Brian
Are you installing the app as the user?

Try using [USERNAME] case sensitive
Brian,

Try using [AppDataFolder]. This is a MSI property that will resolve to the current user's application data folder.

Try using [AppDataFolder]. This is a MSI property that will resolve to the current user's application data folder.


That did the trick, THANKS!!
🙂