To run exe which require administrator right, i use ShellExecute to run as admin in Initinstance method. It works fine and my exe run as admin.
But UAC windows give a message "An unidentified program want to access..........."
It's not secure. http://www.codeproject.com/KB/vista-...12&fr=26#xx0xx
To make my program secure i follow above link, create and add bin file to my project and write below contents in it.
But it does not work. Please suggest i want a window like in given link
thanks for your reply.
Signtool exe is part of Windows SDK 7.1
Suppose i have an exe from Visual Studio6.0 (vc6) and i use signtool for this exe, when a run my vc6 exe at any system then will it ask for .net library at that system? Generally vc6 exe does not ask it because it's not part of .net framework.
About the signature for exe, i think i need to buy a digital signature. right
Yes, you need to buy a digital code signing signature.
Using signtool does not alter your exe file in any way, except for adding the signature itself. Thus, if your exe does not need .NET, then, after signing, it still will not need .NET.
Generally vc6 exe does not ask it because it's not part of .net framework.
And just to add to what Marc replied. Just because you use a later version of Visual C++ (like VC9 or VC10) beyond VC6, doesn't mean your C++ exe requires .net.
I download the codesign tool, create a new certificate and run below command to sign exe
signcode.exe -t <timestamp URL> -spc mycert.spc -v mykey.pvk "<file to be signed
but when i run my exe on windowsy, it still display same message "unidentified program"
I use ShellExecuteEx in InitInstance to run exe as admin
After going through link suggested by MarkG, i download the signature tool, create a test certificate to verify, and sign my exe.
When i launch exe on windows7 it still giving same message "unidentified program"
In my exe i use ShellExecuteEx to run as admin.
I'll try to upload a sample
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.