WIX Installer use user text to dictate the product name / command line params
<p>I am struggling with WIX and value suggestions. I'm creating a skeleton windows service and have the code in the installer to correctly bundle the files and deploy a windows service, pass in command line arguments, etc.</p>

<p>However, the service has no operational logic deployed in the code - its all pulled at runtime from a WS that stores configuration information. I need to tell the windows service (at install time) which configuration name to use. </p>

<p>I also need to install the service so it is distinct from all others given that config name. A box can have n instances installed of this thing; each service  pulling from a different config.</p>

<p>In short: I need to set a property (and product name) dynamically based on the user's input.</p>

<p>Here is what I'm trying with no idea how to proceed on getting the 'Config' value set by the user:</p>

<pre><code>&lt;!--    //todo: define this by user input??--&gt;
&lt;?define Config = "DefaultConfigName" ?&gt;

&lt;Product Id="*" Name="$(var.Config)" Language="1033" Version="1.0.0.0" UpgradeCode="{someGUID}"&gt;
  &lt;Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" /&gt;

 &lt;Property Id="WIXUI_INSTALLDIR" Value="INSTALLFOLDER" /&gt;

 &lt;MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed."  /&gt;
 &lt;MediaTemplate EmbedCab="yes" /&gt;

 &lt;Feature Id="ProductFeature" Title="$(var.Config)" Level="1"&gt;
  &lt;ComponentGroupRef Id="ProductComponents" /&gt;
 &lt;/Feature&gt;
&lt;/Product&gt;
</code></pre>

<p>Thoughts?</p>