cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
dmetzler
Level 6

custom action - calling DLL

I have set up a custom action to call the SHChangeNotifyA function in the shell32.dll.

However, when I attempt to build the project with the custom function, I get an error:

The function block "::SHChangeNotifyA" must be in the form "Module::Function" with an error code of -3713

I cannot find any specific information on how to correct this.

Has anyone seen this before, and if so, how do I correct the problem?

Regards,

Don Metzler
Labels (1)
0 Kudos
(7) Replies
RobertDickau
Flexera Alumni

What are your (Standard DLL?) action settings?
0 Kudos
dmetzler
Level 6

RobertDickau wrote:
What are your (Standard DLL?) action settings?


DLL Filename: shell32.dll
Function signature: void ::SHChangeNotifyA(in NUMBER=134217728, in NUMBER=8192, in POINTER = NULL, in POINTER = NULL)
Return processing: Synchronous (ignores exit code)
In-Script Execution: Immediate Execution
Install Exec Sequence: After InstallFinalize
Install Exec Condition: Installed
0 Kudos
RobertDickau
Flexera Alumni

Does it work if you use SHChangeNotify instead of SHChangeNotifyA?
0 Kudos
dmetzler
Level 6

RobertDickau wrote:
Does it work if you use SHChangeNotify instead of SHChangeNotifyA?


No - the same error occurs.
0 Kudos
RobertDickau
Flexera Alumni

Strange that the signature line doesn't have shell32.dll at the front; a similar example (except with no condition) seems to work at this end:
0 Kudos
dmetzler
Level 6

RobertDickau wrote:
Strange that the signature line doesn't have shell32.dll at the front; a similar example (except with no condition) seems to work at this end:


I deleted the existing item and recreated it with the same parameters. The new one inserted the "shell32:" as a prefix to the function name.
0 Kudos
RobertDickau
Flexera Alumni

Okay, good---is it working now?
0 Kudos