Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > Permissions in a setup project
 

Permissions in a setup project

I am using vs2008 and I have a Setup Project. This setup project installs certain files where the user specifies. The problem is the user is not a administrator on the box. So when there is a update to the application the installer goes and gets the new files and errors when it tries to copy them down. Is there a way to set folder permissions for certain folders in a setup project.

Thank you
Rohrer  Wednesday, July 22, 2009 12:05 PM

Surely if a non-administrator can install the app then it can also be updated by a non-administrator? Or does an administrator install the app and a non-administrator use it?


Phil Wilson
PhilWilson  Thursday, July 23, 2009 12:17 AM
That is correct. A administrator usually installs the application. The application is self updating ( Smart Client). The first install is fine becuase its usually done by a administrator. But when there is updates the installer needs to copy down files from the server and that is were it fails.

Rohrer  Thursday, July 23, 2009 1:33 AM
Hi Rohrer,

You can install the update with elevated credentials by using psexec tools. But the application may prompt the user to input the administrator's password. You can find the usage of the psexec tool from here .

Best regards,
Bruce Zhou
Please mark the replies as answers if they help and unmark if they don't.
Bruce.Zhou  Thursday, July 23, 2009 9:31 AM
Hi Rohrer,

Is the problem solved? If not, please feel free to let me know.

Best regards,
Bruce Zhou
Please mark the replies as answers if they help and unmark if they don't.
Bruce.Zhou  Monday, July 27, 2009 6:12 AM

You can use google to search for other answers

Custom Search

More Threads

• Uninstall prerequisite
• What happens when we publish....
• What is the correct way to do impersonation in a click-once deployed app?
• deploy activex via msi instead of cab
• When I UnInstall Application folder is not delete
• Modifying .application dynamically?
• Setup questions...
• Detecting and Installing Java Runtime
• User interface: 2 same dialog?
• Create log files for setups.