Skip to content
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

add numeric install version value to windows registry on install #1953

Merged
merged 2 commits into from
Nov 12, 2024

Conversation

zackattack01
Copy link
Contributor

This is part 2 towards allowing us to improve our intune setup recommendations. This adds a new InstalledVersionNum registry key and value which is inserted during our MSI installation. This will give a REG_DWORD type version entry for intune configurations to compare against when determining update/reinstallation behavior for new packages, effectively allowing an "upgrade only" type setup.

Installing from an MSI built with these changes yields the following:

PS C:\Users\zack-\code\launcher> Get-ItemProperty 'HKLM:\Software\Kolide\Launcher\Kolide-nababe-k2\InstalledVersionNum'

(default)    : 1011006
PSPath       : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\Software\Kolide\Launcher\Kolide-nababe-k2\InstalledVersionNum
PSParentPath : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\Software\Kolide\Launcher\Kolide-nababe-k2
PSChildName  : InstalledVersionNum
PSDrive      : HKLM
PSProvider   : Microsoft.PowerShell.Core\Registry

See the full issue here for additional context.

This is just the installation portion, follow up PRs will include a similar entry to indicate the CurrentVersionNum which will take the autoupdated launcher versions into account, as well as report the value of these entries within flares

@RebeccaMahany RebeccaMahany added the component:build&packaging Build and Package label Nov 12, 2024
@zackattack01 zackattack01 added this pull request to the merge queue Nov 12, 2024
Merged via the queue into main with commit d899593 Nov 12, 2024
30 checks passed
@zackattack01 zackattack01 deleted the zack/add_win_registry_version branch November 12, 2024 22:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:build&packaging Build and Package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants