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 / Visual Studio.NET / Setup / April 2007

Tip: Looking for answers? Try searching our database.

Using custom action to change users group right

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dany C. - 24 Mar 2007 16:37 GMT
Our application is installed in the programs files directory and the
application needs to write in this directory. However, if the current windows
user has limited rights (not an administrator) the program will be fail
because of insufficient rights.

The application is deployed by an administrator through windows installer
project.  How can we create a custom action in a setup project to give the
users group of the local computer the right to write in the application
directory?

Thanks,
Phil Wilson - 24 Mar 2007 18:42 GMT
1) That's not a setup question, it's a question about the APIs to use,
usually the Lsaxxx set.
2) That really is a terrible idea. Your application design is wrong if it
needs to write to the Programfiles folder and run as standard user, and
giving all the users on the machine the right to create files in that folder
is even more wrong.
Signature

Phil Wilson
[Microsoft MVP-Windows Installer]

> Our application is installed in the programs files directory and the
> application needs to write in this directory. However, if the current
[quoted text clipped - 8 lines]
>
> Thanks,
Dany C. - 24 Mar 2007 18:51 GMT
Phil,

The application is a smart client and the executable is update as required.
The application is also share by all user.  Do you have a better idea?

> 1) That's not a setup question, it's a question about the APIs to use,
> usually the Lsaxxx set.
[quoted text clipped - 14 lines]
> >
> > Thanks,
Dany C. - 24 Mar 2007 18:55 GMT
Phil,

The ProgramFiles folder that i referred to is: ProgramFiles/Compagnie/Product

> 1) That's not a setup question, it's a question about the APIs to use,
> usually the Lsaxxx set.
[quoted text clipped - 14 lines]
> >
> > Thanks,
Phil Wilson - 08 Apr 2007 19:11 GMT
Limited users can't write files to the Program Files folder.  The design of
the app is wrong because it's got conflicting requirements. It can't be
available for limited user accounts AND create files in ProgramFiles. Fixing
this by compomising system security is a bad idea, and it shouldn't really
be your problem (unless you authored the app).
Signature

Phil Wilson
[Microsoft MVP-Windows Installer]
Definitive Guide to Windows Installer
http://apress.com/book/bookDisplay.html?bID=280

> Our application is installed in the programs files directory and the
> application needs to write in this directory. However, if the current
[quoted text clipped - 8 lines]
>
> Thanks,

Rate this thread:







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.