Click here to Skip to main content
15,891,316 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi friends,

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 also set the ComVisible of my dll to true but i recieve this error yet :
"DLL function call crashed: ISRT._ DotNetCoCreateObject"

C#
...

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;
Posted

Mark that class as ComVisible.
 
Share this answer
 
Comments
M_Mogharrabi 12-Mar-14 4:20am    
Hi Reshma Babu,I tried this by writing [ComVisible(true)] before my class but it does'nt change.
The problem is with the version of .net framework of my dll.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900