/build/static/layout/Breadcrumb_cap_w.png

How to write C# custom action in InstallShield

Hi all,

I have custom action written in C#(installer.cs). When I was running it in Visual studio created msi it was working fine. Now I am converting the .vdProj to InstallShield msi. In C# custom action I am checking for a particular condition if condition not satisfies I am aborting the installation and showing a proper message to user. In converted installshield msi everything is working fine but the message is not displaying. It is showing only Error 1001.
Please help me to show custom action message from C#.

Thanks,
Sanjay

0 Comments   [ + ] Show comments

Answers (2)

Posted by: anonymous_9363 13 years ago
Red Belt
0
Have a look at the various Custom Action attributes listed in MSI.CHM. Do you see ONE where it specifies C#? The choices are, in essence: DLL, EXE, VBS or JavaScript.

Compile your project into an EXE and call it whichever way you like, either from installed files or from the installation i.e. embedded in the Binary table.

What is it that your code is doing, anyway? Are you sure it can't be done natively in the MSI?
Posted by: pjgeutjens 13 years ago
Red Belt
0
Compile your project into an EXE

or your function into a DLL and call that
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