MFC Vista and UAC

Posted on 2009-03-31
Medium Priority
Last Modified: 2013-11-20

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.

Question by:Ocrana
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2

Accepted Solution

defi0 earned 2000 total points
ID: 24027889
You should use the "Require Administrator" priviledge level since this is what your application requires.

Author Comment

ID: 24029184

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


Expert Comment

ID: 24029234
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.

Author Comment

ID: 24029255

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.



Featured Post

Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are many reasons a PC runs slower than when it was new, ranging from malicious software intended to mess things up to simple general Windows use.  Your PC performance may slowly degrade over time without you noticing but when you buy a PC from…
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…
Suggested Courses

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question