[EMAIL PROTECTED] wrote:
Using a 5.2.pre2- win32 binary.. 1. Un-install does not remove all of the files. These files remain: /c/usr/share/snmp/mib2c.access_functions.conf /c/usr/share/snmp/mib2c.array-user.conf /c/usr/share/snmp/mib2c.check_values.conf /c/usr/share/snmp/mib2c.check_values_local.conf /c/usr/share/snmp/mib2c.column_defines.conf /c/usr/share/snmp/mib2c.column_enums.conf /c/usr/share/snmp/mib2c.conf /c/usr/share/snmp/mib2c.create-dataset.conf /c/usr/share/snmp/mib2c.int_watch.conf /c/usr/share/snmp/mib2c.iterate.conf /c/usr/share/snmp/mib2c.iterate_access.conf /c/usr/share/snmp/mib2c.notify.conf /c/usr/share/snmp/mib2c.old-api.conf /c/usr/share/snmp/mib2c.scalar.conf /c/usr/share/snmp/mibs/SNMP-USM-AES-MIB.txt
NOTE: These files also remain. As we had discussed, these files are OK to remain. /c/usr/etc/snmp/snmp.conf /c/usr/etc/snmp/snmpd.conf /c/usr/log/snmpd.log
2. Un-install does not remove service information from registry
CHECK = Invoke REGEDIT and search from the top for snmpd.log
Install then CHECK . should not see snmpd.log
Register agent service then CHECK. should see snmpd.log
Un-install then CHECK. should not see snmpd.log
These statements I believe should hold true When user invokes Register service, that action should always succeed When user invokes Unregister service, that action should always succeed
This is where I start to question. IMO it should succeed unless it fails :-) Please see below.
3. If I install, register service, un-install, then install, attempt to register service will fail, with indication that the service is already registered "Can't create service Net-SNMP Agent. The specified service already exists. " I must manually unregister the service, in this case.
Yes, as it stands today. This will almost certainly be fixed for 5.2. It is a problem with the installer, not the service code. The service should be unregistered on uninstall.
The same functionality could probably be had in the register batch files. The reason I don't think that it belongs in the service code is that, just as you mentioned, register would always succeed. A well behaved service will fail to register if there is already a service with the same name registered. Unregistering the service should be done manually or through uninstalling the application. I am working on fixing that as we speak. I would like to know what other Windows users think of this. Anyone else also, please feel free to chime in!I believe that the correct fix is to invoke the unregister service function when this occurs, and then retry the register service function one more time. I think something like the change I've described should be made in winservice.c. I don't trust return codes in .BAT files. They have been proven unreliable.
What do you think of this ?
Andy
-- -------------------------- Andy Smith, MCP [EMAIL PROTECTED] --------------------------
------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ Net-snmp-coders mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
