you could try Autoit.. the source for what you want to do is Opt("TrayIconHide", 0) ;0=show, 1=hide tray icon $answer=msgbox(4,"Question"," Do you want to install hardware ?") if $answer = 6 Then ; value of 6 means yes pressed run("hardware.exe",@TempDir,@SW_SHOW) EndIf Exit and autoit can compile this to an .exe for you. autoit avaiable at http://www.autoitscript.com/autoit3/