I could use a little help from an NSIS expert
DominoWebDAV 0.1 will be up soon. Part of the application is a little helper application, that knows how to deal with the webdav:// protocol. As "good citizens" we want to make the information available, that the helper is installed by amending the user_agent string in the browser. We add something, not alter, so the typical browser sniffing scripts won't break (Note to all who still use them: start sniffing the DOM).
In Internet Explorer the user_agent extension are defined by a registry entry (This is e.g. how IE/IIS "knows" that a .net runtime is installed):
In Internet Explorer the user_agent extension are defined by a registry entry (This is e.g. how IE/IIS "knows" that a .net runtime is installed):
HKLM "Software\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\User Agent\Post Platform" "Some funny string"
All entries here end up in the user_agent. In Firefox it is a little trickier: the following steps are needed:
- Is Firefox installed?
- Locate the profile directory (per user)
- Read the profiles.ini and locate the current user profile
- Look for the file user.js, create it if missing
- Add the line
user_pref("general.useragent.extra.funnySoftware", "Some funny string");
if missing
Posted by Stephan H Wissel on 07 March 2006 | Comments (0) | categories: Software