I made simple winform application in C#. I am showing menu options depending upon the mode selection. .i.e. if mode is eng then I am showing all the menus in MDI and if mode is tech then I am hiding some menus of MDI.This is handled in Code.
I am using MSI to create setup.I am using custom dialog box i.e. 2 radio button for mode selection. Now I want install software depeding upon the mode selection. i.e. if I select Eng mode radio button then installer install software with all menus and if I select tech mode then installer install only few menus which is applicable to tech mode.
I dont know how to use custom action so that i can pass the selection option to the exe.
Is there any other solution just let me know.
Yes I am passing tech/eng mode values as commadline argument and checked that in Main Method in program.cs. Default is tech mode.
In Installer Project - I set the radio button values and can able to get these values using
string myInput1 = this.Context.Parameters["BUTTON1"];
string myInput2 = this.Context.Parameters["BUTTON2"];
Now when I start installer it is showing 2 radio button and in that i want selected radion button value to be passed to exe so that only that exe get installed.