Set $Uninstall_Arguments$ = "-uninstall" If FileExists ( $Setup_ExeActiveX$ ) Set $Temp_Setup_Exe$ = $Setup_ExeActiveX$ Message "Uninstall " + $ProductName$ + " ActiveX" WinBatch_Uninstall /TimeOutSeconds 120 Sub "%ScriptPath%\check_msi-exitcode.ins" Message "Uninstall " + $ProductName$ + " ActiveX done" EndIf If FileExists ( $Setup_ExePlugin$ ) Set $Temp_Setup_Exe$ = $Setup_ExePlugin$ Message "Uninstall " + $ProductName$ + " Plugin" WinBatch_Uninstall /TimeOutSeconds 120 Sub "%ScriptPath%\check_msi-exitcode.ins" Message "Uninstall " + $ProductName$ + " Plugin done" EndIf [WinBatch_Uninstall] "$Temp_Setup_Exe$" $Uninstall_Arguments$