Bloom.InstallerSupport.SharedByAllUsers C# (CSharp) Method

SharedByAllUsers() public static method

True if we consider our install to be shared by all users of the computer. We currently detect this based on being in the Program Files folder.
public static SharedByAllUsers ( ) : bool
return bool
        public static bool SharedByAllUsers()
        {
            // Being a 32-bit app, we expect to get installed in Program Files (x86) on a 64-bit system.
            // If we are in fact on a 32-bit system, we will be in plain Program Files...but on such a system that's what this code gets.
            return Application.ExecutablePath.StartsWith(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFilesX86));
        }