RE: system.badimageformatexception returned from custom installer



Gary,

The answers to your questions are below.

1. How do you invoke that dll from the customer action?

The dll is created as a seperate project. and is manually added to the web
project in the web project's bin directory. The dll is identified as a custom
Action dll by going to the custom actions tab and then by right clicking
Install, navigating to the bin folder and then clicking Add Assembly. I do
not have any Conditions specified for the custom action and no
CustomActionData is passed. No entry point is identified and the
InstallerClass property is set to true.



2. What about that dll, is it a .NET installer class?

Yes it is an installer class. I have added an eventLogInstaller. In the
overridden Install function I log the install in the application event log.

3. How do you create that DLL and reference it in your setup project?

The dll is created as a seperate project. and is manually added to the web
project in the web project's bin directory. The dll is identified as a custom
Action dll by going to the custom actions tab and then by right clicking
Install, navigating to the bin folder and then clicking Add Assembly.



""Gary Chang[MSFT]"" wrote:

Hi Leslie,

When I run the installer I receive the system.badimageformatexception
which references the dll that contains the custom installer code.

Would you please provide more detailed information about your custom
installer?

1. How do you invoke that dll from the customer action?

2. What about that dll, is it a .NET installer class?

3. How do you create that DLL and reference it in your setup project?

These information will help us isolate your issue, so I appreciate your
time in performing them. Let me know the results at your earliest
convenience. If you have any questions or concerns, please let me know. I
am standing by to help you.

Thanks for your understanding!

Best regards,

Gary Chang
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.


.



Relevant Pages

  • RE: system.badimageformatexception returned from custom installer
    ... which references the dll that contains the custom installer code. ... Would you please provide more detailed information about your custom ... Microsoft Online Community Support ...
    (microsoft.public.dotnet.framework)
  • Re: USB Custom Client Driver
    ... I was able to create custom oalioctl dll, from the cloned oalioctl in Public ... then it creates two source files. ... I am trying to implement USB Function Custom Client Driver. ...
    (microsoft.public.windowsce.embedded)
  • Re: Custom Uninstall Question
    ... The CAB configuration file has a parameter for the custom setup dll file. ... The CAB file is copied and executed on the device itself so your custom DLL ... >>> settings that get created post installation. ...
    (microsoft.public.pocketpc.developer)
  • Re: ASP.Net and CustomError Handling
    ... I think you're on the right track but then as stated earlier, the custom dll ... Maybe you need to disable the 404 default handling in IIS. ... Paul maybe you can check the Custom Error tab in IIS on your development ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: regsvr32 error code 0x80004002
    ... I also have seen this error when there is a missing dll that your dll depends on. ... this invocation of regsvr32 succeeds. ... On another PC which also has VS2005 SP1 installed, an installer which was created by a VS2005 SP1 setup project did indeed insist on installing an extra copy of the redistributables. ... Sorry Norman, the context that this was happening on your development machine was lost, so I had forgotten that VS was installed. ...
    (microsoft.public.vc.mfc)

Loading