使用Visual Studio 08的安装程序,如何将Web应用程序安装到不在C:\ Inetpub下的路径中?

时间:2022-04-29 20:47:32

I'm trying to alter our existing installer for a web application, so that the files are located not at C:\Inetpub\wwwroot\OurProduct but rather under C:\Program Files\OurCompany\OurProduct, so far with little success.

我正在尝试更改Web应用程序的现有安装程序,以便文件不在C:\ Inetpub \ wwwroot \ OurProduct,而是在C:\ Program Files \ OurCompany \ OurProduct下,到目前为止收效甚微。

Any help/suggestions will be appreciated, thanks.

任何帮助/建议将不胜感激,谢谢。

2 个解决方案

#1


You need to change the physical path of the virtual directory content.

您需要更改虚拟目录内容的物理路径。

#2


if you want to get the installation path from the user during setup, you could have a look at this project here: http://www.codeproject.com/KB/install/WebServieInstaller.aspx it explains how to get the local installation path from the user himself.

如果你想在安装过程中从用户那里获得安装路径,你可以在这里查看这个项目:http://www.codeproject.com/KB/install/WebServieInstaller.aspx它解释了如何获取本地安装路径来自用户自己。

#1


You need to change the physical path of the virtual directory content.

您需要更改虚拟目录内容的物理路径。

#2


if you want to get the installation path from the user during setup, you could have a look at this project here: http://www.codeproject.com/KB/install/WebServieInstaller.aspx it explains how to get the local installation path from the user himself.

如果你想在安装过程中从用户那里获得安装路径,你可以在这里查看这个项目:http://www.codeproject.com/KB/install/WebServieInstaller.aspx它解释了如何获取本地安装路径来自用户自己。