View Full Version : Digital Signature not disabling when requested
meercat
11-27-2008, 08:11 PM
We are using the code signing successfully, but find that once you have entered the details, when you set Project Settings > Digital Signature to "No Digital Signature" it still insists on code-signing all of the exe's in the build. As this process triples the time required to build our project, it is particularly annoying for the hundreds of test builds, as we only want it on for our release candidate builds. How else do you stop this without deleting all the setup information?
linder
11-28-2008, 03:39 AM
Hello,
Project Settings > Digital Signature -> "No Digital Signature" is for the INSTALLER and UNINSTALLER, not your EXECUTABLES!
From the documentation: "Use the Digital Signature page to add an Authenticode digital signature to an installation and uninstaller application file."
Use the "Release" feature and you can control when to sign your executables in your project (using the "#code-sign application" compiler directive).
Hope this helps.
Friedrich
linder
11-28-2008, 04:58 AM
I have attached a demo project for you and some screenshots.
1) Add a compiler variable (e.g. [COMPILE_RELEASE_CANDIDATE]).
2) Add a "Release" and set [COMPILE_RELEASE_CANDIDATE] to 1 for this Release.
3) Use #ifcompvar compiler directive to do whatever you want in this Release.
Hope this helps.
Friedrich
meercat
11-28-2008, 06:31 AM
Great response, thanks Frederick, just the process I needed (but didn't know about).
linder
11-28-2008, 06:48 AM
You are very welcome :)
Friedrich
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.