@@ -156,12 +156,6 @@ $installerArgs = "/SILENT /NORESTART /SUPPRESSMSGBOXES /LOG=$env:TEMP\Rubberduck
156
156
Start-Process - FilePath $tempInstallerPath - ArgumentList $installerArgs - Wait
157
157
# The -Wait parameter ensures that the script waits for the installation to complete before proceeding.
158
158
159
- # Output logs to the console
160
- # The script uses the Get-Content cmdlet to read the installation log file and display its contents in the console.
161
- # This can help troubleshoot any issues that may arise during the installation process.
162
- # Note: Use -Tail 500 to limit the output to the last 500 lines of the log file.
163
- Get-Content - Path " $env: TEMP \RubberduckInstall.log" | Out-Host
164
-
165
159
# Verify that Rubberduck was successfully installed by checking registry entries
166
160
function Test-RubberduckInstalled {
167
161
$addinProgId = " Rubberduck.Extension"
@@ -224,6 +218,12 @@ $rubberduckInstalled = Test-RubberduckInstalled
224
218
if (-not $rubberduckInstalled ) {
225
219
Write-Host " ⚠️ Warning: Rubberduck installation could not be verified. Office addins may not function correctly."
226
220
Write-Host " Please check the installation log for more details or try reinstalling manually."
221
+
222
+ # Output logs to the console
223
+ # The script uses the Get-Content cmdlet to read the installation log file and display its contents in the console.
224
+ # This can help troubleshoot any issues that may arise during the installation process.
225
+ # Note: Use -Tail 500 to limit the output to the last 500 lines of the log file.
226
+ Get-Content - Path " $env: TEMP \RubberduckInstall.log" | Out-Host
227
227
} else {
228
228
Write-Host " 🎉 Rubberduck installed successfully and is ready to use!"
229
229
}
0 commit comments