Name "Close & Quit a program" Caption "Close & Quit" OutFile "Close & Quit Test.exe" InstallDirRegKey HKCU "Software\WinAmp" "" Section "" FindWindow $R0 "Winamp.exe" SendMessage $R0 ${WM_QUIT} "" "" SectionEnd