all groups > visual studio .net setup > march 2007 >
You're in the

visual studio .net setup

group:

Using custom action to change users group right


Using custom action to change users group right Dany C.
3/24/2007 8:37:05 AM
visual studio .net setup:
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,
Re: Using custom action to change users group right Phil Wilson
3/24/2007 10:42:56 AM
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.
--
Phil Wilson
[Microsoft MVP-Windows Installer]
[quoted text, click to view]

Re: Using custom action to change users group right Dany C.
3/24/2007 10:51:08 AM
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?


[quoted text, click to view]
Re: Using custom action to change users group right Dany C.
3/24/2007 10:55:05 AM
Phil,

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

[quoted text, click to view]
Re: Using custom action to change users group right Phil Wilson
4/8/2007 11:11:32 AM
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).
--
Phil Wilson
[Microsoft MVP-Windows Installer]
Definitive Guide to Windows Installer
http://apress.com/book/bookDisplay.html?bID=280

[quoted text, click to view]

AddThis Social Bookmark Button