开发者

How to make changes to the C: directory via ClickOnce deployment?

开发者 https://www.devze.com 2023-04-01 16:59 出处:网络
I intend to add files inthe C: of a client machine that checks for updatesvia ClickOnce Deployment ..If it is possible , I would li开发者_如何学编程ke to know how to do it . It is not possible, becaus

I intend to add files in the C: of a client machine that checks for updates via ClickOnce Deployment .. If it is possible , I would li开发者_如何学编程ke to know how to do it .


It is not possible, because the C:\ root folder in Windows does not grant write permissions to standard users by default (it's been this way since Windows 2000) and a big purpose of ClickOnce is for IT departments to allow end users to install and update clickonce apps without having to grant them additional security permissions on their local machines.

Anyway, keeping files in this location is a really poor practice. There's no good reason to need to do this; much better to put this kind of thing in places like the user's App Data folder or the default/public documents folder.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号