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#.

0 Comments   [ + ] Show Comments


Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.


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?
Answered 11/16/2011 by: VBScab
Red Belt

Please log in to comment
Compile your project into an EXE

or your function into a DLL and call that
Answered 11/16/2011 by: pjgeutjens
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity