Skip to content

Commit a88534a

Browse files
author
Maddie Clayton
committed
restart msiserver
1 parent 7f40f6e commit a88534a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tools/UpdateModules.ps1

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ function Disable-StrongSignValidation
8888
reg DELETE "HKLM\Software\Wow6432Node\Microsoft\StrongName\Verification" /f > $null
8989
reg ADD "HKLM\Software\Wow6432Node\Microsoft\StrongName\Verification\*,*" /f > $null
9090
}
91+
Restart-Service msiserver
9192
}
9293

9394
function Enable-StrongSignValidation
@@ -99,6 +100,7 @@ function Enable-StrongSignValidation
99100
reg DELETE "HKLM\Software\Wow6432Node\Microsoft\StrongName\Verification\*,*" /f > $null
100101
reg ADD "HKLM\Software\Wow6432Node\Microsoft\StrongName\Verification" /f > $null
101102
}
103+
Restart-Service msiserver
102104
}
103105

104106
function Find-CompleterAttribute
@@ -117,9 +119,7 @@ function Find-CompleterAttribute
117119
$AllCmdlets = @()
118120
$nestedModules | ForEach-Object {
119121
$dllPath = Join-Path -Path $ModulePath -ChildPath $_
120-
Disable-StrongSignValidation
121122
$Assembly = [Reflection.Assembly]::LoadFrom($dllPath)
122-
Enable-StrongSignValidation
123123
$dllCmdlets = $Assembly.GetTypes() | Where-Object {$_.CustomAttributes.AttributeType.Name -contains "CmdletAttribute"}
124124
$AllCmdlets += $dllCmdlets
125125
}
@@ -188,9 +188,7 @@ function Find-DefaultResourceGroupCmdlets
188188
$AllCmdlets = @()
189189
$nestedModules | ForEach-Object {
190190
$dllPath = Join-Path -Path $ModulePath -ChildPath $_
191-
Disable-StrongSignValidation
192191
$Assembly = [Reflection.Assembly]::LoadFrom($dllPath)
193-
Enable-StrongSignValidation
194192
$dllCmdlets = $Assembly.GetTypes() | Where-Object {$_.CustomAttributes.AttributeType.Name -contains "CmdletAttribute"}
195193
$AllCmdlets += $dllCmdlets
196194
}
@@ -291,7 +289,7 @@ if ($Profile -eq "Stack")
291289
}
292290

293291

294-
292+
Disable-StrongSignValidation
295293
$resourceManagerRootFolder = "$packageFolder\$buildConfig\ResourceManager\AzureResourceManager"
296294
$publishToLocal = test-path $repositoryLocation
297295
$templateLocation = "$PSScriptRoot\AzureRM.Example.psm1"
@@ -358,4 +356,6 @@ if (($scope -eq 'All') -or ($scope -eq 'AzureRM')) {
358356
Create-ModulePsm1 -ModulePath $modulePath -TemplatePath $templateLocation -IsRMModule $false
359357
Write-Host "Updated Azure module"
360358
}
361-
}
359+
}
360+
361+
Enable-StrongSignValidation

0 commit comments

Comments
 (0)