Re: Check-list to installing/running apps as non-admin?
- From: "Woodie M" <woodie7@xxxxxxxxxxx>
- Date: Mon, 24 Dec 2007 00:20:47 -0500
How about this scenario: A setup needs admin priviledges, so it creates a data folder in {CommonAppData} with the default data or templates that a new user requires. When the program is run it checks for the presence of a data folder in User\Documents and if it doesn't find it, creates it and copies any required default or template data from the data folder in {CommonAppData}. This way when a non-admin user runs the setup and they are prompted for an admin username and password for elevation, it's not a problem because no data needs to be installed to the user's specific documents folder.
- Woodie
"Richard Mueller [MVP]" <rlmueller-nospam@xxxxxxxxxxxxxxxxxxxx> wrote in message news:Oihi5keRIHA.4400@xxxxxxxxxxxxxxxxxxxxxxx
Think about it. If you have admin credentials you are admin. If you click "Run as administrator" and don't have admin credentials you are out of luck. If Vista does not allow normal users to install to Program Files, you must install somewhere else. I don't like it, but have not found any other solution. I have found this is also true when I use InstallShield to create setups. I cannot find any way for a non-admin user to install to Program Files. If you know of way, let me know.
--
Richard Mueller
Microsoft MVP Scripting and ADSI
Hilltop Lab - http://www.rlmueller.net
--
"Kevin Provance" <casey@xxxxxxxxxxx> wrote in message news:edHzrYdRIHA.5988@xxxxxxxxxxxxxxxxxxxxxxxWhat? No, no and no!
Sorry, but installing apps to the root drive is a big no-no, *especially* in
Vista. It will cause way more problems than not. Applications are strongly
encouraged to be installed in Program Files, and all data files written to
the application data folder as they will not write to the apps folder is
program files.
Any user who is not an admin needs to be directed to right-click on your
app's setup program and select "Run as Admin"
You're an MVP, you should know better! <g>
| I've found on Vista that non-admins cannot install to Program Files, so I
| must provide the option to install elsewhere, something like c:\MyApp.
OCX's
| must be registered, but that's not a problem as long as only the one user
| runs the app. Non-admins can only write to HKCU in the registry. If they
| write to HKLM it seems to write, but is actually written to a virtual part
| of the directory that is only valid for them (it does not affect other
| users).
|
| In Vista if a user is logged in as the local administrator and runs a
setup
| (or the program), they must use the "Run as administrator" feature (unless
| UAC is disabled). Otherwise they will not have administrator privileges.
|
| -- | Richard Mueller
| Microsoft MVP Scripting and ADSI
| Hilltop Lab - http://www.rlmueller.net
| -- |
|
.
- References:
- Check-list to installing/running apps as non-admin?
- From: Gilles Ganault
- Re: Check-list to installing/running apps as non-admin?
- From: Ron Weiner
- Re: Check-list to installing/running apps as non-admin?
- From: Gilles Ganault
- Re: Check-list to installing/running apps as non-admin?
- From: Richard Mueller [MVP]
- Re: Check-list to installing/running apps as non-admin?
- From: Kevin Provance
- Re: Check-list to installing/running apps as non-admin?
- From: Richard Mueller [MVP]
- Check-list to installing/running apps as non-admin?
- Prev by Date: Re: Check-list to installing/running apps as non-admin?
- Next by Date: Re: Form does not see mouse events!!!!
- Previous by thread: Re: Check-list to installing/running apps as non-admin?
- Next by thread: Re: Check-list to installing/running apps as non-admin?
- Index(es):
Relevant Pages
|