Alex Burger wrote:

Hi Andy.

Attached is a patch for net-snmp.nsi that makes the following changes:

-Prompts the user to overwrite snmp.conf if it exists. If the user says yes, it saves it as snmp.conf.new (overwriting snmp.conf.new if it exists). It defaults to overwrite for silent installs.
-Changes the web site from www.netsnmp.com to www.net-snmp.org
-Changes PRODUCT_DIR_REGKEY from:
Software\Microsoft\Windows\CurrentVersion\App Paths\encode_keychange.exe
to:
Software\Net-SNMP
-Adds a Software\Net-SNMP\InstallDir key
-Adds a Software\Net-SNMP\Version key


Do you see any problems with the PRODUCT_DIR_REGKEY change?

That looks great. I was never sure whether to change the registry key or not so I just left it.


I made the change for two reasons. The first and main reason is that if you try to re-install without first uninstalling, it picks up the last installed folder as (in my case) 'd:\Program Files\Net-SNMP\bin' instead of 'd:\Program Files\Net-SNMP'.

Aha, maybe that was the install path problem all along!

The other reason is I like having a HKLM\Software\Net-SNMP key. We can use this key to hold other registry configuration options in the near future.

I agree, and I was going to put it in there eventually. The main reason I haven't bothered yet is that the agent doesn't use the registry like that at the moment. Hopefully soon more of the environment stuff will be pulled from the registry on Windows.


Does 'App Paths' need to be set?

I am not sure.

Andy

Alex






-------------------------------------------------------
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

Reply via email to