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

[dev.icinga.com #11449] Build 64-bit packages for Windows #4064

Closed
icinga-migration opened this issue Mar 25, 2016 · 20 comments

Comments

Projects
None yet
1 participant
@icinga-migration
Copy link
Member

commented Mar 25, 2016

This issue has been migrated from Redmine: https://dev.icinga.com/issues/11449

Created by TheFlyingCorpse on 2016-03-25 12:59:00 +00:00

Assignee: gbeutner
Status: Resolved (closed on 2016-04-20 07:54:21 +00:00)
Target Version: 2.4.5
Last Update: 2016-04-20 08:16:02 +00:00 (in Redmine)

Backport?: Already backported
Include in Changelog: 1

Icinga2 will not work on Windows Server 2016 that arrives sometime in the next quarter, as it does not have any WOW6432 environment to run under.

It is not going to accept .msi installations, it requires a package type called .appx.
If Icinga2 switches over to use .msi installations, it appears the WiX framework has a solution to create .appx from the same source.

Changesets

2016-03-30 09:47:39 +00:00 by (unknown) c5b7f90

Add preliminary support for 64-bit packages

refs #11449

2016-03-30 16:59:23 +00:00 by (unknown) b9228e4

Implement support for running custom install/uninstall actions

refs #11449

2016-03-31 08:25:44 +00:00 by (unknown) 173b2d9

Add missing pre and post installation commands

refs #11449

2016-03-31 08:26:23 +00:00 by (unknown) f9b5a9a

Remove support for NSIS

refs #11449

2016-03-31 11:54:10 +00:00 by (unknown) 525b5bb

Make sure config files aren't overwritten during updates

refs #11449

2016-03-31 11:56:28 +00:00 by (unknown) bd6975d

Remove unused code in the Windows wizard

refs #11449

2016-03-31 12:17:32 +00:00 by (unknown) 28c6bc8

Add missing MkDirP call

refs #11449

2016-03-31 12:53:54 +00:00 by (unknown) 6bf3225

Implement support for running custom install/uninstall actions

refs #11449

2016-03-31 12:53:54 +00:00 by (unknown) 14db2f0

Add missing pre and post installation commands

refs #11449

2016-03-31 12:53:54 +00:00 by (unknown) 782fce7

Remove support for NSIS

refs #11449

2016-03-31 12:53:54 +00:00 by (unknown) 948c8f1

Make sure config files aren't overwritten during updates

refs #11449

2016-03-31 12:53:54 +00:00 by (unknown) dc09f5f

Remove unused code in the Windows wizard

refs #11449

2016-03-31 12:53:54 +00:00 by (unknown) 7b41891

Add missing MkDirP call

refs #11449

2016-04-01 05:37:03 +00:00 by (unknown) b0264db

Hide console windows during installation

refs #11449

2016-04-01 06:25:36 +00:00 by (unknown) c59d678

Implement support for upgrading NSIS-based installations

refs #11449

2016-04-01 06:42:58 +00:00 by (unknown) 327d122

Implement support for upgrading NSIS-based installations

refs #11449

2016-04-01 09:44:02 +00:00 by (unknown) 3715f30

Fix incorrect path for the X509 certificates on Windows

refs #11449

2016-04-11 11:42:03 +00:00 by gbeutner 5da2762

Add new images for the Windows installer

refs #11449

2016-04-11 12:55:39 +00:00 by gbeutner f59e086

Add new images for the Windows installer

refs #11449

2016-04-11 16:02:56 +00:00 by gbeutner d4f4d57

Add new images for the Windows installer

refs #11449

2016-04-11 16:15:14 +00:00 by (unknown) 9deb1f7

Remove 1px border around the dialog banner image

refs #11449

2016-04-12 06:50:19 +00:00 by gbeutner ce3be7a

Make sure the VC Runtime merge module is added to the MSI package

refs #11449

2016-04-12 10:22:46 +00:00 by gbeutner df61b49

Update banner for the Windows setup wizard

refs #11449

2016-04-12 10:27:33 +00:00 by gbeutner 4fe7076

Update Chocolatey scripts to support the new MSI package

refs #11449

2016-04-12 11:13:21 +00:00 by gbeutner d8c81fd

Ensure that KB2999226 is installed

refs #11449

2016-04-12 12:11:11 +00:00 by gbeutner a11b9d3

Make sure the Windows service is stopped before we try to replace/remove icinga2.exe

refs #11449

2016-04-12 12:33:47 +00:00 by gbeutner 5181a7f

Make sure the Windows service is stopped before we try to replace/remove icinga2.exe

refs #11449

2016-04-13 06:58:53 +00:00 by gbeutner 187ee0d

Disable MSI restart manager

refs #11449

2016-04-13 10:51:24 +00:00 by gbeutner 427c1b9

Create symlink before running the NSIS uninstaller

refs #11449

2016-04-13 19:32:20 +00:00 by gbeutner 5633440

Make sure the etc and var directories are in the common data directory

refs #11449

2016-04-13 19:44:15 +00:00 by (unknown) 1c310c3

Replace the agent wizard banner

refs #11449

2016-04-14 05:04:36 +00:00 by gbeutner 2b796ab

Wait for uninstall.exe to terminate

refs #11449

2016-04-14 05:51:23 +00:00 by gbeutner 4f697c8

Fix arguments for uninstall.exe

refs #11449

2016-04-14 10:16:45 +00:00 by (unknown) 63a7453

Make sure NSIS-based installations are uninstalled before we copy the new
files

refs #11449

2016-04-14 12:08:18 +00:00 by (unknown) 936bd4a

Fix support for building debug MSI packages

refs #11449

2016-04-14 12:14:57 +00:00 by gbeutner bff4a13

Remove cmake_policy call

refs #11449

2016-04-14 12:24:56 +00:00 by (unknown) 0d39c73

Remove the Icinga 2 directory (if it's empty) after running uninstall.exe

refs #11449

2016-04-14 12:39:48 +00:00 by (unknown) e4615e8

Use _rmdir instead of _unlink

refs #11449

2016-04-14 12:58:13 +00:00 by (unknown) 5c04331

Fix include for icinga2.wixpatch (again)

refs #11449

2016-04-14 17:37:38 +00:00 by (unknown) 8b9bbd6

Fix "Run Icinga 2 wizard" option in the installer

refs #11449

2016-04-18 13:33:20 +00:00 by gbeutner 6b1b70d

Use SHFileOperation instead of MoveFileEx

refs #11449

2016-04-18 13:41:26 +00:00 by gbeutner 7316208

Use SHFileOperation instead of MoveFileEx

refs #11449

2016-04-18 14:46:27 +00:00 by gbeutner 913bfe4

Move user data before running the uninstaller

refs #11449

2016-04-19 14:10:30 +00:00 by mfriedrich 7aafcf1

Windows Wizard: Fix 'Examine Config' directory

refs #11449

2016-04-20 08:07:25 +00:00 by (unknown) 7b37bd8

Add preliminary support for 64-bit packages

refs #11449

2016-04-20 08:07:47 +00:00 by (unknown) 389cb54

Implement support for running custom install/uninstall actions

refs #11449

2016-04-20 08:07:50 +00:00 by (unknown) 0170995

Add missing pre and post installation commands

refs #11449

2016-04-20 08:07:50 +00:00 by (unknown) 5c77e85

Remove support for NSIS

refs #11449

2016-04-20 08:07:50 +00:00 by (unknown) 9ce63aa

Make sure config files aren't overwritten during updates

refs #11449

2016-04-20 08:07:50 +00:00 by (unknown) 0a96f41

Remove unused code in the Windows wizard

refs #11449

2016-04-20 08:07:51 +00:00 by (unknown) fe5cef4

Add missing MkDirP call

refs #11449

2016-04-20 08:07:51 +00:00 by (unknown) e04278e

Hide console windows during installation

refs #11449

2016-04-20 08:07:51 +00:00 by (unknown) 53cb185

Implement support for upgrading NSIS-based installations

refs #11449

2016-04-20 08:09:31 +00:00 by (unknown) 909845c

Fix incorrect path for the X509 certificates on Windows

refs #11449

2016-04-20 08:09:34 +00:00 by gbeutner b27455c

Add new images for the Windows installer

refs #11449

2016-04-20 08:09:34 +00:00 by (unknown) 97303d7

Remove 1px border around the dialog banner image

refs #11449

2016-04-20 08:09:35 +00:00 by gbeutner ea47e55

Update banner for the Windows setup wizard

refs #11449

2016-04-20 08:09:35 +00:00 by gbeutner b4e86ca

Update Chocolatey scripts to support the new MSI package

refs #11449

2016-04-20 08:09:35 +00:00 by gbeutner cf954fd

Ensure that KB2999226 is installed

refs #11449

2016-04-20 08:09:35 +00:00 by gbeutner d481763

Disable MSI restart manager

refs #11449

2016-04-20 08:09:36 +00:00 by gbeutner 6e2e90c

Make sure the etc and var directories are in the common data directory

refs #11449

2016-04-20 08:09:36 +00:00 by (unknown) 1871bc9

Replace the agent wizard banner

refs #11449

2016-04-20 08:09:36 +00:00 by gbeutner fd16e2d

Wait for uninstall.exe to terminate

refs #11449

2016-04-20 08:09:36 +00:00 by gbeutner 233f8ff

Fix arguments for uninstall.exe

refs #11449

2016-04-20 08:09:36 +00:00 by (unknown) 7fe6c42

Make sure NSIS-based installations are uninstalled before we copy the new
files

refs #11449

2016-04-20 08:09:36 +00:00 by (unknown) 0028bf0

Fix support for building debug MSI packages

refs #11449

2016-04-20 08:09:36 +00:00 by gbeutner 83e410a

Remove cmake_policy call

refs #11449

2016-04-20 08:09:37 +00:00 by (unknown) 3c3ed80

Remove the Icinga 2 directory (if it's empty) after running uninstall.exe

refs #11449

2016-04-20 08:09:37 +00:00 by (unknown) e17f5f7

Use _rmdir instead of _unlink

refs #11449

2016-04-20 08:09:37 +00:00 by (unknown) a716b9f

Fix include for icinga2.wixpatch (again)

refs #11449

2016-04-20 08:09:37 +00:00 by (unknown) d2ebb80

Fix "Run Icinga 2 wizard" option in the installer

refs #11449

2016-04-20 08:09:38 +00:00 by gbeutner cfafaee

Move user data before running the uninstaller

refs #11449

2016-04-20 08:09:38 +00:00 by mfriedrich 2d7bc74

Windows Wizard: Fix 'Examine Config' directory

refs #11449

Relations:

@icinga-migration

This comment has been minimized.

Copy link
Member Author

commented Mar 29, 2016

Updated by gbeutner on 2016-03-29 06:52:04 +00:00

  • Status changed from New to Assigned
  • Assigned to set to TheFlyingCorpse
@icinga-migration

This comment has been minimized.

Copy link
Member Author

commented Mar 30, 2016

Updated by gbeutner on 2016-03-30 07:28:09 +00:00

  • Relates set to 11435
@icinga-migration

This comment has been minimized.

Copy link
Member Author

commented Mar 30, 2016

Updated by mfriedrich on 2016-03-30 08:56:59 +00:00

  • Relates set to 10122
@icinga-migration

This comment has been minimized.

Copy link
Member Author

commented Mar 31, 2016

Updated by TheFlyingCorpse on 2016-03-31 05:46:47 +00:00

Do we want to upgrade AND move the files or just remove the NSIS installation?

On upgrade from NSIS:
An Install action can be a custom action, looking for (the reg key), running the uninstaller similarly to the powershell script used for the Chocolatey package! It gets "tricky" if we are to move the state of icinga2 x86 to icinga2 x64, but it seems doable.

@icinga-migration

This comment has been minimized.

Copy link
Member Author

commented Mar 31, 2016

Updated by mfriedrich on 2016-03-31 08:48:09 +00:00

"etc" only contains "pki" and "features-enabled".

Running command 'icinga2.exe node setup --master_host 10.0.10.100,5665 --endpoint mbmif.int.netways.de,10.0.10.100,5665 --accept-config --accept-commands --ticket "ebf8946d076cd228db245fb8e07f550a69883e06" --trustedcert "C:\Users\michi\AppData\Local\Temp\tmpE54D.tmp" --cn "DESKTOP-IHRPO96" --zone "DESKTOP-IHRPO96"' produced the following output:
information/cli: Verifying ticket 'ebf8946d076cd228db245fb8e07f550a69883e06'.
information/cli: Verifying master host connection information: host '10.0.10.100', port '5665'.
information/cli: Verifying trusted certificate file 'C:\Users\michi\AppData\Local\Temp\tmpE54D.tmp'.
information/cli: Using the following CN (defaults to FQDN): 'DESKTOP-IHRPO96'.
information/cli: Created backup file 'C:\Program Files\ICINGA2\\etc/icinga2/pki/DESKTOP-IHRPO96.key.orig'.
information/cli: Created backup file 'C:\Program Files\ICINGA2\\etc/icinga2/pki/DESKTOP-IHRPO96.crt.orig'.
information/base: Writing private key to 'C:\Program Files\ICINGA2\\etc/icinga2/pki/DESKTOP-IHRPO96.key'.
information/base: Writing X509 certificate to 'C:\Program Files\ICINGA2\\etc/icinga2/pki/DESKTOP-IHRPO96.crt'.
information/cli: Requesting a signed certificate from the master.
information/cli: Writing signed certificate to file 'C:\Program Files\ICINGA2\\etc/icinga2/pki/DESKTOP-IHRPO96.crt'.
information/cli: Writing CA certificate to file 'C:\Program Files\ICINGA2\\etc/icinga2/pki/ca.crt'.
information/cli: Disabling the Notification feature.
Disabling feature notification. Make sure to restart Icinga 2 for these changes to take effect.
information/cli: Updating the ApiListener feature.
critical/cli: Cannot parse available features. Path 'C:\Program Files\ICINGA2\\etc/icinga2/features-available' does not exist.
critical
@icinga-migration

This comment has been minimized.

Copy link
Member Author

commented Mar 31, 2016

Updated by mfriedrich on 2016-03-31 09:57:22 +00:00

  • Assigned to changed from TheFlyingCorpse to gbeutner
@icinga-migration

This comment has been minimized.

Copy link
Member Author

commented Mar 31, 2016

Updated by gbeutner on 2016-03-31 12:24:52 +00:00

We should not move old installs (i.e. NSIS). Instead we should:

a) Check that the install path is the same - and abort the installation if it's not.
b) If it's the same: Run the NSIS uninstaller.

@icinga-migration

This comment has been minimized.

Copy link
Member Author

commented Mar 31, 2016

Updated by gbeutner on 2016-03-31 13:09:53 +00:00

TODO:

-Icinga graphics in the installer

Build VM needs 64-bit packages for:
-Boost
-wxWidgets
-OpenSSL
-PostgreSQL
-MySQL

@icinga-migration

This comment has been minimized.

Copy link
Member Author

commented Mar 31, 2016

Updated by TheFlyingCorpse on 2016-03-31 20:29:31 +00:00

Thought: Use ProgramData and keep the ProgramFiles directory for just program files? Would making simple backup of configuration easier.

C:\Program Files\Icinga2\etc -> C:\ProgramData\icinga2\etc
C:\Program Files\Icinga2\var -> C:\ProgramData\icinga2\var

sbin can stay as it is or its just in the direct subfolder.

@icinga-migration

This comment has been minimized.

Copy link
Member Author

commented Mar 31, 2016

Updated by TheFlyingCorpse on 2016-03-31 20:31:04 +00:00

Note: Assuming Windows is installed to C: is bad! On git revision dc09f5f, safer to use PROGRAMFILES

@icinga-migration

This comment has been minimized.

Copy link
Member Author

commented Mar 31, 2016

Updated by TheFlyingCorpse on 2016-03-31 20:33:55 +00:00

Such spam. I didnt see 7b41891 till now.

@icinga-migration

This comment has been minimized.

Copy link
Member Author

commented Apr 1, 2016

Updated by gbeutner on 2016-04-01 05:44:28 +00:00

Bad Rune, no donut.

@icinga-migration

This comment has been minimized.

Copy link
Member Author

commented Apr 5, 2016

Updated by mfriedrich on 2016-04-05 09:17:11 +00:00

  • Fix reboot questions
  • Logo
  • Upgrade: Service cannot be started, registry key cannot be read
c:\Program Files (x86)\ICINGA2\sbin>icinga2.exe daemon -C
[2016-04-05 11:15:25 Mitteleuropõische Sommerzeit] warning/icinga-app: Registry key could not be read. Falling back to built-in paths.
information/cli: Icinga application loader (version: v2.4.4-304-gd2f5008)
Could not create directory 'C:\jenkins\workspace\icinga2-windows\inst\var\log\icinga2\crash': Error 2, No such file or directory
critical/Application: Icinga 2 has terminated unexpectedly. Additional information can be found in 'C:/jenkins/workspace/icinga2-windows/inst/var/log/icinga2/crash/report.1459847725.473'
@icinga-migration

This comment has been minimized.

Copy link
Member Author

commented Apr 7, 2016

Updated by mfriedrich on 2016-04-07 08:13:18 +00:00

  • Target Version changed from 2.5.0 to 2.4.5
@icinga-migration

This comment has been minimized.

Copy link
Member Author

commented Apr 7, 2016

Updated by mfriedrich on 2016-04-07 08:23:01 +00:00

  • Relates set to 11437
@icinga-migration

This comment has been minimized.

Copy link
Member Author

commented Apr 7, 2016

Updated by gbeutner on 2016-04-07 10:20:30 +00:00

Logo: RT #462217

@icinga-migration

This comment has been minimized.

Copy link
Member Author

commented Apr 14, 2016

Updated by gbeutner on 2016-04-14 05:09:56 +00:00

  • Relates set to 11586
@icinga-migration

This comment has been minimized.

Copy link
Member Author

commented Apr 20, 2016

Updated by gbeutner on 2016-04-20 06:34:16 +00:00

  • Subject changed from 64 to Build 64-bit packages for Windows
@icinga-migration

This comment has been minimized.

Copy link
Member Author

commented Apr 20, 2016

Updated by gbeutner on 2016-04-20 07:54:21 +00:00

  • Status changed from Assigned to Resolved
@icinga-migration

This comment has been minimized.

Copy link
Member Author

commented Apr 20, 2016

Updated by gbeutner on 2016-04-20 08:16:02 +00:00

  • Backport? changed from Not yet backported to Already backported
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.