PDA

View Full Version : Install Data Set to Non Admin User Account



NewsArchive
05-22-2009, 01:34 AM
Does anyone have some suggestions on the following situation:

This is in Vista - I would like to install a data set - important
application data (setup data) to a non admin user account - basically, they
would run a small install program, and point to their user account area for
the main program.

I am using the following for the installer folder,

but, of course, a non admin account user receives an elevated password
prompt, and once the admin user account password is applied - the install
folder defaults to the admin user account location - NOT the non admin user
account area.

INSTALLDIR

%_CSIDL_PERSONAL%\Encourager Software\Product Scope 7

the main install program does setup main program use for ALL computers
users, and the non-admin account user can run the main program and set up -

%_CSIDL_PERSONAL%\Encourager Software\Product Scope 7 for their use, but I
would like to give them some default application data to give them a better
start.

And, since user accounts can be set up at any time, it's not a matter of
installing default data to each account that is present when the main
program is installed.

AND, this data set MUST be installed into a user account area, so placing
it in a public documents area is not an option either.

TIA,

David

--
From David Troxell - Product Scope 7 - Encourager Software
Clarion Third Party Profile Exchange Online
http://encouragersoftware.com/profile/clarlinks.html
Profile Exchanges - www.encouragersoftware.com/profile/
http://www.profileexchanges.com/blog/

NewsArchive
05-22-2009, 01:36 AM
Wait.

There's a cool new magic feature (I have no clue how he managed it!) called
"run non-elevated" that will be in the release version of SB7. A zipped
sample is attached.

To use it you need to log onto a UAC machine with a non-administrator
account. Run the exe, specify your admin account, then run the "non
elevated" app at the end and it will show the non-elevated user's privileges
and profile.

But here's another possible workaround if you're concerned with having your
sample data available for any future user accounts on the machine. You
could create a folder in the default profile that's used as a template when
you create a new user account (on Vista, that would be
C:\Users\Default\Documents - pic). Then have your installer populate your
dummy data into that folder. Any new user will find the folder in his
Documents (or My Documents) folder.

Jane

NewsArchive
05-22-2009, 01:37 AM
> Wait.
>
> There's a cool new magic feature (I have no clue how he managed it!) called
> "run non-elevated" that will be in the release version of SB7. A zipped
> sample is attached.
>
> To use it you need to log onto a UAC machine with a non-administrator
> account. Run the exe, specify your admin account, then run the "non
> elevated" app at the end and it will show the non-elevated user's privileges
> and profile.

Jane,

Thanks for sharing - this sounds exactly like the kind of "power" I need to
provide this for current non admin user accounts.

>
> But here's another possible workaround if you're concerned with having your
> sample data available for any future user accounts on the machine. You
> could create a folder in the default profile that's used as a template when
> you create a new user account (on Vista, that would be
> C:\Users\Default\Documents - pic). Then have your installer populate your
> dummy data into that folder. Any new user will find the folder in his
> Documents (or My Documents) folder.

AND, one amazing TIP for future created non-admin accounts. Of course, the
first technology covers present and future - BUT, future admin and
non-admin accounts don't even need to run the data set install program!
Very nice!

Again, thanks for sharing your expertise!

David

--
From David Troxell - Product Scope 7 - Encourager Software
Clarion Third Party Profile Exchange Online
http://encouragersoftware.com/profile/clarlinks.html
Profile Exchanges - www.encouragersoftware.com/profile/
http://www.profileexchanges.com/blog/

NewsArchive
05-22-2009, 01:38 AM
> But here's another possible workaround if you're concerned with having your
> sample data available for any future user accounts on the machine. You
> could create a folder in the default profile that's used as a template when
> you create a new user account (on Vista, that would be
> C:\Users\Default\Documents - pic). Then have your installer populate your
> dummy data into that folder. Any new user will find the folder in his
> Documents (or My Documents) folder.

Jane,

OK, Very good - just tested this in Windows 7 (would be the same on Vista,
I believe) by manually adding to C:\Users\Default\Documents area and works
GREAT!, but

What is the CSIDL equivalent - and just as important - if that doesn't show
up in SB CSIDL list - how do you add to SB?

I researched various MS including:

http://msdn.microsoft.com/en-us/library/bb762494.aspx

And Googled, but to no avail.

David

--
From David Troxell - Product Scope 7 - Encourager Software
Clarion Third Party Profile Exchange Online
http://encouragersoftware.com/profile/clarlinks.html
Profile Exchanges - www.encouragersoftware.com/profile/
http://www.profileexchanges.com/blog/

NewsArchive
05-23-2009, 01:48 AM
uhh...
errrr.....
yeah... good question.

Depending on the amount of risk you're willing to take by not using a
Microsoft-supported variable... the attached works on Vista, Win7, Server
2K3, and XP which are all the machines I have available at the moment.

Perhaps somebody who speaks one of those phoney non-English languages <g>
could confirm whether the registry values are named the same in other
languages.

Jane Fleming

NewsArchive
05-23-2009, 01:52 AM
> uhh...
> errrr.....
> yeah... good question.
>
> Depending on the amount of risk you're willing to take by not using a
> Microsoft-supported variable... the attached works on Vista, Win7, Server
> 2K3, and XP which are all the machines I have available at the moment.

Jane,

Thanks for all this extraordinary help - I will be doing some "more
experimentation".

I'm sure as others have followed this newsgroup thread, there is a wealth
of information for many to use in similar situations!

AND, congratulations on the:

Lindersoft Certificate of Excellence!

Well deserved!

David

--
From David Troxell - Product Scope 7 - Encourager Software
Clarion Third Party Profile Exchange Online
http://encouragersoftware.com/profile/clarlinks.html
Profile Exchanges - www.encouragersoftware.com/profile/
http://www.profileexchanges.com/blog/

NewsArchive
05-23-2009, 01:53 AM
Hi Jane,

Okay, it's official now: you are a SetupBuilder Specialist and member of
"Team SetupBuilder" :-) I am incredibly impressed with your knowledge and
experience!

--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910

SetupBuilder is installation -- "point. click. ship"

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
05-23-2009, 01:53 AM
Friedrich,

> Okay, it's official now: you are a SetupBuilder Specialist and member of
> "Team SetupBuilder" :-) I am incredibly impressed with your knowledge and
> experience!

Obviously well deserved.

--
Lee White

Enroll Today at http://CWaddons.com

NewsArchive
05-23-2009, 01:54 AM
OMG!
Suitable For Framing!

Now where did I put my hi-res printer and acid-free bamboo-based paper??????

Thank you, Friedrich :)
(But I bet you send those to all the batty old blonde women who use your
product..... <g> )

Jane

NewsArchive
05-23-2009, 01:55 AM
> Thank you, Friedrich :)
> (But I bet you send those to all the batty old blonde women who use your
> product..... <g> )

Well, you lost your bet! <g>

Friedrich