SignClickOnceApp.ps1 signs all parts of a Microsoft ClickOnce Application using a SHA256, preventing Unknown Publisher warnings being shown to end users of your app.
Microsoft ClickOnce Applications Signed with a SHA256 Certificate show as Unknown Publisher during installation, ClickOnce Applications signed with a SHA1 Certificate show an Unknown Publisher SmartScreen Warning once installed, this happens because:
This script signs the various parts of the ClickOnce Application so that both the ClickOnce Installer and SmartScreen are happy.
-VSRootThe Visual Studio Projects folder, if not provided .\Documents\Visual Studio 2015\Projects will be assumed
-SolutionNameThe Name of the Visual Studio Solution (Folder), if not provided the user is prompted.
-ProjectNameThe Name of the Visual Studio Project (Folder), if not provided the user is prompted.
-SHA256CertThumbprintThe Thumbprint of the SHA256 Code Signing Certificate, if not provided the user is prompted.
-TimeStampingServerThe Time Stamping Server to be used while signing, if not provided the user is prompted.
-PublisherNameThe Publisher to be set on the ClickOnce files, if not provided the user is prompted.
-VerboseWrites verbose output.
Best: 5 Worst: 5 Count: 1
Why not write the first one?
SignClickOnceApp by Joe Pitt is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International Licence .