PDA

View Full Version : Ask for admin and sb set for asinvoker



NewsArchive
05-23-2013, 01:32 PM
The utility I am working on is set for AsInvoker but when I run it it wants the admin uac.

First time I have worked on something other than installs that are always set for admin.

Is there another setting for this?

Jimmy

NewsArchive
05-23-2013, 01:32 PM
Was it ever set to require admin before?

I've had that happen, where the computer doesn't forget that it was
once admin. Renaming the exe seemed to help.

Jeff Slarve
www.jssoftware.com
www.twitter.com/jslarve
I'll search help files & Google for you.

NewsArchive
05-24-2013, 01:02 AM
I did rename it and it still asks for Admin. I even commented everything out and still get the same
message from windows. I use this to get the registry's digital id. So I commented all out and
changed to 32 bit. Still the same.

Maybe someone else has an answer.

Jimmy Rogers

NewsArchive
05-24-2013, 01:02 AM
Jimmy,

My first idea was that a Compatibility Mode setting does it (if
compatibility mode is set to "Run this program as administrator"). But if
you have renamed the .exe and you still see the elevation prompt then there
must be another reason for it.

If you are interested, please send me the main executable (no .DLL and no
install, only the .EXE) and I'll check the embedded manifest for you.

Friedrich

NewsArchive
05-24-2013, 07:51 AM
I plugged in my code to a copy of the AsInvoker example project and it works.

Compared all settings beween the 2 different projects and I can see nothing different. Other than
the dialog.

I can email the file to you? If so the .exe will change to .exx. Do you have another way?

Jim

NewsArchive
05-24-2013, 07:52 AM
Jimmy,

> I can email the file to you? If so the .exe will change to .exx.
> Do you have another way?

Can you ZIP the EXE and send it to me? I'll then check your embedded
manifest.

Friedrich

NewsArchive
05-24-2013, 11:10 AM
Jimmy,

FxDPI_2.exe is correctly manifested as "asInvoker" and does not give any
elevation prompt on UAC-aware operating systems. BTW, I only see the
"Finish" dialog.

Perhaps you start (from that FxDPI_2.exe) another program elevated? This
will then result in an elevation prompt (from the other program).

But the .EXE you sent will not prompt for elevation (by default).

Friedrich

NewsArchive
05-25-2013, 02:13 AM
I have made a copy of the asInvoker project and placed my code in it. removed the dialog and all is
working at this time.

Jeff had to be right because Friedrich found no problem with the exe. I did change names on the file
but until I compiled from a new project it started working on my xp,win7 and win8 computers as user
with no admin rights.

So accessing the registry using SB 64bit settings work with no admin rights required.

What a great product SB is.

Jim