Maybe duplicate with
How can i call a method of a class of my dll at the end of the setup in installshield?
I have wrote something like the following code at the end of the Setup.Rul in my setup project and set the ComVisible of my dll and my class to true but i recieve this error yet :
"DLL function call crashed: ISRT._ DotNetCoCreateObject"
...
szDLLCompletePath = SUPPORTDIR ^ "MyDllName.dll";
szClassName = "MyDllName.MyClassName";
//The error occured at the following line
set Obj = DotNetCoCreateObject( szDLLCompletePath, szClassName, "");
If(! IsObject(Obj)) then
MessageBox("Cannot load", SEVERE);
else
Obj.MyMethodName(Parameters);
endif;
Note: I have added my dll as support file to my setup project.
Please tell me if there is any sample for this.