Custom Installation Steps

Now I have found many examples and have not become wiser.

The short description is simple. During installation, a form dialog box appears and asks the user for database credentials. They should then be used to create a registry entry. The path to the key is always the same, but the key itself is a DB connection string generated from user input.

It should ask for the server name, username, password and password. It would be nice to have a test button, but not necessary.

This is for a windows service.

It looks like I'm going to add a class that inherits from the installer and overrides the install and uninstall methods. This applies to how much I get to before the information becomes distorted.

Information is not in my book :). Any ideas on how I can present the form to the user when installing my service and use the responses in the form to create a registry key.

Greetings

ps

In response to the answers;). The environment is Visual Studio, and the target system is Windows 2003. The server was developed using the .net framework V2.

This is a standard setup project created in visual studio that installs the service.

+1
source share
2 answers

Visual Studio is very limited as the author of the installation, and I'm not even sure that you can achieve what is connected with it. If you are associated with the Windows installer, I suggest taking a look at WiX . If not, NSIS may be your tool.

+2
source

You should start by describing your environment - are you targeting the Windows installer? What kind of installation software do you use. Also note that a plain text registry value is probably not the best option for storing user credentials.

0
source

All Articles