.net 打包中的参数传递

在"自定义操作"中安装项目的CustomActionData属性中填入:
/targetdir="[TARGETDIR]\"
然后安装项目(installer类的继承类)中,就可以用
string InstallDir=this.Context.Parameters["targetdir"];
来访问用选择的安装目录
posted @ 2006-04-04 16:03  Donal  阅读(194)  评论(0编辑  收藏  举报