|
|
|
date: Tue, 19 Aug 2008 11:51:10 +0100,
group: microsoft.public.dotnet.framework
back
Re: Create shortcuts for all users
> That folder is the DesktopFolder Windows Installer property, and that's
> documented to be public desktop so it should work. However......
> InstallAllUsers is a request, not a certainty. The ALLISERS value in VS
> setup projects has a value of 2 which effectively means try a per-machine
> install but if the user is not in fact privileged then fall nack to a
> per-user install. Given what you're seeing, that's my theory.
OK. That sounds like a possibility. When I tried it, I created a new user on
my machine which was not in the local administrators group, so perhaps it
never had the permission (I also tried it with a restricted user, and that
wouldn't install at all - it could execute the application installed using
the other user, but there were no shortcuts available). I shall try again
with an administrator user, and see if it works then.
> And no, it doesn't tell you it's falling back to per-user.
> http://msdn.microsoft.com/en-us/library/aa367559(VS.85).aspx
>
That article states:
If ALLUSERS=2, the installer always resets the ALLUSERS property to null or
1 based on whether it determines to do a per-user or a per-machine
installation.
Is it possible I could somehow read this property in my installer class?
Thanks,
Phil.
date: Wed, 20 Aug 2008 08:49:49 +0100
author: Phil N/A
Re: Create shortcuts for all users
On Aug 20, 3:49 am, "Phil" <N/A> wrote:
> > That folder is the DesktopFolder Windows Installer property, and that's
> > documented to be public desktop so it should work. However......
> > InstallAllUsers is a request, not a certainty. The ALLISERS value in VS
> > setup projects has a value of 2 which effectively means try a per-machine
> > install but if the user is not in fact privileged then fall nack to a
> > per-user install. Given what you're seeing, that's my theory.
>
> OK. That sounds like a possibility. When I tried it, I created a new user on
> my machine which was not in the local administrators group, so perhaps it
> never had the permission (I also tried it with a restricted user, and that
> wouldn't install at all - it could execute the application installed using
> the other user, but there were no shortcuts available). I shall try again
> with an administrator user, and see if it works then.
>
> > And no, it doesn't tell you it's falling back to per-user.
> >http://msdn.microsoft.com/en-us/library/aa367559(VS.85).aspx
>
> That article states:
> If ALLUSERS=2, the installer always resets the ALLUSERS property to null or
> 1 based on whether it determines to do a per-user or a per-machine
> installation.
> Is it possible I could somehow read this property in my installer class?
>
> Thanks,
> Phil.
From 2005 experience, look at the "Installation Folder" step in the
User Interface Editor of your deployment package. One of the step's
properties reads "InstallAllUsersVisible". Setting to true exposes two
radio buttons during actual install.
date: Wed, 20 Aug 2008 05:11:22 -0700 (PDT)
author: G.S.
|
|