visual studio - Is there any way for a .NET application to read a variable defined at installation time? -


With the Visual Studio setup project, I can ask the user for some input, such as the location of the folder. Any way to install user input, is there any way?

The easiest way to do this is to store the value in the registry:

  1. Right-click on your setup project and see -> User Interface

  2. Install and move it to the right place in order

  3. In each of the dialogs, a property property , such as Edit1Property or ButtonProperty Rti name must be a unique value, by default it's EDITA1 as some.

  4. Right-click on your setup project and select -> Registry

  5. HKCU \ Software \ [creator] or HKCU \ Software \ [creator] depends on whether you want to store this setting only for the current user or Machine wide You can also create a new entry under user / machine hive after which the entry will be stored under HKCU or HKLM, depending on whether the installation is per-user or per-machine.

  6. Create a new value under the selected key in 5 In the view of the properties of that value, enter the property name of the control that is specified in step 3. This name should be in square bracket, for example [EDITA1] and you have done it. / P>


Comments

Popular posts from this blog

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -