Windows Vista Forums
Vista Forums Home Join Vista Forums Tech Publications Windows 7 Forum Vista Tutorials Webcasts Tags

Welcome to Vista Forums we are your forum for Windows Vista help and discussion. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Vista Newsgroups > Vista security

VISTA and Windows Installer ALLUSERS property....

Update your Vista Drivers
Reply
 
Thread Tools Display Modes
Old 07-10-2007   #1 (permalink)
Superfreak3
Guest


 

VISTA and Windows Installer ALLUSERS property....

I've read in several places that for VISTA installations, ALLUSERS
should be set to 1 and the User Information dialog bypassed on Vista.
I just want to examine what I should do in prepping for VISTA.

Currently with our installation, if a Standard User tries to install
with UAC disabled, the installation fails due to lack of privileges to
\Program Files, etc. During the UI, the controls on the User
Information dialog are not displayed as the installing user is not
Privileged. This seems to be an out-of-the-box condition in our
authoring tool

If I install as Admin, all OK, or if UAC is enabled all is OK if Admin
or if credentials are supplied.

It's easy enough to do I would think. I could possibly condition the
dialog with VersionNT<>600 and set the property with a Custom Action
or possibly on the next button on the install dialog. If I do set
ALLUSERS to 1, that would basically suggest that all would have to be
Admin to install. When I tested this as a Standard User, no UAC,
ALLUSERS=1, the install errored and none too gracefully. The log
didn't really point to anything much either. I would have suspected a
permissions message of some kind.

Any thoughts, pointers would be Greatly Appreciated!


My System SpecsSystem Spec
Old 07-13-2007   #2 (permalink)
Superfreak3
Guest


 

Re: VISTA and Windows Installer ALLUSERS property....

On Jul 10, 4:23 pm, Superfreak3 <Matt.Wal...@synergis.com> wrote:
> I've read in several places that for VISTA installations,ALLUSERS
> should be set to 1 and the User Information dialog bypassed on Vista.
> I just want to examine what I should do in prepping for VISTA.
>
> Currently with our installation, if a Standard User tries to install
> with UAC disabled, the installation fails due to lack of privileges to
> \Program Files, etc. During the UI, the controls on the User
> Information dialog are not displayed as the installing user is not
> Privileged. This seems to be an out-of-the-box condition in our
> authoring tool
>
> If I install as Admin, all OK, or if UAC is enabled all is OK if Admin
> or if credentials are supplied.
>
> It's easy enough to do I would think. I could possibly condition the
> dialog with VersionNT<>600 and set the property with a Custom Action
> or possibly on the next button on the install dialog. If I do setALLUSERSto 1, that would basically suggest that all would have to be
> Admin to install. When I tested this as a Standard User, no UAC,ALLUSERS=1, the install errored and none too gracefully. The log
> didn't really point to anything much either. I would have suspected a
> permissions message of some kind.
>
> Any thoughts, pointers would be Greatly Appreciated!


I've just found this from Microsoft, but I guess it really doesn't
amount much to a recommendation....


"Windows Vista: Windows Installer version 4.0 complies with User
Account Control (UAC). If the user has user access privileges, and
ALLUSERS=2, the installer performs a per-machine installation only if
Admin credentials are provided to the UAC dialog box. If UAC is
enabled and the correct Admin credentials are not provided, the
installation fails with an error stating that administrator privileges
are required. If UAC is disabled by the registry key, group policy, or
the control panel, the UAC dialog box is not displayed and the
installation fails with an error stating that administrator privileges
are required."

My System SpecsSystem Spec
Old 07-13-2007   #3 (permalink)
Superfreak3
Guest


 

Re: VISTA and Windows Installer ALLUSERS property....

On Jul 13, 8:45 am, Superfreak3 <Matt.Wal...@synergis.com> wrote:
> On Jul 10, 4:23 pm, Superfreak3 <Matt.Wal...@synergis.com> wrote:
>
>
>
>
>
> > I've read in several places that for VISTA installations,ALLUSERS
> > should be set to 1 and the User Information dialog bypassed on Vista.
> > I just want to examine what I should do in prepping for VISTA.

