We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 20c76a1 + 290ce4f commit b52d5dbCopy full SHA for b52d5db
1 file changed
templates/inspect.ps1.erb
@@ -1,3 +1,10 @@
1
+$is_already_installed = Get-ChildItem -Path cert:\<%= @root_store %>\<%= @store_dir %> -Recurse | select thumbprint | where { $_.thumbprint -eq '<%= @thumbprint %>' }
2
+
3
+if ([string]::IsNullOrEmpty($is_already_installed) -eq $False) {
4
+ Remove-Item $MyINvocation.InvocationName
5
+ exit 1
6
+}
7
8
$pfx = new-object System.Security.Cryptography.X509Certificates.X509Certificate2
9
10
$certificate = gi "<%= @location %>\<%= @name %>"
0 commit comments