This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Need help to call a C# dll
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 02, 2011
08:02 AM
Need help to call a C# dll
I have an installscript MSI project. I have a C# dll that contains functions for install commit and uninstall. I am attaching the code herewith. I would like these functions to be called at the right time How do I do this?
I tried adding a components with this dll as the key file and setting the .Net installer class to yes. But I wasn't sure as to what to put in the .Net installer class arguments fields. I read through the help that they say contains sample code but that still didn't help.
Assuming I get all these argument settings right, what else do I need to do to get these functions invoked? Do I need to create custom actions?
Any help will be much appreciated. I am running out of time. I am very new to this kind of a task within installshield.
I tried adding a components with this dll as the key file and setting the .Net installer class to yes. But I wasn't sure as to what to put in the .Net installer class arguments fields. I read through the help that they say contains sample code but that still didn't help.
Assuming I get all these argument settings right, what else do I need to do to get these functions invoked? Do I need to create custom actions?
Any help will be much appreciated. I am running out of time. I am very new to this kind of a task within installshield.
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 08, 2011
06:09 PM
you will need ca. i usually create a c# static method :).
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 09, 2011
10:16 AM
Thanks for the reply.
Could you please explain the steps I need to do in creating a custom action with a C# static method?
- What does the C# method need to do?
- Does this method have to be in the installer class dll?
Sorry for asking too many questions. But I haven't worked with customj actions before nor do I have any C# experience. But I have co-workers who can help me with C#.
Thanks for your help!
Could you please explain the steps I need to do in creating a custom action with a C# static method?
- What does the C# method need to do?
- Does this method have to be in the installer class dll?
Sorry for asking too many questions. But I haven't worked with customj actions before nor do I have any C# experience. But I have co-workers who can help me with C#.
Thanks for your help!