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

ALLUSERSPROFILE set to C:\ProgramData

We have a problem where shared desktop icons don't reinstall correctly if the product is first uninstalled. Background:

ALLUSERSPROFILE gets the value for ProgramData instead of Users\Public.

MSI (c) (D0:34) [15:47:53:727]: Doing action: setAllUsersProfile2K
Action 15:47:53: setAllUsersProfile2K.
Action start 15:47:53: setAllUsersProfile2K.
MSI (c) (D0:34) [15:47:53:727]: PROPERTY CHANGE: Adding ALLUSERSPROFILE property. Its value is 'C:\ProgramData'.
Action ended 15:47:53: setAllUsersProfile2K. Return value 1.

The corresponding environment variable on the platform is also "ProgramData":

echo %allusersprofile%
C:\ProgramData

The property PUBLIC gets the correct path.

MSI (c) (D0:34) [15:47:53:727]: Doing action: setPublicProfileVista
Action 15:47:53: setPublicProfileVista.
Action start 15:47:53: setPublicProfileVista.
MSI (c) (D0:34) [15:47:53:727]: PROPERTY CHANGE: Adding PUBLIC property. Its value is 'C:\Users\Public'.
Action ended 15:47:53: setPublicProfileVista. Return value 1.

If a component in the install also has a shortcut then the cycle of install/uninstall/install results in the component installing to ProgramData\Desktop instead of Users\Public Desktop.

How can we make this work correctly?

However, on the first install a Component that installs to [ALLUSERSPROFILE]Desktop correctly places its files in C:\Users\Public\Public Desktop on Windows Server 2012 R2.  These files also uninstall correctly.

Labels (1)
0 Kudos
(0) Replies