You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if ($wordAssemblyPath-and (Test-Path$wordAssemblyPath)) {
28
-
add-type-Path $wordAssemblyPath
29
-
Write-Output"Microsoft.Office.Interop.Word.dll installed for module."
30
-
}
31
-
else {
32
-
throw;
33
-
}
24
+
if ($wordAssemblyPath-and (Test-Path$wordAssemblyPath)) {
25
+
add-type-Path $wordAssemblyPath
26
+
Write-Output"Microsoft.Office.Interop.Word.dll installed for module."
34
27
}
35
-
catch {
36
-
throw'Error with install script. Unable to find Microsoft.Office.Interop.Word package (see https://www.nuget.org/packages/Microsoft.Office.Interop.Word)'
28
+
else {
29
+
throw;
37
30
}
38
31
}
32
+
catch {
33
+
throw'Error with install script. Unable to find Microsoft.Office.Interop.Word package (see https://www.nuget.org/packages/Microsoft.Office.Interop.Word)'
34
+
}
35
+
39
36
40
37
try {
41
38
# check if word is installed
42
39
Write-Output"Checking for Microsoft Word installation. (Module requires existing Word Installation)"
0 commit comments