Skip to content

Commit 7aa5a61

Browse files
committed
Adjust installation logs
1 parent 0069de9 commit 7aa5a61

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

Main.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,10 @@ Write-Host "========================="
5656

5757
Write-Host "Install Rubberduck"
5858
. "$PSScriptRoot/scripts/Install-Rubberduck-VBA.ps1" $officeApps
59+
Write-Host "========================="
5960

6061
# Enable VBOM for each Office application
62+
Write-Host "Enabling VBOM for Office applications"
6163
foreach ($app in $officeApps) {
6264
Write-Host "Enabling VBOM for $app"
6365
. "$PSScriptRoot/scripts/Enable-VBOM.ps1" $app

scripts/Install-Rubberduck-VBA.ps1

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -156,12 +156,6 @@ $installerArgs = "/SILENT /NORESTART /SUPPRESSMSGBOXES /LOG=$env:TEMP\Rubberduck
156156
Start-Process -FilePath $tempInstallerPath -ArgumentList $installerArgs -Wait
157157
# The -Wait parameter ensures that the script waits for the installation to complete before proceeding.
158158

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-
165159
# Verify that Rubberduck was successfully installed by checking registry entries
166160
function Test-RubberduckInstalled {
167161
$addinProgId = "Rubberduck.Extension"
@@ -224,6 +218,12 @@ $rubberduckInstalled = Test-RubberduckInstalled
224218
if (-not $rubberduckInstalled) {
225219
Write-Host "⚠️ Warning: Rubberduck installation could not be verified. Office addins may not function correctly."
226220
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
227227
} else {
228228
Write-Host "🎉 Rubberduck installed successfully and is ready to use!"
229229
}

0 commit comments

Comments
 (0)