Showing results for 
Show  only  | Search instead for 
Did you mean: 

Custom action problem


I create a new MSI package.
I want to create a custom action in VBS but it don't work (internal error during execution).

This CA check if an exe file exist if this exe exist the package's installation have to arbort (roll back action).
For example, the following VBScript function returns DABORT to exit the installation.
Function ExitSetupFromVBS( )
Const IDABORT = 3
' some work...
' abort the installation
ExitSetupFromVBS = IDABORT
End Function

Any idea about custom action execution and parameters (deferred, synchronous...) ????

(1) Reply
Before troubleshooting your CA problem, do you really need a CA? Would it be possible in your situation to just use a SystemSearch to look for the EXE and then use the property set by the SystemSearch in a LaunchCondition?