Skip to content

Commit 65b9b7d

Browse files
author
Maddie Clayton
committed
try different disable method
1 parent 54de3ee commit 65b9b7d

File tree

2 files changed

+4
-33
lines changed

2 files changed

+4
-33
lines changed

build.proj

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -210,11 +210,10 @@
210210
<CallTarget Targets="BuildSetupTest"/>
211211
<!-- moved copy tasks -->
212212

213-
<Exec Command="&quot;$(PowerShellCommand)&quot; -NonInteractive -NoLogo -NoProfile -Command &quot;Start-Process -FilePath &quot;$(PowerShellCommand)&quot; -Verb RunAs -Wait -ArgumentList &quot;'Start-Transcript -Path &quot;C:\transcripts.txt&quot;;$(LibraryToolsFolder)\UpdateModules.ps1 -buildConfig $(Configuration) -scope $(Scope) -Profile Latest'&quot;&quot; " Condition="'$(Latest)' == 'true' "/>
214-
<Exec Command="type C:\transcripts.txt"/>
215-
<Exec Command="&quot;$(PowerShellCommand)&quot; -NonInteractive -NoLogo -NoProfile -Command &quot;Start-Process -FilePath &quot;$(PowerShellCommand)&quot; -Verb RunAs -Wait -ArgumentList &quot;'Start-Transcript -Path &quot;C:\transcripts.txt&quot;;$(LibraryToolsFolder)\UpdateModules.ps1 -buildConfig $(Configuration) -scope $(Scope) -Profile Stack'&quot;&quot; " Condition="'$(Stack)' == 'true' "/>
216-
<Exec Command="type C:\transcripts.txt"/>
217-
<Exec Command="type C:\transcripts.txt"/>
213+
<Exec Command="SN -Vr *">
214+
<Exec Command="&quot;$(PowerShellCommand)&quot; -NonInteractive -NoLogo -NoProfile -Command &quot;. $(LibraryToolsFolder)\UpdateModules.ps1 $(Configuration) $(Scope) -Profile Latest &quot; " Condition="'$(Latest)' == 'true' "/>
215+
<Exec Command="&quot;$(PowerShellCommand)&quot; -NonInteractive -NoLogo -NoProfile -Command &quot;. $(LibraryToolsFolder)\UpdateModules.ps1 $(Configuration) $(Scope) -Profile Stack &quot; " Condition="'$(Stack)' == 'true' "/>
216+
<Exec Command="SN -Vu *">
218217
<!-- Copying shortcut to be signed -->
219218
<Copy SourceFiles="$(LibraryRoot)tools\AzureRM\AzureRM.psd1"
220219
DestinationFolder="$(LibrarySourceFolder)\Package\$(Configuration)" Condition= " '$(NetCore)' == 'false' and '$(Latest)' == 'true'"/>

tools/UpdateModules.ps1

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -79,30 +79,6 @@ function Create-ModulePsm1
7979
}
8080
}
8181

82-
function Disable-StrongSignValidation
83-
{
84-
reg DELETE "HKLM\Software\Microsoft\StrongName\Verification" /f > $null
85-
reg ADD "HKLM\Software\Microsoft\StrongName\Verification\*,*" /f > $null
86-
if ($env:PROCESSOR_ARCHITECTURE -eq "AMD64")
87-
{
88-
reg DELETE "HKLM\Software\Wow6432Node\Microsoft\StrongName\Verification" /f > $null
89-
reg ADD "HKLM\Software\Wow6432Node\Microsoft\StrongName\Verification\*,*" /f > $null
90-
}
91-
Restart-Service msiserver
92-
}
93-
94-
function Enable-StrongSignValidation
95-
{
96-
reg DELETE "HKLM\Software\Microsoft\StrongName\Verification\*,*" /f > $null
97-
reg ADD "HKLM\Software\Microsoft\StrongName\Verification" /f > $null
98-
if ($env:PROCESSOR_ARCHITECTURE -eq "AMD64")
99-
{
100-
reg DELETE "HKLM\Software\Wow6432Node\Microsoft\StrongName\Verification\*,*" /f > $null
101-
reg ADD "HKLM\Software\Wow6432Node\Microsoft\StrongName\Verification" /f > $null
102-
}
103-
Restart-Service msiserver
104-
}
105-
10682
function Find-CompleterAttribute
10783
{
10884
[CmdletBinding()]
@@ -288,8 +264,6 @@ if ($Profile -eq "Stack")
288264
$packageFolder = "$PSScriptRoot\..\src\Stack"
289265
}
290266

291-
292-
Disable-StrongSignValidation
293267
$resourceManagerRootFolder = "$packageFolder\$buildConfig\ResourceManager\AzureResourceManager"
294268
$publishToLocal = test-path $repositoryLocation
295269
$templateLocation = "$PSScriptRoot\AzureRM.Example.psm1"
@@ -357,5 +331,3 @@ if (($scope -eq 'All') -or ($scope -eq 'AzureRM')) {
357331
Write-Host "Updated Azure module"
358332
}
359333
}
360-
361-
Enable-StrongSignValidation

0 commit comments

Comments
 (0)