Solved

MFC Vista and UAC

Posted on 2009-03-31
4
661 Views
Last Modified: 2013-11-20
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
Comment
Question by:Ocrana
  • 2
  • 2
4 Comments
 
LVL 5

Accepted Solution

by:
defi0 earned 500 total points
Comment Utility
You should use the "Require Administrator" priviledge level since this is what your application requires.
0
 

Author Comment

by:Ocrana
Comment Utility
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
 
LVL 5

Expert Comment

by:defi0
Comment Utility
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
 

Author Comment

by:Ocrana
Comment Utility
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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
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…

728 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now