PDA

View Full Version : Registry variables



baking
09-06-2002, 03:49 PM
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!!!

nicholas_ong
09-09-2002, 08:26 AM
Try using the path C:\Documents and Settings\[UserName]\Application Data\Exceed

baking
09-09-2002, 11:01 AM
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

nicholas_ong
09-09-2002, 11:27 AM
Are you installing the app as the user?

Try using [USERNAME] case sensitive

AdamCurry
09-09-2002, 12:10 PM
Brian,

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

baking
09-10-2002, 07:54 AM
Try using [AppDataFolder]. This is a MSI property that will resolve to the current user's application data folder.

That did the trick, THANKS!!
:)