Am trying to use Advanced Installer's Custom Action("Call Function from Standard DLL") to install CBFS.
Now the Install function requires a bunch of argument's and it works fine. Only issue seems to be in getting the return code of the function. I've tried multiple variations on the "Return Type" and also made sure the property is public(All caps name). However it seems like the return property from the function is just not getting set.
Not sure if this is of any help, but from the log file I could get this line showing the function being invoked.
MSI (s) (58:3C) [22:27:53:174]: Executing op: CustomActionSchedule(Action=CallFunctionFromDLL,ActionType=3585,Source=BinaryData,Target=CallStdFcn,CustomActionData=C:\Program Files (x86)\Someone\Something\cbfsinst.dll?D;REBOOTCHECK;C;InstallA;B;s;I;C:\Program Files (x86)\Someone\Something\cfs.cab?B;s;I;VivSomething?B;s;I;?V;B;I;true?V;D;I;2?S;I;P;RebootNeeded?)
However the return property(REBOOTCHECK) is not getting updated. It starts off as 0 and remains 0.
Weird thing is even if I make the return property "void", this function still runs fine. Not really sure how this even works or why it doesn't apply the return code to the return property.
I've seen threads like:
http://www.advancedinstaller.com/forums ... =2&t=12133
All I'm trying is the first part in setting the property from the return code so that later I can add step 2 from the quote.If you want to stop the installation from within your DLL function called through our "Call a function from a standard dll" predefined custom action, you can set a public property from the return value of your function. Once the property is set you can use it to condition an Error Message custom action.
Any help would be appreciated.
Thank you.
PS. I'd be more than happy to attach info like the screen-shot of the custom-action / return-property / installation-log. Just not sure if it's actually of any use.
FOLLOW US
Get the latest news in Application Packaging