Link to home
Start Free TrialLog in
Avatar of Julie
JulieFlag for United Kingdom of Great Britain and Northern Ireland

asked on

MSI Installations on Windows 7

I wonder if someone could give me some guidance.  What is the recommended locations when installing custom applications on Windows 7 with the following requirements:

Common EXE for all users
Default configuration XML file for all users
User configurable XML file
I have tried installing the EXE and default XML's to C:\Program Files\<MyCompany>\<MyApp>\<MyVersion>, and although I can run the EXE with any user account, I cannot access the default XML's should the user want to restore the default settings following any user configuration changes.  The error is "Access to path is denied".

Should I use %APPDIR% or [AppDataFolder] settings in the MSI builder and if so how?

In the past, on Windows XP, I would create a new folder at the root of C:\ and install the EXE and any user configuration files to the same.  This has been sufficient for a number of years although only in a single-user/single-machine environment.  Now, with multiple users per-machine and Windows 7 this is no longer sufficient.

Any help would be most appreciated.
Avatar of Oleg Meier
Oleg Meier
Flag of Germany image

use [CommonAppDataFolder] for all users. That is the C:\ProgramData under win7 or
C:\Documents and Settings\All Users\Application Data\ on XP
Avatar of Julie

ASKER

Hi, thanks for the quick response.

I can happily install to the [CommonAppDataFolder] when I run the MSI with administrator privileges, and I can see it in Explorer with the logged on user and show hidden folders turned on, but I still get the "Access to path <...> is denied" error when I try to use the files put there.

However, following your train of thought, I tried using [LocalAppDataFolder] and this seems to work OK.  Is there a reason why I shouldn't use this configuration?  Is there a down side?
that is just best practice from me. AppDataFolder and LocalAppDataFolder belongs to the Property ALLUSERS. Not the CommonAppDataFolder it is allway the same
Avatar of Julie

ASKER

Apologies for the delay.

So, if I understand you correctly, use [CommonAppDataFolder] for EXE files common to all users and [LocalAppDataFolder] for configurable settings per user?
ASKER CERTIFIED SOLUTION
Avatar of Oleg Meier
Oleg Meier
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Julie

ASKER

Thanks for all your assistance and guidance, most appreciated.