Virtual Directory in Web Setup Project

后端 未结 8 1981
梦谈多话
梦谈多话 2020-12-30 04:39

I have a web setup project which by default shows the virtual directory in the textbox installer screen. I wish that the virtual directory name cannot be edited by the user

8条回答
  •  独厮守ぢ
    2020-12-30 04:56

    In order to get the Virtual Directory using Context.Parameters

    1. Add a Custom Action to Install node (use this url if you want to know how to add custom actions)
    2. Right Click on the custom action and select properties window.
    3. For CustomActionsData property set /targetvdir="[TARGETVDIR]".
    4. Now in your installer class you can get the virtual dir name by Context.Parameters["targetvdir"]. Hope this helped you :)

提交回复
热议问题