- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- ALLUSERSPROFILE set to C:\ProgramData
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
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.