This can be used to build a MSI package to install Zabbix Agent on Windows. You will need WiX toolset to build a msi (http://wix.sourceforge.net/).
Ad Widget
Collapse
Zabbix Agent MSI package
Collapse
X
-
Tags: None
-
Do you use NSIS for generate a MSI package or for a regular .exe installer?We use NSIS for that. Lots of features, forms so you can specify certain values for the agent and lots more.
Could you share your solution to us ?
A note, i know some solution based on NSIS, but it generates the .exe installer, not msi. http://www.suiviperf.com/zabbix/Comment
-
doh my bad!
NSIS makes use of .nsi files (the scriptfiles) to make a .exe, my bad. So in the end I have a .exe that installs the zabbix agent, registers the service, puts some other useful executables in the zabbix dir, and fills the neccesary options in the .ini. See attachment for the file we use. It uses some includes that are not default, if you miss some please PM me and I'll update the .zipAttached FilesLast edited by 0siris; 20-07-2011, 10:11.Comment
-
WiX Project for Zabbix Agent 2.2.1
After spending sweet forever sifting through the intricacies of WiX to build a working agent MSI, I stumbled across this thread where zkrapavickas has kindly done all the work for us...
I'll post my solution here anyway as this thread is quite old and I'm confident mine works with agent 2.2.1.
My WiX project doesn't allow the installing user to customise the agent configuration as this was intended to be used for packaging for an enterprise deployment, not for end-user preference.
You set the configuration directives in the agent config at compile time and everything is deployed just the way you build it.
This WiX project supports packaging for 32 and 64bit.
Comment
-
cavaliercoder, thanks for awesome description !
I have to admit that I never used the WiX tool.
But I wanted to build MSI package with zabbix agent, and I would want it will be, say, universal.
I mean - each admin should not build his own package but use single which provides possibility to customize zabbix_agent.conf parameters during installation stage.
As it done already in www.suiviperf.com/zabbix/ for their MSI package.
(unfortunately there no .wix project files published).
Another point is - is it possible in MSI package perform relatively complex modifications of the zabbix_agent.conf file ?
For example in case of upgrade to a new major version, where some config parameters have been removed/changed/add, we need to automatically update the conf file.Comment
-
WiX with config UI
In the case of my deployment (5000+ servers), I definitely wanted to build my own MSI because it needs to include some features that can't be 'configured' during installation such as the inclusion of addition scripts (and UserParameter directives) and custom compiled binaries.
For a smaller environment, I agree that configurable options during installation would be ideal. Fortunately the WiX file in zkrapavickas' original post contains the custom UI, actions and a script to achieve precisely this.
Have a go at merging the best of each WiX file and let us see what you come up with!Comment
-
I took a stab at this a while back, as well. I found a more comprehensive set of build scripts someone provided for an unrelated MSI, and modified them to build from the Zabbix binary distributions instead.
There are a couple paths in the WXS files that are still hardcoded and need to be modified for your environment. Tunables in the VBS script and build/install scripts. Can build both 32 & 64 bit MSIs.
You'll also need to expand the official Zabbix binary ZIP file into the zabbix-service directory, so it has binaries to include in the MSI.
It has a simple text field GUI for option selection, but can be run using provided defaults by passing the /Q command line option during MSI installation.
Hoping it will be helpful, if either of you decide to push further into Zabbix MSI land...Attached FilesComment
-
suiviperf.com windows installer wix sources
Hi,
As there is a demand for the wix sources, I will plublish them on the server. but for the moment I just upload it for those who want it:
Http:// www.suiviperf.com / zabbix / upload / wix_zabbix-agent-sources.zip.
If you want me to add usefull function, I will be happy to do so.
Best regardsComment
Comment