source: nscp/helpers/installer/Product.wxs @ da1c7e1

0.4.00.4.10.4.2stable
Last change on this file since da1c7e1 was da1c7e1, checked in by Michael Medin <michael@…>, 5 years ago

rollup for 0.3.3

  • Property mode set to 100644
File size: 8.9 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<Wix xmlns="http://schemas.microsoft.com/wix/2003/01/wi">
3        <?if "$(var.SysTray.ConfigurationName)" = "Debug|Win32"?>
4                <?define PlatForm = "Win32" ?>
5        <?elseif "$(var.SysTray.ConfigurationName)" = "Debug|x64"?>
6                <?define PlatForm = "x64" ?>
7        <?elseif "$(var.SysTray.ConfigurationName)" = "Nightly|Win32"?>
8                <?define PlatForm = "Win32" ?>
9        <?elseif "$(var.SysTray.ConfigurationName)" = "Nightly|x64"?>
10                <?define PlatForm = "x64" ?>
11        <?else?>
12                <?define PlatForm = "Unknown: $(var.SysTray.ConfigurationName)" ?>
13        <?endif?>
14
15        <?if "$(var.PlatForm)" = "x64"?>
16                <?define PlatForm.x64 ?>
17                <?define Product.GUID = "2D1374D5-8026-4e58-8F2E-6A3C40444769" ?>
18                <?define Package.GUID = "4E50A0E0-AE48-4737-A6A7-07F3A9F94C29" ?>
19                <?define Postfix.GUID = "DD5862EE637C" ?>
20        <?else?>
21                <?define Product.GUID = "BD153740-D13B-4432-8D39-EE8D2F100B0A" ?>
22                <?define Package.GUID = "93CF1821-AB09-4c77-AA15-DD5862EE637B" ?>
23                <?define Postfix.GUID = "DD5862EE637B" ?>
24        <?define PlatForm.Win32 ?>
25        <?endif?>
26       
27        <?ifdef var.PlatForm.Win32?>
28                <?define ProgramFiles = "ProgramFilesFolder" ?>
29                <?define Win64 = "no" ?>
30                <?define Source = "../../win32/nightly/" ?>
31        <?else?>
32                <?define ProgramFiles = "ProgramFiles64Folder" ?>
33                <?define Win64 = "yes" ?>
34                <?define Source = "../../x64/nightly/" ?>
35        <?endif?>
36
37        <Product Id="$(var.Product.GUID)" Name="NSClient++ ($(var.PlatForm))" Language="1033" Version="0.3.1.0" Manufacturer="MySolutions NORDIC">
38                <Package Id="$(var.Package.GUID)" Description="A simple windows monitor agent for (amongst others) nagios."
39                                                 Comments="This will appear in the file summary stream." InstallerVersion="200" Compressed="yes"/>
40                <?ifdef var.PlatForm.Win32?>
41                        <Condition Message="x64 bit version not supported (by installer) on Win32 bit platform (get Win32 bit version instead)">NOT VersionNT64</Condition>
42                <?else?>
43                        <Condition Message="Win32 bit version not supported (by installer) on x64 bit platform (get x64 bit version instead)">VersionNT64</Condition>
44                <?endif?>
45                <Media Id="1" Cabinet="Product.cab" EmbedCab="yes" CompressionLevel="high">
46                </Media>
47                <Directory Id="TARGETDIR" Name="SourceDir">
48                        <Directory Id="$(var.ProgramFiles)">
49                                <Directory Id="INSTALLLOCATION" Name="NSClient" LongName="NSClient++">
50                                                <Component Id="MainClient" Guid="F6636DB0-A0B9-4dd2-B74C-$(var.Postfix.GUID)" Win64="$(var.Win64)">
51                                                        <File Id="NSClientEXE" Name="nsclient.exe" LongName="nsclient++.exe" DiskId="1"
52                                                                                Source="$(var.Source)/nsclient++.exe" Vital="yes">
53                                                                <Shortcut Id="StartmenuNSClientTest" Directory="ProgramMenuDir" Name="NSCPTest"
54                                                                                                        LongName="NSClient++ ($(var.PlatForm), test)" WorkingDirectory="INSTALLDIR" Icon="nsclient.exe"
55                                                                                                        IconIndex="0" Arguments="/test" Description="Run NSClient++ in test mode"/>
56                                                                <Shortcut Id="StartmenuNSClientStart" Directory="ProgramMenuDir" Name="NSCPStrt"
57                                                                                                        LongName="Start NSClient++ ($(var.PlatForm))" WorkingDirectory='INSTALLDIR' Icon="nsclient.exe"
58                                                                                                        IconIndex="0" Arguments="/start" Description="Start NSClient++ as a service"/>
59                                                                <Shortcut Id="StartmenuNSClientStop" Directory="ProgramMenuDir" Name="NSCPStop"
60                                                                                                        LongName="Stop NSClient++ ($(var.PlatForm))" WorkingDirectory='INSTALLDIR' Icon="nsclient.exe"
61                                                                                                        IconIndex="0" Arguments="/stop" Description="Stop NSClient++ as a service"/>
62                                                        </File>
63                                                        <File Id="NSClientINI" Name="NSC.ini" LongName="NSC.ini" DiskId="1" Source="$(var.Source)/NSC.ini" Vital="yes"/>
64                                                        <File Id="Changelog" Name="change.log" LongName="changelog.txt" DiskId="1" Source="$(var.Source)/changelog" Vital="yes"/>
65                                                        <File Id="Counters" Name="counters.def" LongName="counters.defs" DiskId="1" Source="$(var.Source)/counters.defs" Vital="yes"/>
66                                                        <File Id="License" Name="license.txt" LongName="license.txt" DiskId="1" Source="$(var.Source)/license.txt" Vital="yes"/>
67                                                </Component>
68                                                <Directory Id="INSTALLLOCATION_MODS" Name="modules">
69                                                        <Component Id="NRPEListener" Guid="5A0246F8-5167-45db-B246-$(var.Postfix.GUID)" Win64="$(var.Win64)">
70                                                                <File Id="NRPEListenerDLL" Name="NRPELsnr.dll" LongName="NRPEListener.dll" DiskId="1" Source="$(var.Source)/modules/NRPEListener.dll" Vital="no" />
71                                                                <File Id="NRPEClientDLL" Name="NRPEClnt.dll" LongName="NRPEClient.dll" DiskId="1" Source="$(var.Source)/modules/NRPEClient.dll" Vital="no" />
72                                                        </Component>
73                                                        <Component Id="NSCListener" Guid="6DAF8BB9-9A56-48f5-B2C5-$(var.Postfix.GUID)" Win64="$(var.Win64)">
74                                                                <File Id="NSCListenerDLL" Name="NSCLsnr.dll" LongName="NSClientListener.dll" DiskId="1" Source="$(var.Source)/modules/NSClientListener.dll" Vital="no" />
75                                                        </Component>
76                                                        <Component Id="NSCA" Guid="8820A304-C596-4393-A72F-$(var.Postfix.GUID)" Win64="$(var.Win64)">
77                                                                <File Id="NSCAAgentDLL" Name="NSCAAgnt.dll" LongName="NSCAAgent.dll" DiskId="1" Source="$(var.Source)/modules/NSCAAgent.dll" Vital="no" />
78                                                        </Component>
79                                                        <Component Id="Plugins" Guid="9B490E67-5472-4266-96DC-$(var.Postfix.GUID)" Win64="$(var.Win64)">
80                                                                <File Id="ModCheckEventLog.dll" Name="EvntLg.dll" LongName="CheckEventLog.dll" DiskId="1" Source="$(var.Source)/modules/CheckEventLog.dll" Vital="no" />
81                                                                <File Id="ModCheckExternalScripts.dll" Name="ExtScr.dll" LongName="CheckExternalScripts.dll" DiskId="1" Source="$(var.Source)/modules/CheckExternalScripts.dll" Vital="no" />
82                                                                <File Id="ModCheckHelpers.dll" Name="Helpers.dll" LongName="CheckHelpers.dll" DiskId="1" Source="$(var.Source)/modules/CheckHelpers.dll" Vital="no" />
83                                                                <File Id="ModCheckSystem.dll" Name="System.dll" LongName="CheckSystem.dll" DiskId="1" Source="$(var.Source)/modules/CheckSystem.dll" Vital="no" />
84                                                                <File Id="ModCheckWMI.dll" Name="WMI.dll" LongName="CheckWMI.dll" DiskId="1" Source="$(var.Source)/modules/CheckWMI.dll" Vital="no" />
85                                                                <File Id="ModFileLogger.dll" Name="Logger.dll" LongName="FileLogger.dll" DiskId="1" Source="$(var.Source)/modules/FileLogger.dll" Vital="no" />
86                                                                <File Id="ModLUAScript.dll" Name="LUAScr.dll" LongName="LUAScript.dll" DiskId="1" Source="$(var.Source)/modules/LUAScript.dll" Vital="no" />
87                                                                <File Id="ModRemoteConfiguration.dll" Name="RmtCfg.dll" LongName="RemoteConfiguration.dll" DiskId="1" Source="$(var.Source)/modules/RemoteConfiguration.dll" Vital="no" />
88                                                                <File Id="ModSysTray.dll" Name="SysTray.dll" LongName="SysTray.dll" DiskId="1" Source="$(var.Source)/modules/SysTray.dll" Vital="no" />
89                                                                <File Id="ModCheckDisk.dll" Name="CheckDsk.dll" LongName="CheckDisk.dll" DiskId="1" Source="$(var.Source)/modules/CheckDisk.dll" Vital="no" />
90                                                                <File Id="ModCheckTaskSched.dll" Name="TaskSch.dll" LongName="CheckTaskSched.dll" DiskId="1" Source="$(var.Source)/modules/CheckTaskSched.dll" Vital="no" />
91                                                        </Component>
92                                                </Directory>
93                                </Directory>
94                        </Directory>
95                        <Directory Id="ProgramMenuFolder" Name="PMenu" LongName="Programs">
96                                <Directory Id="ProgramMenuDir" Name='NSClient' LongName="NSClient++" />
97                        </Directory>
98                </Directory>
99                <Feature Id="ProductFeature" Title="NSClient++ $(var.PlatForm)" Description="Binaries for $(var.PlatForm)"
100                                                 Display="expand"  Level="1" ConfigurableDirectory="INSTALLLOCATION" Absent="disallow">
101                        <Feature Id="MainProgram" Title="Program" Description="Main Service" Level="1" Absent="disallow">
102                                <ComponentRef Id="MainClient" />
103                        </Feature>
104                        <Feature Id="Plugins" Title="Plugins" Description="Plugins" Level="1" Absent="disallow">
105                                <Feature Id="CheckPlugins" Title="Check Plugins" Description="Various plugins to check your system. (Includes all check plugins)" Level="1">
106                                        <ComponentRef Id="Plugins" />
107                                </Feature>
108                                <Feature Id="NRPEPlugins" Title="NRPE Support" Description="NRPE Listener Plugin. Support for the more vercitile NRPE protocol (check_nrpe)" Level="1" Absent="disallow">
109                                        <ComponentRef Id="NRPEListener" />
110                                </Feature>
111                                <Feature Id="NSCPlugins" Title="NSClient support" Description="NSClient Listener Plugin. Support for the old NSClient protocol (check_nt)" Level="1" Absent="disallow">
112                                        <ComponentRef Id="NSCListener" />
113                                </Feature>
114                                <Feature Id="NSCAPlugin" Title="NSCA plugin" Description="Plugin to submit passive results to an NSCA server" Level="1" Absent="disallow">
115                                        <ComponentRef Id="NSCA" />
116                                </Feature>
117                        </Feature>
118                </Feature>
119                <InstallExecuteSequence>
120                        <!--Custom Action='LaunchFile' After='InstallFinalize'>NOT Installed</Custom-->
121                        <Custom Action="install" After='InstallFinalize'/>
122                        <Custom Action="uninstall" Before="RemoveFiles"/>
123                </InstallExecuteSequence>
124
125                <CustomAction Id='install' FileKey='NSClientEXE'  ExeCommand='/install' Return='asyncNoWait'/>
126                <CustomAction Id='uninstall' FileKey='NSClientEXE'  ExeCommand='/uninstall' Return='asyncNoWait'/>
127
128                <UIRef Id="WixUI_FeatureTree" />
129                <UIRef Id="WixUI_ErrorProgressText" />
130                <Icon Id="nsclient.exe" SourceFile="$(var.Source)/modules/SysTray.dll" />
131        </Product>
132</Wix>
Note: See TracBrowser for help on using the repository browser.