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
- :
- How to integrate C# code in InstallaShield 2010
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
‎Jul 22, 2009
02:31 AM
How to integrate C# code in InstallaShield 2010
Hi All,
Presently i am working on Installshield 2010. Here i am using InstallScript
in setup.rul file..
Here My question is how to integrate the C# code into this scsript
Please let me know i dont have any idea about the integrating the C# code into InstallShield 2010 version.Any one knows please let me know.
If Any new feature interduced in Installation 2010 ..
Can we write any C# code in installShield 2010 ?
or
Can we integrate C# code in installShield 2010 ?
Please help me
Thanks & Regards,
Venu
Presently i am working on Installshield 2010. Here i am using InstallScript
in setup.rul file..
Here My question is how to integrate the C# code into this scsript
Please let me know i dont have any idea about the integrating the C# code into InstallShield 2010 version.Any one knows please let me know.
If Any new feature interduced in Installation 2010 ..
Can we write any C# code in installShield 2010 ?
or
Can we integrate C# code in installShield 2010 ?
Please help me
Thanks & Regards,
Venu
(4) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 22, 2009
03:56 AM
One way is to have necessary C# code in a DLL and then call that DLL from your InstallScript with DotNetCoCreateObject. For example
set oObj = DotNetCoCreateObject("MyLibrary.dll", "MyLibrary.MyClass", "");
nRetVal = oObj.MyFunction();
if (nRetVal != 0 ) then
szErrMsg = oObj.GetErrorMessage();
SprintfMsiLog(szErrMsg);
endif;
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 22, 2009
04:40 AM
Thank you for replay
We can'nt able to write any C# code instead of Insatllation script in InsatllShield 2010 version ?
Thank you Once again
Venu
We can'nt able to write any C# code instead of Insatllation script in InsatllShield 2010 version ?
Thank you Once again
Venu
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 22, 2009
06:08 AM
karunakar wrote:
We can'nt able to write any C# code instead of Insatllation script in InsatllShield 2010 version ?
The script editor in IS 2010 supports only InstallScript, but if you wish to use C#, you can use also Managed Code custom actions so that there's no need to use InstallScript to call your .NET assembly. That .NET assembly needs to be written in e.g. Visual Studio, though.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 22, 2009
02:43 PM
A better way is to write managed custom actions using WiX DTF. You then wire these custom actions us as standard MSI dll's without the need for InstallScript in the middle.
![](/skins/images/8CE4FAD0DE6F3A6F9D0567434D2D2DAE/responsive_peak/images/icon_anonymous_message.png)