[CMake] How to codesign .msi from WIX/CPack?
David Cole
DLRdave at aol.com
Wed Sep 7 09:10:23 EDT 2016
There may be a hook at the CPack level you can implement, but I'd have to dig to figure out what it is and if it even presently exists.
The easy thing to do would be to implement a custom target which does two custom commands: the first the same as CPack (the built-in package target) and the second, a custom command to sign the generated .msi file.
David
> On Sep 6, 2016, at 7:52 PM, Eric Wing <ewmailing at gmail.com> wrote:
>
> I'm finally trying the WIX/CPack MSI generator. Pretty nice!
>
> One thing I need to do is instruct the build process to codesign via
> signtool.exe. I've managed to figure out how to codesign my .exe via a
> POST_BUILD add_custom_command step.
>
> But now I would like to make sure the .msi that gets generated also
> gets code signed. But I can't figure out how to do it.
>
>
> I seem to need at least two things:
>
> 1) A post-build hook into the PACKAGE target (add_custom_command
> doesn't seem to do anything when I try to refer to this target).
>
> 2) The name and location of the .msi that CPack/WIX generated so I can
> refer to it with the signtool command.
>
>
> Any advice?
>
> Thanks,
> Eric
> --
>
> Powered by www.kitware.com
>
> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
>
> Kitware offers various services to support the CMake community. For more information on each offering, please visit:
>
> CMake Support: http://cmake.org/cmake/help/support.html
> CMake Consulting: http://cmake.org/cmake/help/consulting.html
> CMake Training Courses: http://cmake.org/cmake/help/training.html
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/cmake
More information about the CMake
mailing list