I already have answered a similar question earlier on this forum, so please do a little search before posting questions. Well following is the summary for IE, FF and chrome which I implemented in my installer. Hope this helps.
For IE:
You just need to edit the registry
HKEY_CURRENT_USER "Software\Microsoft\Internet Explorer\Main" "Start Page"
HKEY_CURRENT_USER "Software\Microsoft\Internet Explorer\Main" "Default_Search_URL"
HKEY_CURRENT_USER "Software\Microsoft\Internet Explorer\Main" "Default_Page_URL" "http://abc.com/"
HKEY_CURRENT_USER "Software\Microsoft\Internet Explorer\SearchScopes\YourSearchEngineName" "DisplayName" "YourSearchEngineName"
HKEY_CURRENT_USER "Software\Microsoft\Internet Explorer\SearchScopes\YourSearchEngineName" "URL" "YourSearchEngineUrl"
HKEY_CURRENT_USER "Software\Microsoft\Internet Explorer\SearchScopes" "DefaultScope" "YourSearchEngineName"
For chrome:
Find this file:
"$LOCALAPPDATA\Google\Chrome\User Data\Default\Preferences"
Use nsJson plugin to edit its "homepage" attribute.
For changing the url search bar (default search) , you need to find some way to edit the sqlite database:
"$LOCALAPPDATA\Google\Chrome\User Data\Default\Web Data
In this there is a keywords table where you have to add your search engine. And then update it in the meta table of same databse.
For Firefox:
Find this file:
$APPDATA\Mozilla\Profiles\default_profile\prefs.js
Its a javascript file, you can edit its attributes to change the home page and default search.