Starting snmpd from WiX installer on Windows?
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <BYAPR17MB215071020DB5EA1F57D53DA0DFCC0@BYAPR17MB2150.namprd17.prod.outlook.com> |
All,
Working on a project that includes Net-SNMP and want to add the components to an existing WiX-based MSI installer, with snmpd running as a service.
Has anyone done this before, or can provide pointers on configuring snmpd as a service, and so that it starts during install?
I prefer to get things running for any user in the Administrators group without running msiexec from an Administrator command prompt.
I have the following but this fails to install, complaining about insufficient privileges, but I think that is a red herring, as other services are successfully installed and configured:
<Fragment>
<DirectoryRef Id="APPLICATIONFOLDER">
<Component Id="cmp9E0DCDEC3FA7498184A874297794C513" Guid="{9E0DCDEC-3FA7-4981-84A8-74297794C513}">
<File Id="fil9E0DCDEC3FA7498184A874297794C513" KeyPath="yes" Source="!(wix.NetSnmpBinSource)\snmpd.exe" />
<ServiceInstall
Id="SnmpdServiceInstaller"
Type="ownProcess"
Name="NetSnmpAgent"
DisplayName="Net-SNMP Command Responder"
Description="Net-SNMP Command Responder"
Start="auto"
Account="LocalSystem"
ErrorControl="ignore"
Interactive="no"
Vital="no"
/>
<ServiceControl Id="SnmpdServiceControl" Name="NetSnmpAgent" Start="install" Stop="both" Remove="uninstall" Wait="yes" />
</Component>
</DirectoryRef>
</Fragment>
Thank you in advance for any assistance.
Best Regards,
Aaron Friesen
Contract Software Engineer of Aerotek on behalf of Keysight
Keysight Technologies, Inc.
970.679.5632 T
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users