Ad Widget

Collapse

Create installer for Win32

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • AlexWhite
    Member
    • Jun 2006
    • 31

    #1

    Create installer for Win32

    Uses Inno Setup Script Wizard.
    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";
    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.
    Last edited by AlexWhite; 09-06-2006, 07:36.
  • mbjoerling
    Member
    • May 2006
    • 52

    #2
    Great work, thanks.

    Comment

    • edeus
      Senior Member
      • Aug 2005
      • 120

      #3
      That would be really quite useful with a inbuilt upgrade proceedure.

      Also a /quiet mode...

      Comment

      • AlexWhite
        Member
        • Jun 2006
        • 31

        #4
        That at инсталяции it was not set questions enough to start with key /SLIENT (all letters in the top register)
        Code:
        c:\>setup.exe /SILENT

        Comment

        Working...