Solve the web installer cannot choose the installation directory problem (1)

xiaoxiao2021-03-06  35

Solve the WebApplication installation deployment for Microsoft Visual Studio .NET Can't choose to install the directory

[Problem] Web Application installation deployment in Microsoft Visual Studio .NET, which can generate a setup, which automatically creates a new directory in the directory of the system disk, and set it Come into a virtual directory, but you can't let the user choose a installation directory yourself. The Windows Application installed in .NET installs the installer, allows the user to choose a installation directory yourself when installing, but you cannot set this installation directory to a virtual directory.

[Problem Solution] (Scheme 1) WEBAPPLICATION apps for design numbers Use .NET's Windows Application to install the installed installer. You can let the user choose a installation directory when you install it. This problem is half a problem. After the installation is complete, the installation directory requires the installer to manually set to web sharing, which is a WebApplication application for a virtual directory (Scenario 2). The installed installer is installed using the .NET's Windows Application installed deployment. Add a small tool during the installation deployment production, this tool resolves the virtual directory that sets the current installation directory to a set name. This will not be used to manually set the virtual directory. Windows Application Installation Action: (1) [File System]: Add File SetWebDir.exe (2) [Custom Action] in "Application Folder": Add a custom action, select this action to "Application Folder -> SetWebDir.exe" Setting Custom Action SetWebDir.exe's properties: arguments = [targetdir] Variety traveling to this action during installation Passing the current installation directory installerclass = false If set to true, you will not run this in the installation setWebdir.exe

[Design Setup Virtual Directory Tool SetWebDir.exe] Tool Description: Program Name: SetWebdir.exe Development Environment: (. Net C #) Windows Application Test Environment: Testing under Windows2000 By including file: a form setvdir.cs, two Class file: inIfile.cs, createwebdir.cs (1) setvdir.cs Form file (2) createwebdir.cs file (3) inIfile.cs file


New Post(0)