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
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)
Please log in to answer
Posted by:
anonymous_9363
13 years ago
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?
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
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.