PDA

View Full Version : Create installer for Win32


AlexWhite
08-06-2006, 13:02
Uses Inno Setup Script Wizard.
; 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";
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.

mbjoerling
08-06-2006, 19:32
Great work, thanks.

edeus
09-06-2006, 02:30
That would be really quite useful with a inbuilt upgrade proceedure.

Also a /quiet mode... :)

AlexWhite
09-06-2006, 08:35
That at инсталяции it was not set questions enough to start with key /SLIENT (all letters in the top register)
c:\>setup.exe /SILENT