Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Here's a heads-up:</p> <blockquote> <p>Is it possible to use the installer to question the user where the files should be located</p> </blockquote> <p>from your setup project, select View | User Interface. This'll give you a view on all the dialogs currently in your setup program. You should see a "Start" item. Right-click it and say "Add Dialog".</p> <p>In Visual Studio you get a very limited list of extension dialogs you can use. Pick a "Textboxes" dialog. A "textboxes" dialog will give you up to four text entries to use to capture information from the user. Click on your newly-added textboxes dialog, and look at the Properties window, you'll see what I mean. You get to set labels (e.g. in which folder would you like to store external files?), visibilities etc. so you can customize the way the dialog looks.</p> <p>You also get a property e.g. Edit1Property, which you can set as a tag, e.g. EXTERN_FILES. You can pre-populate this (by setting Edit1Value) if you wish.</p> <p>So if you wanted to capture a folder during setup, you could let all of this happen, and whatever the user types in will be stored with the EXTERN_FILES tag.</p> <p>No use whatsoever so far, but that's where custom action dlls come in.</p> <blockquote> <p>and add this value to the config file?</p> <p>It would also be good if I could confirm that the user has entered a valid path but that's just a "Nice-to-have" at the moment.</p> </blockquote> <p>You need to look up the creation of custom action dlls on the msdn, but basically you need to create your own custom action that will modify the config file. By extension, your "nice-to-have" then becomes "trivial-to-have". (The custom action source is just c# or vb etc. so can pretty much do anything including writing stuff to configs and checking for the existence of folders.)</p> <p>You then use the Custom Actions part of the setup project to pass the values of the EXTERN_FILES tag in. Easy.</p> <p>In case you hadn't noticed there's a lot of ground covered here, so what you're talking about isn't trivial. This is just meant to give you a general approach, if you want to ask more detailed questions, feel free.</p> <p>One obvious downside to this approach is that you end up using a textbox when maybe some kind of common dialog would be better. Unfortunately, that's tough. There are big limitations associated with using VS Setup programs and this is one of them.</p>
    singulars
    1. This table or related slice is empty.
    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.
 

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