Uses Inno Setup Script Wizard.
The given script will allow to create setup file for agent W32.
Place a file of this script, zabbixw32.exe and a configuration file in one directory.
Code:
; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
[Setup]
AppName=ZabbixW32
AppVerName=ZABBIX agent for Win32 systems
AppPublisher=ZABBIX
AppPublisherURL=http://www.zabbix.com
AppSupportURL=http://www.zabbix.com
AppUpdatesURL=http://www.zabbix.com
DefaultDirName={win}
DisableDirPage=yes
DefaultGroupName=ZabbixW32
DisableProgramGroupPage=yes
OutputDir=E:\Alex\ZABBIX\win32
OutputBaseFilename=ZabbixW32_setup
SetupIconFile=E:\Alex\ZABBIX\win32\zabbix1.ico
Compression=lzma
SolidCompression=yes
[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"
[Files]
Source: "ZabbixW32.exe"; DestDir: "{app}\system32"; Flags: ignoreversion
Source: "zabbix_agentd.conf"; DestDir: "{win}\system32"; Flags: ignoreversion
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
[Icons]
Name: "{group}\ZabbixW32"; Filename: "{app}\ZabbixW32.exe"
[Run]
Filename: "{win}\system32\ZabbixW32.exe"; Parameters: "--config {win}\system32\zabbix_agentd.conf install"; StatusMsg: "Install ZABBIX agent for Win32 systems as service ..."
Filename: "{win}\system32\ZabbixW32.exe"; Parameters: "--config {win}\system32\zabbix_agentd.conf start";
[UninstallRun]
Filename: "{win}\system32\ZabbixW32.exe"; Parameters: "--config {win}\system32\zabbix_agentd.conf stop"; StatusMsg: "Deinstall ZABBIX agent for Win32 systems as service ..."
Filename: "{win}\system32\ZabbixW32.exe"; Parameters: "--config {win}\system32\zabbix_agentd.conf remove";
Place a file of this script, zabbixw32.exe and a configuration file in one directory.
Comment