Click here to Skip to main content
15,885,757 members
Home / Discussions / C#
   

C#

 
GeneralRe: Vista and access to Common Application Data folders Pin
Glen Harvy20-Mar-09 20:15
Glen Harvy20-Mar-09 20:15 
GeneralRe: Vista and access to Common Application Data folders Pin
harold aptroot21-Mar-09 1:34
harold aptroot21-Mar-09 1:34 
AnswerRe: Vista and access to Common Application Data folders Pin
tech60320-Mar-09 18:01
tech60320-Mar-09 18:01 
GeneralRe: Vista and access to Common Application Data folders Pin
Glen Harvy20-Mar-09 20:32
Glen Harvy20-Mar-09 20:32 
AnswerRe: Vista and access to Common Application Data folders Pin
Glen Harvy20-Mar-09 20:07
Glen Harvy20-Mar-09 20:07 
GeneralRe: Vista and access to Common Application Data folders Pin
Chirag B29-Jul-11 11:01
Chirag B29-Jul-11 11:01 
AnswerRe: Vista and access to Common Application Data folders Pin
DaveyM6921-Mar-09 2:03
professionalDaveyM6921-Mar-09 2:03 
GeneralRe: Vista and access to Common Application Data folders Pin
Glen Harvy21-Mar-09 11:13
Glen Harvy21-Mar-09 11:13 
Thanks for your comments.

I have made some progress:

DaveyM69 wrote:
you need to add an Application Manifest File


Actually, VS2008 adds it for you automatically and it defaults to 'asInvoker'. That's why my application runs OK when launched by the installer (by default the installer has elevated privileges) but not when the user (without elevated privileges) launches my application.

DaveyM69 wrote:
The recommendation is to make the program not require elevation, but as you know, that's not always possible/practical.


My application pops up it's own messagebox saying it can't access it's database. I included this ages ago well before Vista. I have determined that with Vista, it is because the UAC prevents access to the Common Application Data folder. The name of that folder is to me incongruous and lead me away from the fact that it cannot be read or accessed unless you have sufficient privileges. It's 'common' to all users accessing my application but not 'common' to all user privileges.

Having discovered that fact, I later discovered that my Installer (InstallAware) fails to set privileges even if I do tell it to. Apparently you need to write additional scripts to get InstallAware to do it in Vista but InstallAware's help file and support generally lacks any specific information on how to do this.

Earlier in this thread, you will read how I have discovered some code which I have now included in a program that runs at install time and therefor inherits InstallAware's elevated privileges. This code apparently sets the permissions successfully.

Unfortunately I don't even own a copy of Vista so I can't personally test this. I am waiting for a tech savvy person I know who owns Vista to test it for me. If it works, I will post a small article because frankly, I don't see what all the fuss is about in regards to the UAC and Vista.

Glen Harvy

QuestionHow to draw onto a WebBrowser form Pin
jeanbern20-Mar-09 13:36
jeanbern20-Mar-09 13:36 
GeneralRe: How to draw onto a WebBrowser form [modified] Pin
Adrian Cole20-Mar-09 14:25
Adrian Cole20-Mar-09 14:25 
GeneralRe: How to draw onto a WebBrowser form Pin
Adrian Cole20-Mar-09 14:35
Adrian Cole20-Mar-09 14:35 
GeneralRe: How to draw onto a WebBrowser form Pin
jeanbern22-Mar-09 6:21
jeanbern22-Mar-09 6:21 
GeneralRe: How to draw onto a WebBrowser form Pin
sfdsaadaadadad26-Jun-09 5:41
sfdsaadaadadad26-Jun-09 5:41 
QuestionWay to monitor API calls of programs? Pin
bbranded20-Mar-09 12:42
bbranded20-Mar-09 12:42 
AnswerRe: Way to monitor API calls of programs? Pin
Garth J Lancaster20-Mar-09 13:40
professionalGarth J Lancaster20-Mar-09 13:40 
GeneralRe: Way to monitor API calls of programs? [modified] Pin
bbranded20-Mar-09 14:11
bbranded20-Mar-09 14:11 
GeneralRe: Way to monitor API calls of programs? Pin
Garth J Lancaster20-Mar-09 14:23
professionalGarth J Lancaster20-Mar-09 14:23 
GeneralRe: Way to monitor API calls of programs? Pin
bbranded20-Mar-09 14:37
bbranded20-Mar-09 14:37 
GeneralRe: Way to monitor API calls of programs? Pin
Garth J Lancaster20-Mar-09 14:40
professionalGarth J Lancaster20-Mar-09 14:40 
QuestionHL7 Pin
M.Ambigai20-Mar-09 11:48
M.Ambigai20-Mar-09 11:48 
AnswerRe: HL7 Pin
Garth J Lancaster20-Mar-09 12:36
professionalGarth J Lancaster20-Mar-09 12:36 
AnswerRe: HL7 Pin
#realJSOP21-Mar-09 3:35
mve#realJSOP21-Mar-09 3:35 
QuestionArrayList stored in Application Settings Pin
DaDennis1220-Mar-09 11:34
DaDennis1220-Mar-09 11:34 
AnswerRe: ArrayList stored in Application Settings Pin
DaveyM6920-Mar-09 11:44
professionalDaveyM6920-Mar-09 11:44 
GeneralRe: ArrayList stored in Application Settings [modified] Pin
DaDennis1220-Mar-09 11:57
DaDennis1220-Mar-09 11:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.