MFC Vista and UAC

Hello,

I have some problems with UAC on Vista and I hope to get here some help. I have a software that works with DVD drive.(Backup to DVD). This software use:
- Main Exe
- DLL with IOCTL (DVDBurn)
- DLL for Read Data
Now I want to install to Vista with a clean UAC rule to avoid VirtualStore usage.

I used: Add manifest with mt.exe to the main.exe. I tried with execuetleve "Invoker". Invoker was the most recommended with a google search.
The Installer I use, I set also to "invoker".

But finaly after installing and try to run the software, it crashed everytime. If I start the software with "Start with Adminrights" it works. So why Invoker is not good?
I want to avoid that the user have to allow each time the start with the UAC elevator.

Thanks,
Ocrana
OcranaAsked:
Who is Participating?
 
defi0Connect With a Mentor Commented:
You should use the "Require Administrator" priviledge level since this is what your application requires.
0
 
OcranaAuthor Commented:
Hi,

so cause it works with devices it needs admin level, right? If I use, like example, a simple texteditor I can use invoke?

Ocrana
0
 
defi0Commented:
Exactly.
This is why your app doesn't work if you start it "normally", but works if you start it with admin rights.
Note that you should handle the case where your app is not run with admin rights, not crash. You're probably ignoring an error returned from a system call.
0
 
OcranaAuthor Commented:
Hi,

yes, this is true. The new version do this all well, we have this problem with an older version where we have to deliver the users a "temporary" fix.

Thanks,

Ocrana
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.