How to code for Custom Dialog in Setup Project?

穿精又带淫゛_ 提交于 2019-12-02 06:03:08

MS seem to have deleted the walkthroughs on how to do this when setup projects were taken out of VS. However if you look at the property window of that RadioButtons(2) dialog you'll see there's an uppercase property name, probably BUTTON2. That will be set to 0 or 1. The way you pass parameters to your install method is like arguments, so you'd add something like /MyButton=[BUTTON2] and I think you need the brackets. Then inside the installer class you can say:

StringDictionary myStringDictionary = this.Context.Parameters;

and use the key MyButton on the dictionary to get the value. This should get you close.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!