I need to create a remote setting setting with org instance URL using URL.getSalesforceBaseUrl().toExternalForm()
on post install script of package installation.
Note : URL.getSalesforceBaseUrl().toExternalForm()
is different than home page url.
I found http://www.exceptionlesscode.com/how-to-create-remote-site-settings-through-apex/ but in that step 2 it says, the remote site setting should be there (which i want in post install)