CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2005
    Posts
    226

    How to Sign executable for Vista etc.

    I was playing around with just running the IDE on Vista under a non-admin account and I got the following error: An unidentified program wants access to your computer

    So I tried to sign it by doing the following:


    Code:
    ---make a test certificate:
    Makecert -r -pe -sr localMachine -ss demostore -n "CN=DemoCert" 
    
    ---sign it:
    Signtool Sign /v /s demostore /n DemoCert vb6.exe
    
    --Add certificate to the store:
    Certmgr -add democert.cer -s -r localMachine Root
    No errors, but no luck. Still get the same error. Any ideas? Also, how does one sign their final .exe for distribution/install?

    It seems like when you do an install, Vista gives your .exe admin rights by default. I was able to get VB6.exe to run under a non-admin account but first I had to Right Click/Properties/Compatibility tab/ and uncheck the run as admin.


    --hope you all had a good Easter too!

  2. #2
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,284

    Re: How to Sign executable for Vista etc.

    I have a question, may seem silly, but still, eventually my route might help you..

    Are these your own Digital Certificates, are are you making use of Verisign for your certificates ¿

  3. #3
    Join Date
    Mar 2005
    Posts
    226

    Re: How to Sign executable for Vista etc.

    Makecert allows you to make your own test certificates or so the story goes.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured