0

I'm developing a document management solution that generates self-extracting .exe's with 7zip, then signs them with signtool... Looking at the generated .exe, I can inspect the signature by looking at the signatures tab of the properties dialog, but I want the "Are you sure you want to run..." prompt, with the signature details presented in the Publisher field. Why is windows letting me run this .exe without confirmation? What do I have to do to see "Are you sure you want to run"?

bbsimonbb
  • 27,056
  • 15
  • 80
  • 110
  • I'm not certain which of the two prompts you're talking about, but one of them normally only appears if the file has been downloaded from the internet. – Harry Johnston Nov 17 '16 at 00:21

1 Answers1

0

That's because it does not require administrator privileges. Add a .exe.manifest (MSDN) file that has requireAdministrator set.

See also difference between highestAvailable and requireAdministrator

Community
  • 1
  • 1
Thomas Weller
  • 55,411
  • 20
  • 125
  • 222
  • 1
    In terms of my self-extracting exe, it seems to depend on the module I use. If I Use 7zCon.sfx, no prompt. If I use 7z.sfx, I get the prompt. – bbsimonbb Nov 16 '16 at 13:31