Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>This answer presumes that you are using the Setup Project in Visual Studio. If you aren't edit your question and we can take another look.</p> <p>To gather user input you need to introduce a new dialog to the installer.</p> <p>The following steps will bring you to the part of the installer project that will allow you to add new dialogs:</p> <ul> <li>In the Solution Explorer menu select the option "User Interface Editor"</li> <li>In the newly opened screen right click on of the options (Install for example) and select "Add Dialog"</li> <li>This displays a range of pre-built user dialogs. You will probably want one of the text box dialogs.</li> </ul> <p>If you want something different you can also create a custom setup dialog. There is a nice code project post on doing this <a href="http://www.codeproject.com/KB/install/vsSetupCustomDialogs.aspx" rel="nofollow">here</a>.</p> <hr> <p>Once you have this information you need to actually access it and use it during installation.</p> <p>For this you need to add an installer class to your target project (the project you want to install).</p> <p>In that installer class you can reference the text boxes you created using code like this:</p> <pre><code>public override void Install(System.Collections.IDictionary stateSaver) { string myPassedInValue=this.Context.Parameters["TEST"]; //Do what you want with that value - such as storing it as you wanted. } </code></pre> <p>This answer is a little bit from 10000 feet - if I went into all the detail I'd end up writing a full article. If you have any sticking points, please ask. Also - have a look at <a href="http://www.c-sharpcorner.com/UploadFile/ddoedens/CustomUI11102005042556AM/CustomUI.aspx" rel="nofollow">this excellent article</a> on the subject, it should get you most if not all of the way.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload