Ocrana
asked on
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
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
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.
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.
ASKER
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
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
ASKER
so cause it works with devices it needs admin level, right? If I use, like example, a simple texteditor I can use invoke?
Ocrana