Click here to Skip to main content
15,891,621 members
Home / Discussions / C#
   

C#

 
QuestionIdle processing Pin
saksp20-Mar-09 20:10
saksp20-Mar-09 20:10 
AnswerRe: Idle processing Pin
12Code20-Mar-09 20:30
12Code20-Mar-09 20:30 
AnswerRe: Idle processing Pin
Dominik Reichl21-Mar-09 1:40
Dominik Reichl21-Mar-09 1:40 
QuestionMedia Player Pin
Jahmelon20-Mar-09 19:44
Jahmelon20-Mar-09 19:44 
AnswerRe: Media Player Pin
N a v a n e e t h20-Mar-09 19:57
N a v a n e e t h20-Mar-09 19:57 
GeneralRe: Media Player Pin
Jahmelon20-Mar-09 20:06
Jahmelon20-Mar-09 20:06 
AnswerRe: Media Player Pin
varun.g20-Mar-09 20:21
varun.g20-Mar-09 20:21 
Questionstore excel in sql data base Pin
Mangesh Tomar20-Mar-09 19:29
Mangesh Tomar20-Mar-09 19:29 
AnswerRe: store excel in sql data base Pin
N a v a n e e t h20-Mar-09 19:35
N a v a n e e t h20-Mar-09 19:35 
GeneralRe: store excel in sql data base Pin
Mangesh Tomar20-Mar-09 19:55
Mangesh Tomar20-Mar-09 19:55 
Questionstegnography for data hiding in midi songs Pin
balanandakumar20-Mar-09 19:03
balanandakumar20-Mar-09 19:03 
AnswerRe: stegnography for data hiding in midi songs Pin
Michael Schubert21-Mar-09 1:07
Michael Schubert21-Mar-09 1:07 
QuestionVista and access to Common Application Data folders Pin
Glen Harvy20-Mar-09 17:16
Glen Harvy20-Mar-09 17:16 
AnswerRe: Vista and access to Common Application Data folders Pin
harold aptroot20-Mar-09 17:59
harold aptroot20-Mar-09 17:59 
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 

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.