cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
cnharry
Level 2

Installshiled doesn't work with .net 4 c# custom action

Hi guys,

I have installed installshield 2010 professional edition with sp1, and xpansion Pack for Visual Studio 2010, I tried to add an new managed code custom action, I got an error message when I tried to browse the class and method from the dll, the message is "Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information."

the dll is build in .net 4, and it works fine in vs2010.

Can anybody give me some kindly help please?

Thanks very much
Labels (1)
0 Kudos
(4) Replies
ametisse
Level 5

Hi,

With c++ dll, the dll must be an unicode dll. I think it may be the same with a c# dll.
0 Kudos
cnharry
Level 2

ametisse wrote:
Hi,

With c++ dll, the dll must be an unicode dll. I think it may be the same with a c# dll.


Hi ametisse,

Thanks for your reply. the dll works in .net 3.5, Our company just upgraded to .net 4.0, it's then errored in installshield.

And aren't all c# dlls unicode?
0 Kudos
gcshilpa
Level 3

Hi
Did you ever find any solution for this. I am running into the same issue. Works with .net 3.5 but not 4.0
I did install the latest IS patch for IS 2010, but no luck
0 Kudos
Tobias79
Level 5

I think it should be possible to use .net 4.0 for building a DTF dll in c#. This dll now can be used as a c++ dll and there is no need to use the InstallShield c# dll wrapper.

Tobias
0 Kudos