Discussion:
如何取得Setup project 使用者輸入的資訊
(时间太久无法回复)
ad
2006-03-20 06:42:40 UTC
Permalink
€p§ÌšÏ¥ÎVS2005 ªºWebSetup project ŽÀ§ÚªºWeb Application «Ø€@­ÓŠwžËµ{Š¡
šÏ¥ÎªÌ¥i¥HŠbInstallation Address ³o­Ó¹ïžÜ€è¶ô€º¿é€JµêÀÀ¥Ø¿ýªºŠWºÙ
€p§Ì·QŠbCustom Action €º, šÏ¥ÎšìšÏ¥ÎªÌ¿é€JªºµêÀÀ¥Ø¿ýŠWºÙ, œÐ°Ý­nŠpŠó³B²z©O?
jacky kwok
2006-03-21 01:18:59 UTC
Permalink
小弟使用VS2005 的WebSetup project 替我的Web Application 建一個安裝程式
使用者可以在Installation Address 這個對話方塊內輸入虛擬目錄的名稱
小弟想在Custom Action 內, 使用到使用者輸入的虛擬目錄名稱, 請問要如何處理呢?
Firstly, add your own customAction in the setup project "Custom Actions"
page.

Select your customAction in the "Custom Actions" page and open the
properties dialog.
In the "CustomActionData" field, input "/VDIR=[TARGETVDIR]".

In your customAction program code, you can use
"Context.Parameters["VDir"]" (C#) to get the user input VirtualDirectory.
--
Jacky Kwok
***@alumni_DOT_cuhk_DOT_edu_DOT_hk
***@compose_DOT_com_DOT_hk
Loading...