So I looked a bit into how to have some ini file location by convention. Lets see what is AppDomain.CurrentDomain.BaseDirectory: C:\WINDOWS\Installer\MSID38.tmp-. Hmmm, same as Environment.CurrentDirectory. When we look at Environment.CommandLine we can see why: