-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix bundling unwanted files in MSI #583
Conversation
…allers do not make their way into subsequent installers
…tedFilesInMsi # Conflicts: # installer/Octopus.Tentacle.Installer/Product.wxs
@@ -49,6 +49,7 @@ tools | |||
|
|||
_artifacts | |||
_build | |||
_test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When tests clean up after themselves, we don't need this. But when they don't, it's a Git mess
This pull request has been linked to Shortcut Story #59022: Ensure net6.0 only installs required files. |
@@ -158,6 +158,7 @@ void PackWindowsInstallers(MSBuildTargetPlatform platform, AbsolutePath wixNuget | |||
{ | |||
var installerDirectory = BuildDirectory / "Installer"; | |||
FileSystemTasks.EnsureExistingDirectory(installerDirectory); | |||
FileSystemTasks.EnsureCleanDirectory(installerDirectory); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good spot
[sc-59022]
Background
We found that the Tentacle Manager was being shipped in the net6.0 MSI, when is shouldn't be.
Results
Related to #584
Before
We generate the files to include in Wix using Heat.exe. This exe then overrides the
Tentacle.Generated.wxs
file with what should be installed.Before we run Heat.exe, we copy all the files we need for the MSI being built into the
_build\Installer
folder, and then tell Heat.exe to include everything in there.But we don't clear that folder between MSI builds. So any file from a previous MSI build will be included in the next MSI (unless it's overridden, which most of them are).
After
We now clear the
_build\Installer
folder so that the Tentacle Manager files from the previous MSI build are not included in the net6.0 MSIs anymore.Below is output from a test installation. Note we order by type, and that there is no
Octopus.Manager.Tentacle.exe
Also, note the file size changes before and after.
Before
After
How to review this PR
Quality ✔️
Pre-requisites