Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Setup / September 2006

Tip: Looking for answers? Try searching our database.

limited users can not run my application

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Marcus - 11 Sep 2006 08:58 GMT
I have created a setup project in VS2003 which installs my small
application.
The user gets to set which directory he/she wants to install the app.
When limited users try to run the app though, they cant.
I dont need the application to work on an intranet or such, it is only
a local computer with some Windows accounts on it, some limited and
some administrative.

How can I in my setup project make the application runnable for all
users, no matter what level (limited, administrative)?

I dont want my customers to need to go in and copying files or making
links or making all users administrative or something alike. I just
want my application by default to be runnable by all.
Phil Wilson - 11 Sep 2006 21:38 GMT
This doesn't seem to me to be anything to do with the setup - and anyway
setups don't cause a security breach by allowing a limited user to run an
app as though they were an administrator.

Your app just needs to be coded to know what folders and registry locations
can be used by limited users. Example: a common error is to attempt to
create files in the installation folder (Program Files\.....etc) but limited
users don't have write access to this folder. That's why there are folders
in Documents & Settings for this situation. The same is true of most entries
in HKLM, which is why you should be using HKCU.

Signature

Phil Wilson
[Microsoft MVP Windows Installer]

>I have created a setup project in VS2003 which installs my small
> application.
[quoted text clipped - 10 lines]
> links or making all users administrative or something alike. I just
> want my application by default to be runnable by all.
Marcus - 12 Sep 2006 08:43 GMT
Phil Wilson skrev:

> This doesn't seem to me to be anything to do with the setup - and anyway
> setups don't cause a security breach by allowing a limited user to run an
[quoted text clipped - 6 lines]
> in Documents & Settings for this situation. The same is true of most entries
> in HKLM, which is why you should be using HKCU.

ok, thanks. I did not know that Program folder had restricted access
for limited users. I will try re-arrange folders and files in my
application to use the "documents and settings/all users/application
data/myAppDir/" path

Please see my recent post "How do I add a directory in VS2003 setup
project", cause I am having problems with creating the "documents and
settings/all users/application data/myAppDir/" folder.

I really hope you can help me out.

thanks.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.