how to create msi installer in vs2010 using c#(WCF) that can be installed only on one system
<p>I want to create msi installer in vs2010 using c#(wcf) so that setup can be installed only on one system(similar to single user antivirus).</p>

<p>for more specific,
hi everyone,</p>

<pre><code>            I have a WCF service  (not hosted in IIS) having two functions.
</code></pre>

<p>1-</p>

<p>String licenceKey=null;</p>

<p>public string getLicenceKey()</p>

<pre><code>    {

         //uses AesCryptoServiceProvider to generate licencekey by encrypting machinename

        licenceKey = licence;

        returnlicence;

    }
</code></pre>

<p>it returns licencekey. </p>

<p>2-</p>

<pre><code>           publicboolvalidateLicenceKey(stringlicKey)

    {
</code></pre>

<p>//uses AesCryptoServiceProvider to decrypt the licencekey </p>

<pre><code>        intstatus = String.Compare(decriptKey, machineName);

        if(status == 0)

            returntrue;

        else

            returnfalse;

    }
</code></pre>

<p>REQUIREMENTS:</p>

<p>1-I want the installer call the getLicenceKey() and show the licencekey to user.</p>

<p>2-It then ask user to enter the licencekey and then call the validateLicenceKey() to validate the licence key.</p>

<p>3-if validation successful then it will be installed else not installet showing message "invalid licencekey".</p>

<p>can any one please help me?</p>

<p>thanx</p>
