Compiling a one-click application requiring an administrator?

Many of my programs require writing files to the hard drive. When I first made these programs for XP, they did a great job. Now I'm less knowledgeable about UAC (I recently got a new laptop). And for future customers ... I noticed that the potential for a LOT of annoying error messages .... and, frankly, if the program can not write data to the hard drive or flash drive ... it makes no sense to run it .. ..

Several times I tried to create a requirement in the manifest for administrator or user access ... I am not sure that something else will not solve the problem ... but failed because a single click has security features to prevent this.

I would rather not tell my clients how to make the program run as administrator by editing the file properties ... I would really like for you to have a convenient pop-up window, for example, that you will see new programs such as iTunes or Filezilla show whether they conflict with the UAC, requesting the privileges they need.

I would really like to do this, but had little success.

All tips that can fix this difficult problem are appreciated.

Thank.

+3
source share
1 answer

-, , ClickOnce . " ClickOnce".

Windows Vista, Microsoft , , . Program Files; LocalApplicationData . Windows 7.

, ?

+4

Source: https://habr.com/ru/post/1746934/


All Articles