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

Set Registry value to use ALLUSERSPROFILE

In my installation, I am attempting to set some registry values to use ALLUSERSPROFILE. For example, %ALLUSERSPROFILE%\Application Data\Microsoft\Schemas\somefile.xsd. However, the installation does not resolve it to C:\Documents and Settings\All Users. If I replace it with %PROGRAM FILES%, it resolves it correctly. The log shows that setAllUsersProfile2K is executing and setting the value correctly. I can see this in the log, but it does not change it for the registry setting.

Any suggestions?
Labels (1)
0 Kudos
(1) Reply
RobertDickau
Flexera Alumni

What exactly are you putting in the registry view? [ALLUSERSPROFILE], or...?

As described in the MSI "Formatted" help topic, you can use [%ENVVAR] in the Registry and some other tables to expand the value of an environment variable, or use [PROPNAME] to expand a property. (You can view the Registry table in the Direct Editor view to double-check the data.)
0 Kudos