>
> > Currently with our installation, if a Standard User tries to install
> > with UAC disabled, the installation fails due to lack of privileges to
> > \Program Files, etc. During the UI, the controls on the User
> > Information dialog are not displayed as the installing user is not
> > Privileged. This seems to be an out-of-the-box condition in our
> > authoring tool

>
> > If I install as Admin, all OK, or if UAC is enabled all is OK if Admin
> > or if credentials are supplied.

>
> > It's easy enough to do I would think. I could possibly condition the
> > dialog with VersionNT<>600 and set the property with a Custom Action
> > or possibly on the next button on the install dialog. If I do setALLUSERSto 1, that would basically suggest that all would have to be
> > Admin to install. When I tested this as a Standard User, no UAC,ALLUSERS=1, the install errored and none too gracefully. The log
> > didn't really point to anything much either. I would have suspected a
> > permissions message of some kind.

>
> > Any thoughts, pointers would be Greatly Appreciated!

>
> I've just found this from Microsoft, but I guess it really doesn't
> amount much to a recommendation....
>
> "Windows Vista: Windows Installer version 4.0 complies with User
> Account Control (UAC). If the user has user access privileges, andALLUSERS=2, the installer performs a per-machine installation only if
> Admin credentials are provided to the UAC dialog box. If UAC is
> enabled and the correct Admin credentials are not provided, the
> installation fails with an error stating that administrator privileges
> are required. If UAC is disabled by the registry key, group policy, or
> the control panel, the UAC dialog box is not displayed and the
> installation fails with an error stating that administrator privileges
> are required."- Hide quoted text -
>
> - Show quoted text -


And I guess this might be the answer...

"Marking the Privileges for an MSI

Before Windows Vista, the ALLUSERS property was used to mark whether
an MSI file would install an application's shortcuts to the user
location or for all users on the machine. These shortcuts included the
DesktopFolder, ProgramMenuFolder, StartMenuFolder, and StartupFolder.
Because there was no analogous per-user Program Files directory, the
application binaries generally were still written to the Program Files
directory.

Unfortunately, for app compatibility reasons Windows Installer could
not determine whether the user should be prompted for credentials
based solely on the ALLUSERS property. Instead, an additional bit was
allocated in the MSI file to determine whether to prompt the user.
This is bit 3 in the Word Count Summary property. If this bit is set
to 1, the package is assumed to be a per-user MSI and the user will
not be prompted for an Administrator token.

To specify that a package can only be installed by an administrator
into the Public profile, set ALLUSERS="1" or ALLUSERS="2" and set bit
3 of the Word Count Summary property to 0. To specify that a package
is a per-user installation that can be installed by a standard user,
set ALLUSERS="" or don't define the property, and set bit 3 of the
Word Count Summary property to 1."


My System SpecsSystem Spec
Old 07-25-2007   #4 (permalink)
Christopher Painter
Guest


 

Re: VISTA and Windows Installer ALLUSERS property....

On Jul 13, 7:55 am, Superfreak3 <Matt.Wal...@synergis.com> wrote:
> On Jul 13, 8:45 am, Superfreak3 <Matt.Wal...@synergis.com> wrote:
>
>
>
>
>
> > On Jul 10, 4:23 pm, Superfreak3 <Matt.Wal...@synergis.com> wrote:

>
> > > I've read in several places that for VISTA installations,ALLUSERS
> > > should be set to 1 and the User Information dialog bypassed on Vista.
> > > I just want to examine what I should do in prepping for VISTA.

>
> > > Currently with our installation, if a Standard User tries toinstall
> > > with UAC disabled, the installation fails due to lack of privileges to
> > > \Program Files, etc. During the UI, the controls on the User
> > > Information dialog are not displayed as the installing user is not
> > > Privileged. This seems to be an out-of-the-box condition in our
> > > authoring tool

