Web Images Videos Maps News Groups Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Vista - User Directory
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
DanB  
View profile  
 More options Nov 4, 2:13 am
Newsgroups: microsoft.public.vc.mfc, microsoft.public.platformsdk.msi
From: DanB <a...@some.net>
Date: Tue, 03 Nov 2009 08:13:44 -0700
Local: Wed, Nov 4 2009 2:13 am
Subject: Re: Vista - User Directory

Hi David,
Thanks. So how do others do it? i.e. use the window installer to get
their product in the 'right' places? (And I'll cross the msi group)

If I stick with the way I'm doing it, (../allusers/appdata/...) it works
fine even if my data is split between two folders. I just can't
'programmaticly' write to that folder, i.e. copy a new file in, as I
don't have a way to find it other than engage the client with stuff they
should not have to do. But reading and writing the shipped files works fine.

When the client want to copy settings from an old computer I will have
to have them hunt it down as my 'open settings folder' is not useful.

I will also spend the morning researching this....

Also, the VS msi project set the app folder

[ProgramFilesFolder][Manufacturer]\[ProductName]

But it leaves the user appdata folder unassigned. Could it be as simple
as finding the correct 'virtual' path for the user folder assignment for
the MSI build?

When I think it is right I'll send the test CSIDL program off to someone
to see. For whatever reason both our vista machines install and work
fine from 'all users'...

Thanks, Dan.


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Ching  
View profile  
 More options Nov 4, 2:59 am
Newsgroups: microsoft.public.vc.mfc, microsoft.public.platformsdk.msi
From: "David Ching" <d...@remove-this.dcsoft.com>
Date: Tue, 3 Nov 2009 07:59:27 -0800
Local: Wed, Nov 4 2009 2:59 am
Subject: Re: Vista - User Directory

"DanB" <a...@some.net> wrote in message news:JMXHm.42$Wd1.24@newsfe15.iad...
> Hi David,
> Thanks. So how do others do it? i.e. use the window installer to get their
> product in the 'right' places? (And I'll cross the msi group)

Your installer (.msi in your case, but it doesn't have to be, it could be an
ordinary .exe) can access allusers/appdata because it is run as elevated.
When you double click it, you get the prompt to click OK (and if you are
running from a non-admin account, you must supply admin's
username/password).  That's what makes it elevated.

> If I stick with the way I'm doing it, (../allusers/appdata/...) it works
> fine even if my data is split between two folders. I just can't
> 'programmaticly' write to that folder, i.e. copy a new file in, as I don't
> have a way to find it other than engage the client with stuff they should
> not have to do. But reading and writing the shipped files works fine.

> When the client want to copy settings from an old computer I will have to
> have them hunt it down as my 'open settings folder' is not useful.

> I will also spend the morning researching this....

Would it work to write the new xml file into a per-user folder, not
allusers, but e.g. /users/david?  Your app will work on this folder, always.
Your app would need to do this again when a different user ran your app, but
it might work.  The .msi file will put the original xml file into the
allusers folder, and your app will write updated ones to the per-user
folder.  And your app will read the one from per-user folder if available,
or if not, the one from allusers (since I believe reading from allusers is
OK).

Short of that, when your app needs to update the xml file in the allusers
folder, what you can do is have it launch another .exe that has a manfiest
set to requireAdministrator (that will like the .msi) prompt you to click OK
and if not running from an Admin account, prompt for admin's
username/password.  Again, like the .msi, it will have free access to
allusers.  But then an Admin must be available to supply username/password,
may not be an option if your app is deployed in enterprise.

> Also, the VS msi project set the app folder

> [ProgramFilesFolder][Manufacturer]\[ProductName]

> But it leaves the user appdata folder unassigned. Could it be as simple as
> finding the correct 'virtual' path for the user folder assignment for the
> MSI build?

That's the per user folder, not allusers, so I don't think it is relevant.

> When I think it is right I'll send the test CSIDL program off to someone
> to see. For whatever reason both our vista machines install and work fine
> from 'all users'...

Test it yourself by running your app from a Limited (non-Admin) account on
your own PC.

Regards,
David


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
DanB  
View profile  
 More options Nov 4, 4:03 am
Newsgroups: microsoft.public.vc.mfc, microsoft.public.platformsdk.msi
From: DanB <a...@some.net>
Date: Tue, 03 Nov 2009 10:03:32 -0700
Local: Wed, Nov 4 2009 4:03 am
Subject: Re: Vista - User Directory
Hi David,
Thanks. I may have made it sound like I need access to all users, but I
don't if I get this right. I don't want to have to run elevated and
trigger the UAC. This came to a head when I was patching a new feature
and wanted to copy in that new xml. It copied without elevation but to
the wrong place. The wrong place happened to be all users. And if I were
required to be elevated to write this folder, something was wrong in vista.

But even then I would think if I'm doing it by the rules the user app
data should be in a place 'I' can get to, do what I need, and without
elevation. And like I said, I don't care where this folder is. I'd like
it by the rules and were the installer puts it, and I can find it.

My objective is to use user-app-data by the rules, not to work around
them. I just want the 'right' place, a no special privileges place at
that. Per user is fine.

As far as working with the clients on pre release, they know that they
may have to do special stuff sometimes, and I'm not looking to fix that.
This is about our next full msi release. It is scheduled for the first
of the year but I would really like to avoid spending the next two
months just chasing this down. :)

Best, Dan.


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Ching  
View profile  
 More options Nov 4, 10:58 am
Newsgroups: microsoft.public.vc.mfc, microsoft.public.platformsdk.msi
From: "David Ching" <d...@remove-this.dcsoft.com>
Date: Tue, 3 Nov 2009 15:58:08 -0800
Local: Wed, Nov 4 2009 10:58 am
Subject: Re: Vista - User Directory
If per-user is OK, then that will always work, elevated or not.   Issue then
may be that xml file will be installed to the per-user folder of the user
that is installing (could be an IT Admin) and not the user that will be
running it; in that case, user running it won't have the xml file!  That's
why I suggested installer put it in allusers and have per-user updates take
precedence.

-- David

"DanB" <a...@some.net> wrote in message

news:GnZHm.8758$Cc6.1617@newsfe07.iad...


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google