开发者

How do I change the installation path of a web setup project?

开发者 https://www.devze.com 2023-03-20 03:05 出处:网络
Using the 开发者_运维技巧default web setup project, the installation will be in inetpub/wwwroot.

Using the 开发者_运维技巧default web setup project, the installation will be in inetpub/wwwroot. I have tried to use custom action, and inside onInstall method, i did this.

Context.Parameters["targetdir"] = @"C:\testing";
base.Install(stateSaver);

I have already added /targetdir="[TARGETDIR]\" to custom action data for install and commit, but the installation path stays at wwwroot.

I understand that you can create a virtual directory 1st, and deploy using a normal web project using the same virtual directory name. But I'm wishing that steps could be reduced. Anyway advised to this?

0

精彩评论

暂无评论...
验证码 换一张
取 消