Regarding mercurial we are using a custom installation specified by a global install option:
https://github.com/whimboo/mozmill-environment/blob/master/windows/build.py#L159

It's important for us so we do not have to compile the c files, which would require the user to have build tools installed. Would we be able to specify that here too?