Skip to content

Windows TL;DR dev env: install all available updates first#10691

Closed
Al2Klimov wants to merge 1 commit intomasterfrom
win-dev-tldr-update
Closed

Windows TL;DR dev env: install all available updates first#10691
Al2Klimov wants to merge 1 commit intomasterfrom
win-dev-tldr-update

Conversation

@Al2Klimov
Copy link
Copy Markdown
Member

otherwise, doc/win-dev.ps1 will complain:

".NET 4.8 is not installed or may need a reboot to complete installation."

As a dev, I have to setup an Icinga Windows dev env from time to time. This shall just work.

(Guess who hurried into an admin PS to run

$pause = (Get-Date).AddDays(100000)
$pause = $pause.ToUniversalTime().ToString("yyyy-MM-ddTHH:mm:ssZ")
Set-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings' -Name 'PauseUpdatesExpiryTime' -Value $pause

and wondered why doc/win-dev.ps1 isn't working... 🙈)

otherwise, `doc/win-dev.ps1` will complain:

".NET 4.8 is not installed or may need a reboot to complete installation."
@Al2Klimov Al2Klimov added this to the 2.16.0 milestone Jan 22, 2026
@Al2Klimov Al2Klimov added bug Something isn't working area/documentation End-user or developer help area/windows Windows agent and plugins consider backporting Should be considered for inclusion in a bugfix release labels Jan 22, 2026
@cla-bot cla-bot Bot added the cla/signed label Jan 22, 2026
@yhabteab
Copy link
Copy Markdown
Member

Seriously? Our dev docs should tell users to install all their windows update first before doing something else (which btw. the commands you posted in your PR desc don't even have anything to do with Icinga 2)? Maybe it's just me, but seriously, a PR for this change?

@Al2Klimov
Copy link
Copy Markdown
Member Author

Al2Klimov commented Jan 23, 2026

Our dev docs should tell users to install all their windows update first before doing something else

doc/win-dev.ps1 shall just work. E.g the public NWS Windows 10 image is literally ancient. Updating takes, like, centuries on the standard (s) flavor...

which btw. the commands you posted in your PR desc don't even have anything to do with Icinga 2

... and that's why I've turned them off. Just imagine me pausing the updates for 7 days in the GUI (every 7 days) instead of these commands. Same thing.

@julianbrost
Copy link
Copy Markdown
Member

I don't see a reason for that change either. There really isn't a reason why building Icinga 2 should need the very latest Windows updates, it should work on a reasonably up-to-date system.

otherwise, doc/win-dev.ps1 will complain:

".NET 4.8 is not installed or may need a reboot to complete installation."

.NET 4.8 was released in 2019, if your system is that old, that's your problem, not one of our documentation.

E.g the public NWS Windows 10 image is literally ancient. Updating takes, like, centuries on the standard (s) flavor...

Well, maybe that should then be fixed. Or even better: just don't use a Windows version that's past its end of life?

Just imagine me pausing the updates for 7 days in the GUI (every 7 days) instead of these commands. Same thing.

Well, that's a bad practice in the first place, maybe you shouldn't be doing that.

@julianbrost julianbrost closed this Mar 2, 2026
@julianbrost julianbrost removed this from the 2.16.0 milestone Mar 2, 2026
@julianbrost julianbrost removed bug Something isn't working consider backporting Should be considered for inclusion in a bugfix release labels Mar 2, 2026
@yhabteab yhabteab deleted the win-dev-tldr-update branch March 2, 2026 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/documentation End-user or developer help area/windows Windows agent and plugins cla/signed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants