<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="https://www.w3.org/2005/Atom" xmlns:sy="https://purl.org/rss/1.0/modules/syndication/" xmlns:dc="https://purl.org/dc/elements/1.1/" xmlns:content="https://purl.org/rss/1.0/modules/content/" xmlns:wfw="https://wellformedweb.org/CommentAPI/" xmlns:slash="https://purl.org/rss/1.0/modules/slash/"
  version="2.0">
  <channel>
    <title>Arun's Blog</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/aruns_blog/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/aruns_blog/feed.xml</link>
    <description />
    <lastBuildDate>Wed, 17 Apr 2019 03:47:21 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>CSS : Child Selector and Descendant Selector</title>
      <link>https://docs.microsoft.com/archive/blogs/aruns_blog/css-child-selector-and-descendant-selector</link>
      <pubDate>Tue, 28 Jun 2011 06:21:00 GMT</pubDate>
      <dc:creator><![CDATA[Arun Kumar Dubey]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/aruns_blog/2011/06/28/css-child-selector-and-descendant-selector/</guid>
      <description><![CDATA[Say, You have a large HTML&nbsp;document with multiple &lt;P&gt; tags and nested &lt;Strong&gt;...]]></description>
      <content:encoded><![CDATA[<p><span style="font-family: verdana,geneva; font-size: small;">Say, You have a large HTML&nbsp;document with multiple &lt;P&gt; tags and nested &lt;Strong&gt; tags, a new requirement comes that in&nbsp;&lt;P&gt; tags all the &lt;strong&gt; tags that are direct child of &lt;p&gt; should have Green color and all other &lt;strong&gt;&nbsp;tags that are not direct child but descendant should have Red color.</span></p>
<p><span style="font-family: verdana,geneva; font-size: small;">You might like to use child and Descendant selectors for handling such situations.</span></p>
<p><span style="font-family: verdana,geneva; font-size: small;">Before IE-7, Child Selector was not supported in IE. And for IE to recognize the chile selector you should provide Doctype declaration in your page else IE7+ would render the page in quirks mode and child slector would be ingnored.</span></p>
<p></p>
<p><span style="font-family: verdana,geneva; font-size: small;"><b>Descendant Selector:</b></span></p>
<ul>
<li><span style="font-family: verdana,geneva; font-size: small;">Specifies elements by ancestry</span></li>
<li><span style="font-family: verdana,geneva; font-size: small;">If Child selector is specified after the Descendant Selector, then Descendant Selector would affect all the Children but not the direct children.</span></li>
<li><span style="font-family: verdana,geneva; font-size: small;">If Child selector is not specified or specified before the descendant Selector, then it would affect the direct children too.</span></li>
</ul>
<p><span style="font-family: verdana,geneva; font-size: small;">Each "generation" is separated by a space. For example, the following rule states that &lt;strong&gt; tags within &lt;p&gt; tags should have green text.</span></p>
<pre class="scroll"><span style="font-family: verdana,geneva;"><code class="css">p strong<br /> {<br /> color : Red;<br /> } </code></span></pre>
<p><span style="font-family: verdana,geneva; font-size: small;"><span style="line-height: 115%; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;">With descendant selectors generations can be skipped. In other words, the code above does not require that the <span class="code">&lt;strong&gt;</span> tag is a direct child of the <span class="code">&lt;p&gt;</span> tag.</span></span></p>
<p><span style="font-family: verdana,geneva;"><span style="line-height: 115%; font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"></span></span>&nbsp;</p>
<p><span style="font-family: verdana,geneva; font-size: small;"><b>Child Selectors:</b></span></p>
<p><span style="font-family: verdana,geneva; font-size: small;">A child is the direct descendant of a node/tag in CSS or in other words direct Parent-Child relationship.</span></p>
<pre class="scroll"><span style="font-family: verdana,geneva;"><code class="css">p &gt; strong <br /> {<br /> color: red;<br /> }<br /> </code></span></pre>
<p><span style="font-family: verdana,geneva; font-size: small;">In this case only &lt;strong&gt; tags that are direct children of &lt;p&gt; tags are affected.</span></p>
<p><span style="font-family: verdana,geneva; font-size: small;">Note the use of &ldquo;&gt;&rdquo; to specify the Parent &ndash; Child relationship.</span></p>
<p>&nbsp;</p>
<p><span style="font-size: small;"><span style="font-family: verdana,geneva;"><strong>Note:</strong> If you want proper effect, first specify the Descendant </span><span style="font-family: verdana,geneva;">Selector and then Child Selector. </span></span><span style="font-family: verdana,geneva; font-size: small;">If you reverse the order i.e. first Specify Child Selector </span><span style="font-family: verdana,geneva; font-size: small;">and then Descendant Selector, </span></p>
<p><span style="font-family: verdana,geneva; font-size: small;">in this scenario Child Selector would not be </span><span style="font-family: verdana,geneva; font-size: small;">applied as Descendant Selector will override the Child Selector.</span></p>
<p><span style="font-family: verdana,geneva; font-size: small;">Consider Child Selector as a one more layer of </span><span style="font-family: verdana,geneva; font-size: small;">Specialization over the Descendant Selector hence it should be written after </span><span style="font-family: verdana,geneva; font-size: small;">the Descendant Selector.</span></p>
<p><span style="font-family: verdana,geneva; font-size: small;">For Child selector to be recognised by IE7+ do put Doctype declaration in your page else it would be ignored as IE7+ would render the page in quirks mode.</span></p>
<p>&nbsp;</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Components.PostAttachments/00/10/18/09/14/HTMLPage1.htm" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-components-postattachments/00-10-18-09-14/HTMLPage1.htm">HTMLPage1.htm</a></p>]]></content:encoded>
    </item>
    <item>
      <title>Active Setup Registry Key : What it is and how to create in the package using Admin Studio Install Shield.</title>
      <link>https://docs.microsoft.com/archive/blogs/aruns_blog/active-setup-registry-key-what-it-is-and-how-to-create-in-the-package-using-admin-studio-install-shield</link>
      <pubDate>Mon, 20 Jun 2011 06:38:00 GMT</pubDate>
      <dc:creator><![CDATA[Arun Kumar Dubey]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/aruns_blog/2011/06/20/active-setup-registry-key-what-it-is-and-how-to-create-in-the-package-using-admin-studio-install-shield/</guid>
      <description><![CDATA[Few days back, I was re-packaging an application for windows-7. And I observed the following...]]></description>
      <content:encoded><![CDATA[<p><span style="font-family: verdana,geneva; font-size: small;">Few days back, I was re-packaging an application for windows-7. And I observed the following behavior:</span></p>
<p><span style="font-family: verdana,geneva; font-size: small;">While launching from Admin account or doing &ldquo;Run as Admin&rdquo; it was launching properly but when launched from the standard-user account, though it was launching but GUI was not coming properly and before launching, it throws the error that some particular Skin file is missing. I checked in installation folder and skin file was there but still while launching I was getting the error, but when launched from Admin account or using &ldquo;Run as admin&rdquo; it was launching properly with proper GUI and no skin file missing error.</span></p>
<p><span style="font-family: verdana,geneva; font-size: small;">On exploring further I found that application was installed by admin account and it created some entries in HKCU, and these entries contain the path and name of skin file to be used. So when we launched the application from Standard user account then these entries were empty in HKCU for Standard user. So to solve this problem while re-packaging I used <strong><span style="text-decoration: underline;">Active Setup</span></strong>.</span></p>
<p><span style="font-family: verdana,geneva; font-size: medium; text-decoration: underline; background-color: #ffffff;">Active Setup provides a great solution for installing current user data when the package is not installed in the user context.</span></p>
<p>&nbsp;</p>
<p><strong><span style="font-family: verdana,geneva; font-size: small;">This is how it all works:</span></strong></p>
<p><span style="font-family: verdana,geneva; font-size: small;">When user logs on the system then following registry entries are checked :</span></p>
<p><span style="font-family: verdana,geneva; font-size: small;">HKLM\Software\Microsoft\Active Setup\Installed Components\&lt;UID&gt;</span></p>
<p><span style="font-family: verdana,geneva; font-size: small;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; And</span></p>
<p><span style="font-family: verdana,geneva; font-size: small;">HKCU\Software\Microsoft\Active Setup\Installed Components\&lt;UID&gt;</span></p>
<p><span style="font-family: verdana,geneva; font-size: small;"><strong>N.B.</strong> &lt;UID&gt; has to unique; it is good practice to use a GUID. As I was repackaging I used the Product Code of installer. (Product Code is GUID)</span></p>
<p><span style="font-family: verdana,geneva; font-size: small;">If the HKCU key is not found in the registry then the contents of the string value StubPath is executed. The HKLM key is then copied to HKCU.</span></p>
<p><span style="font-family: verdana,geneva;"><span style="font-size: small;"></span></span>&nbsp;</p>
<p><span style="font-family: verdana,geneva;"><span style="font-size: small;">The executable in StubPath can be anything. It can be a </span><span style="font-size: small;">VBS script, a regsvr32.exe call, msiexec.exe call etc.</span></span></p>
<p><span style="font-family: verdana,geneva;"><span style="font-size: small;">But here my aim is to repair the already installed </span><span style="font-size: small;">application so that it may have the entries in HKCU for current user context.</span></span></p>
<p><span style="font-family: verdana,geneva;"><span style="font-size: small;">To do this I need </span><span style="font-size: small;">to force the package to repair so Msiexec.exe will be used:</span>&nbsp;</span></p>
<pre class="scroll"><span style="font-family: book antiqua,palatino; font-size: medium;"><code class="cplusplus">Msiexec.exe /fu &lt;ProductCode&gt; /qn<br /> <br /> /f - Repair<br /> <br /> /u - all required user-specific registry entries<br /> <br /> /qn &ndash; Silent mode with no UI.<br /></code></span></pre>
<p>&nbsp;</p>
<p><span style="font-family: verdana,geneva;"><span style="font-size: small;">[For other repair options type &ldquo;msiexec&rdquo; in run, it will </span><span style="font-size: small;">open the help for msiexec]</span></span></p>
<p>&nbsp;</p>
<p><span style="font-family: verdana,geneva;"><span style="font-size: small;">So I would need to create Active Setup entry in HKLM </span><span style="font-size: small;">Registry for my package.</span></span></p>
<p><span style="font-family: verdana,geneva;"><span style="font-size: small;">For this example I have used <em><span style="text-decoration: underline;"><span style="background-color: #ffffff;">Admin Studio InstallShield </span></span></em></span><span style="font-size: small;">to re-package the application.</span></span></p>
<p>&nbsp;</p>
<p><span style="font-family: verdana,geneva;"><span style="font-size: small;">On opening the application by Admin Studio InstallShiled </span><span style="font-size: small;">I found out that there was no Active Setup entry in HKLM under Registry, so I </span><span style="font-size: small;">created the one by myself.</span></span></p>
<p><span style="font-family: verdana,geneva;"><span style="font-size: small;">Please see the below screenshots to see how to create Active </span><span style="font-size: small;">Setup registry entry for a Package: (Admin Studio Installshield is used here):</span>&nbsp;</span></p>
<p>&nbsp;</p>
<p><span style="font-family: verdana,geneva;"><span style="font-size: small;"><span style="text-decoration: underline;">Step 1</span>: Open the .msi or create a .mst transform file and </span><span style="font-size: small;">navigate to Registry section.</span></span></p>
<p><span style="font-family: comic sans ms,sans-serif; font-size: small;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/45/25/8371.Step1.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-45-25/8371.Step1.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/45/25/8371.Step1.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x1024/__key/communityserver-blogs-components-weblogfiles/00-00-01-45-25/8371.Step1.jpg" /></a></span></p>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/45/25/2148.Step1.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-45-25/2148.Step1.jpg"></a></p>
<p><span style="font-family: verdana,geneva;"><span style="font-size: small;"><span style="text-decoration: underline;">Step 2</span>: In Registry section navigate to </span><span style="font-size: small;">HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\</span></span></p>
<p><span style="font-family: comic sans ms,sans-serif; font-size: small;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/45/25/0116.Step2.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-45-25/0116.Step2.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/45/25/0116.Step2.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x1024/__key/communityserver-blogs-components-weblogfiles/00-00-01-45-25/0116.Step2.jpg" /></a></span></p>
<p><span style="font-family: comic sans ms,sans-serif; font-size: small;"></span>&nbsp;</p>
<p></p>
<p><span style="font-family: verdana,geneva;"><span style="font-size: small;"><span style="text-decoration: underline;">Step 3</span>: Right click on Microsoft folder and select New </span><span style="font-size: small;">-&gt; Key, a new folder will be created under Microsoft.</span></span></p>
<p><span style="font-family: comic sans ms,sans-serif; font-size: small;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/45/25/4606.step3.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-45-25/4606.step3.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/45/25/4606.step3.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x1024/__key/communityserver-blogs-components-weblogfiles/00-00-01-45-25/4606.step3.jpg" /></a></span></p>
<p><span style="font-family: comic sans ms,sans-serif; font-size: small;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/45/25/7587.step3_1.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-45-25/7587.step3_5F00_1.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/45/25/7587.step3_1.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x1024/__key/communityserver-blogs-components-weblogfiles/00-00-01-45-25/7587.step3_5F00_1.jpg" /></a></span></p>
<p><span style="font-family: comic sans ms,sans-serif; font-size: small;"></span>&nbsp;</p>
<p></p>
<p><span style="font-family: verdana,geneva;"><span style="font-size: small;"><span style="text-decoration: underline;">Step 4</span>: Change the name of newly created folder to &ldquo;Active </span><span style="font-size: small;">Setup&rdquo;.</span></span></p>
<p><span style="font-family: comic sans ms,sans-serif; font-size: small;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/45/25/8524.step4.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-45-25/8524.step4.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/45/25/8524.step4.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-45-25/8524.step4.jpg" /></a></span></p>
<p><span style="font-family: verdana,geneva;"><span style="font-size: small;"><strong>Note:</strong> If you do not find any folder named SOFTWARE or </span><span style="font-size: small;">Microsoft under HKLM then these folders can be created in the same way as &ldquo;Active </span><span style="font-size: small;">Setup&rdquo; folder has been created.</span></span></p>
<p>&nbsp;</p>
<p><span style="font-family: verdana,geneva;"><span style="font-size: small;"><span style="text-decoration: underline;">Step 5</span>: As explained earlier, now create a one more </span><span style="font-size: small;">folder under the &ldquo;Active Setup&rdquo; and name it as &ldquo;Installed Components&rdquo;.</span></span></p>
<p><span style="font-family: comic sans ms,sans-serif; font-size: small;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/45/25/2021.step5.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-45-25/2021.step5.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/45/25/2021.step5.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x1024/__key/communityserver-blogs-components-weblogfiles/00-00-01-45-25/2021.step5.jpg" /></a></span></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;<span style="font-family: verdana,geneva;"><span style="font-size: small;"><span style="text-decoration: underline;">Step 6</span>: Create a new folder under the &ldquo;Installed </span><span style="font-size: small;">Components&rdquo; and name it as &ldquo;[ProductCode]&rdquo;.</span></span></p>
<p><span style="font-family: comic sans ms,sans-serif; font-size: small;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/45/25/3808.step6.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-45-25/3808.step6.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/45/25/3808.step6.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x1024/__key/communityserver-blogs-components-weblogfiles/00-00-01-45-25/3808.step6.jpg" /></a></span></p>
<p>&nbsp;</p>
<p><span style="font-family: verdana,geneva;"><span style="font-size: small;"><strong>Note</strong>: [ProductCode] is an .msi variable which is replaced </span><span style="font-size: small;">by Product Code value when package is installed on computer. Product Code is </span><span style="font-size: small;">nothing but the GUID assigned to package. You can check the Product Code value </span><span style="font-size: small;">from &ldquo;General Information&rdquo; section. You can also use the Product Code GUID </span><span style="font-size: small;">instead of &ldquo;[ProductCode]&rdquo; variable; but using&nbsp;"[ProductCode]" is cleaner and better.</span></span></p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/45/25/0537.step6_1.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-45-25/0537.step6_5F00_1.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/45/25/0537.step6_1.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x1024/__key/communityserver-blogs-components-weblogfiles/00-00-01-45-25/0537.step6_5F00_1.jpg" /></a>&nbsp;</p>
<p><span style="font-family: comic sans ms,sans-serif; font-size: small;"></span>&nbsp;</p>
<p><span style="font-family: verdana,geneva;"><span style="font-size: small;"><span style="text-decoration: underline;">Step 7</span>: After creating the &ldquo;[ProductCode]&rdquo; folder select </span><span style="font-size: small;">it and right click on the extreme right lower pane. &nbsp;From the right click menu select &ldquo;New String </span><span style="font-size: small;">Value&rdquo; option.</span></span></p>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/45/25/6735.step7.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-45-25/6735.step7.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/45/25/6735.step7.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x1024/__key/communityserver-blogs-components-weblogfiles/00-00-01-45-25/6735.step7.jpg" /></a></p>
<p>&nbsp;</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/45/25/8171.step7_1.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-45-25/8171.step7_5F00_1.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/45/25/8171.step7_1.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x1024/__key/communityserver-blogs-components-weblogfiles/00-00-01-45-25/8171.step7_5F00_1.jpg" /></a></p>
<p><span style="font-family: comic sans ms,sans-serif; font-size: small;"></span>&nbsp;</p>
<p><span style="font-family: verdana,geneva; font-size: small;"><span style="text-decoration: underline;">Step 8</span>: Name the newly created string value as &ldquo;StubPath&rdquo;.</span></p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/45/25/4452.step8.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-45-25/4452.step8.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/45/25/4452.step8.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x1024/__key/communityserver-blogs-components-weblogfiles/00-00-01-45-25/4452.step8.jpg" /></a></p>
<p>&nbsp;</p>
<p><span style="font-family: verdana,geneva;"><span style="font-size: small;"><span style="text-decoration: underline;">Step 9</span>: Double Click the &ldquo;StubPath&rdquo; string key and that </span><span style="font-size: small;">would open an Edit Data popup. Enter following under "Value Data:" Textbox</span></span></p>
<pre class="scroll"><span style="font-family: book antiqua,palatino; font-size: medium;"><code class="html">msiexec /fu [ProductCode] /qn</code></span></pre>
<p><span style="font-family: verdana,geneva; font-size: small;">Then click OK.</span></p>
<p><span style="font-family: comic sans ms,sans-serif; font-size: small;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/45/25/6254.step9.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-45-25/6254.step9.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/45/25/6254.step9.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x1024/__key/communityserver-blogs-components-weblogfiles/00-00-01-45-25/6254.step9.jpg" /></a></span></p>
<p><span style="font-family: comic sans ms,sans-serif; font-size: small;"></span>&nbsp;</p>
<p><span style="font-family: verdana,geneva; font-size: small;"><span style="text-decoration: underline;">Step 10</span>: In the end, &nbsp;your .msi/.mst should look like the following:</span></p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/45/25/4405.step10.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-45-25/4405.step10.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/45/25/4405.step10.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x1024/__key/communityserver-blogs-components-weblogfiles/00-00-01-45-25/4405.step10.jpg" /></a>&nbsp;</p>
<p><br />&nbsp;</p>
<p><span style="font-family: verdana,geneva;"><span style="font-size: small;">After creating the Active Setup registry, save your </span><span style="font-size: small;">package and Install it.</span></span></p>
<p><span style="font-family: verdana,geneva;"><span style="font-size: small;">Now after installation there will be an entry under HKLM\Software\Microsoft\Active </span><span style="font-size: small;">Setup\Installed Components\&lt;UID&gt; for the currently installed application.</span></span></p>
<p><span style="font-family: verdana,geneva;"><span style="font-size: small;">And if application is installed in a different user </span><span style="font-size: small;">context than the current user, so when current user logs on the system, Windows </span><span style="font-size: small;">would find that HKCU entry is missing. Then it would run msiexec.exe with</span></span><br /><span style="font-family: verdana,geneva;"><span style="font-size: small;">repair options from StubPath and copy the HKLM key to HKCU. (Note that we wrote </span><span style="font-size: small;">msiexec.exe in StubPath, windows would run whatever command is written in </span><span style="font-size: small;">StubPath)</span>&nbsp;</span></p>
<p><span style="font-family: verdana,geneva;"><span style="font-size: small;">Next time when this user logs in the repair won't run as </span><span style="font-size: small;">the key already exists in HKCU.</span></span></p>
<p>&nbsp;</p>
<p><span style="font-family: verdana,geneva;"><span style="font-size: small;"><strong>N.B.&nbsp;</strong> : Here I only </span><span style="font-size: small;">choose to repair the Registry entry, if you want you can choose the entire </span><span style="font-size: small;">Installation to repair by using :</span></span></p>
<pre class="scroll"><span style="font-family: book antiqua,palatino; font-size: medium;"><code class="cplusplus">msiexec.exe /fauvs &lt;ProdcutCode&gt; /qn</code></span></pre>
<p><span style="font-family: verdana,geneva; font-size: small;">Hope this article is&nbsp;helpful to you all.</span></p>]]></content:encoded>
    </item>
  </channel>
</rss>