PDA

View Full Version : Custom Action (InstallScript)



ffnbnb
10-31-2013, 01:34 PM
I have a simple custom action (which is almost blank now for debugging this issue) that fails to be executed at runtime resulting in installation failure.


#include "ifx.h"

export prototype ChangePath(HWND);

function ChangePath(hMSI)

begin

//return ERROR_SUCCESS;

end;
The prototype for this function is also defined in Setup.rul
This compiles without errors or warnings.

The installation logs present always the same error logging:

InstallShield 18:29:13: Invoking script function ChangePath
InstallShield 18:29:13: Failed to run script function, error 0x80020006
InstallShield 18:29:13: CallScriptFunctionFromMsiCA() ends, result 0x643
CustomAction ChangePath returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox)
Action ended 18:29:13: ChangePath. Return value 3.
Action ended 18:29:13: INSTALL. Return value 3.

Am I doing something wrong?
How can I solve this?


Thanks