Build a small console application that starts your Installer
and goes in a waiting loop, then in your installer JUST before all is done you write e.g. and infile and yor starter console detected this in the waitloop. then the console knows that the install is done and can close itself.
Success, be creative and adhere to the API