Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 681
  • Last Modified:

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
0
Ocrana
Asked:
Ocrana
  • 2
  • 2
1 Solution
 
defi0Commented:
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

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now