>
> > > If Iinstallas Admin, all OK, or if UAC is enabled all is OK if Admin
> > > or if credentials are supplied.

>
> > > It's easy enough to do I would think. I could possibly condition the
> > > dialog with VersionNT<>600 and set the property with a Custom Action
> > > or possibly on the next button on theinstalldialog. If I do setALLUSERSto 1, that would basically suggest that all would have to be
> > > Admin toinstall. When I tested this as a Standard User, no UAC,ALLUSERS=1, theinstallerrored and none too gracefully. The log
> > > didn't really point to anything much either. I would have suspected a
> > > permissions message of some kind.

>
> > > Any thoughts, pointers would be Greatly Appreciated!

>
> > I've just found this from Microsoft, but I guess it really doesn't
> > amount much to a recommendation....

>
> > "Windows Vista: Windows Installer version 4.0 complies with User
> > Account Control (UAC). If the user has user access privileges, andALLUSERS=2, the installer performs a per-machine installation only if
> > Admin credentials are provided to the UAC dialog box. If UAC is
> > enabled and the correct Admin credentials are not provided, the
> > installation fails with an error stating that administrator privileges
> > are required. If UAC is disabled by the registry key, group policy, or
> > the control panel, the UAC dialog box is not displayed and the
> > installation fails with an error stating that administrator privileges
> > are required."- Hide quoted text -

>
> > - Show quoted text -

>
> And I guess this might be the answer...
>
> "Marking the Privileges for an MSI
>
> Before Windows Vista, the ALLUSERS property was used to mark whether
> an MSI file wouldinstallan application's shortcuts to the user
> location or for all users on the machine. These shortcuts included the
> DesktopFolder, ProgramMenuFolder, StartMenuFolder, and StartupFolder.
> Because there was no analogousper-userProgram Files directory, the
> application binaries generally were still written to the Program Files
> directory.
>
> Unfortunately, for app compatibility reasons Windows Installer could
> not determine whether the user should be prompted for credentials
> based solely on the ALLUSERS property. Instead, an additional bit was
> allocated in the MSI file to determine whether to prompt the user.
> This is bit 3 in the Word Count Summary property. If this bit is set
> to 1, the package is assumed to be aper-userMSI and the user will
> not be prompted for an Administrator token.
>
> To specify that a package can only be installed by an administrator
> into the Public profile, set ALLUSERS="1" or ALLUSERS="2" and set bit
> 3 of the Word Count Summary property to 0. To specify that a package
> is aper-userinstallation that can be installed by a standard user,
> set ALLUSERS="" or don't define the property, and set bit 3 of the
> Word Count Summary property to 1."- Hide quoted text -
>
> - Show quoted text -


One of the better articles on this subject is:

http://blogs.msdn.com/rflaming/archi...f-yes-how.aspx

Also the microsoft.public.platformsdk.msi is a better group to ask
Windows Installer related questions.

Regards,
Chris
http://blog.deploymentengineering.com

My System SpecsSystem Spec
Reply
Update your Vista Drivers

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows Installer (Vista) fredrock46 Vista performance & maintenance 1 09-02-2008 09:29 AM
Windows Installer in Vista Paige Vista General 10 06-02-2008 05:11 PM
Use my custom TypeDescriptor to obtains default Value on property inXAML Property Editor of Visual Studio 2008 azerty Avalon 0 04-14-2008 07:14 AM
Cannot Create a shortcut under Allusers startup folder santosh Vista General 3 05-09-2007 10:46 AM
windows installer 4.0/Vista RC1 JV Vista installation & setup 2 11-04-2006 12:51 PM


Complimentary Industry Resources

Vista Forums has joined forces with TradePub.com to offer you a new, exciting, and entirely free professional resource. Visit http://vistax64.tradepub.com today to browse our selection of complimentary Industry magazines, white papers, webinars, podcasts, and more across 34 industry sectors. No credit cards, coupons, or promo codes required. Try it today!




Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51