In order to accomplish this you go to the "Custom Actions" page and you add a "Before Finalization" standard action (you can do this by using the "Show Standard Action" button on the toolbar).
In the "Before Finalization" submenu there is a list of standard actions; the first one is "InstallFiles" and in the middle of the list is "InstallServices".
You can select any standard action you want between those two (for example "RegisterProgIdInfo").
Under the RegisterProgIdInfo folder you create a "Launch File or Open URL" custom action which will launch your .cmd file
FOLLOW US
Get the latest news in Application Packaging