<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>From MSI to WiX, Part 3 - Launch Conditions and Application Search</title><link>http://blogs.technet.com/alexshev/archive/2008/02/10/from-msi-to-wix-part-3.aspx</link><description>The main page for the series is here . Introduction Before we start with Launch Conditions and Application Search let's take a look at the sequence of actions Windows Installer executes during installation. You can find the suggested sequence for InstallExecuteSequence</description><dc:language>ru-RU</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Fiberglass flowers / WiX linkdump: samples and howto-s I found, mostly .NET deployment</title><link>http://blogs.technet.com/alexshev/archive/2008/02/10/from-msi-to-wix-part-3.aspx#3016864</link><pubDate>Fri, 21 Mar 2008 02:48:30 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3016864</guid><dc:creator>Fiberglass flowers / WiX linkdump: samples and howto-s I found, mostly .NET deployment</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://victorsergienko.com/wix-net-linkdump-samples-howto-s/"&gt;http://victorsergienko.com/wix-net-linkdump-samples-howto-s/&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>rCustomAction Before LaunchConditions generates 2731 error</title><link>http://blogs.technet.com/alexshev/archive/2008/02/10/from-msi-to-wix-part-3.aspx#3058524</link><pubDate>Wed, 21 May 2008 14:25:43 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3058524</guid><dc:creator>Baldur van Lew</dc:creator><description>&lt;P&gt;Hi Alex,&lt;/P&gt;
&lt;P&gt;I'm trying to get a CustomAction running before LaunchConditions (it retrieves som system info I want to check). This works on Vista and XP but not on a Server 2003 SP1. &lt;/P&gt;
&lt;P&gt;The error is 2731 Selection Manager not initialized. (I read somewhere that initialization occurs in the file costing).&lt;/P&gt;
&lt;P&gt;To be specific the msiexec versions are&lt;/P&gt;
&lt;P&gt;Vista: V 4.00.6001.0 &lt;/P&gt;
&lt;P&gt;XP: V 3.01.4000.1823&lt;/P&gt;
&lt;P&gt;Server 2003: V 3.01.4000.3959 &lt;/P&gt;
&lt;P&gt;Is a there a know difference between 2003 and the other two OS versions as regards this?&lt;/P&gt;</description></item><item><title>re: From MSI to WiX, Part 3 - Launch Conditions and Application Search</title><link>http://blogs.technet.com/alexshev/archive/2008/02/10/from-msi-to-wix-part-3.aspx#3058948</link><pubDate>Thu, 22 May 2008 03:51:21 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3058948</guid><dc:creator>Alex Shevchuk</dc:creator><description>&lt;p&gt;Sorry, I don't know the answer. &amp;nbsp;Are you using MSI API to get OS info or just regular Win32 API? &amp;nbsp;This error indicates that some MSI API call was in use that required costing to be completed. &amp;nbsp;Also, you might want to get a log file which may help you in identifying the problem. &amp;nbsp;Obviously, your custom action must put detailed log info into log.&lt;/p&gt;
&lt;p&gt;Also, is your custom action is scheduled in both UI and execute sequence tables? &amp;nbsp;When you install your application, do you use the same UI level in all three OS's?&lt;/p&gt;
</description></item><item><title>re: From MSI to WiX, Part 3 - Launch Conditions and Application Search</title><link>http://blogs.technet.com/alexshev/archive/2008/02/10/from-msi-to-wix-part-3.aspx#3070352</link><pubDate>Fri, 13 Jun 2008 10:47:55 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3070352</guid><dc:creator>Friedrdich</dc:creator><description>&lt;p&gt;I'm sorry but this does not work&lt;/p&gt;
&lt;p&gt;Property Id='TESTAPP' Value='[ProgramFilesFolder]XYZ'&amp;gt; &lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Friedrich&lt;/p&gt;</description></item><item><title>re: From MSI to WiX, Part 3 - Launch Conditions and Application Search</title><link>http://blogs.technet.com/alexshev/archive/2008/02/10/from-msi-to-wix-part-3.aspx#3078235</link><pubDate>Thu, 26 Jun 2008 06:49:40 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3078235</guid><dc:creator>Alex Shevchuk</dc:creator><description>&lt;p&gt;Strange. &amp;nbsp;It does work for me. &amp;nbsp;Here is sample project:&lt;/p&gt;
&lt;p&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;Wix xmlns=&amp;quot;&lt;a rel="nofollow" target="_new" href="http://schemas.microsoft.com/wix/2003/01/wi&amp;quot;&amp;gt;"&gt;http://schemas.microsoft.com/wix/2003/01/wi&amp;quot;&amp;gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp;&amp;lt;Product Id=&amp;quot;{EF2D46DE-0A93-4ee2-9FC8-38AFA0052845}&amp;quot; Name=&amp;quot;Your Product&amp;quot; Language=&amp;quot;1033&amp;quot; Version=&amp;quot;0.0.0.0&amp;quot; Manufacturer=&amp;quot;Your Company&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;&amp;lt;Package Id=&amp;quot;????????-????-????-????-????????????&amp;quot; Description=&amp;quot;Description of your product&amp;quot; Comments=&amp;quot;This will appear in the file summary stream.&amp;quot; InstallerVersion=&amp;quot;200&amp;quot; Compressed=&amp;quot;yes&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;&amp;lt;Media Id=&amp;quot;1&amp;quot; Cabinet=&amp;quot;Product.cab&amp;quot; EmbedCab=&amp;quot;yes&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;&amp;lt;Directory Id=&amp;quot;TARGETDIR&amp;quot; Name=&amp;quot;SourceDir&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;Directory Id=&amp;quot;ProgramFilesFolder&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;Directory Id=&amp;quot;INSTALLLOCATION&amp;quot; Name=&amp;quot;MyAppDir&amp;quot; LongName=&amp;quot;My Application Directory&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;Component Id=&amp;quot;ProductComponent&amp;quot; Guid=&amp;quot;{6B74BE11-30D2-4f67-A5A9-956C5FF13F52}&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;!-- TODO: Insert your files, registry keys, and other resources here. --&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/Component&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/Directory&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/Directory&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;&amp;lt;/Directory&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;&amp;lt;Property Id='TESTAPP' Value='[WindowsFolder]XYZ'&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;RegistrySearch Id='TestAppRegSearch'&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Root='HKLM'&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key='SOFTWARE\Microsoft\.NETFramework'&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Name='InstallRoot2'&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Type='raw' /&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;&amp;lt;/Property&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;&amp;lt;CustomAction Id='ShowTESTAPP' Error='[TESTAPP]' /&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;&amp;lt;InstallExecuteSequence&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;Custom Action='ShowTESTAPP' Before='InstallInitialize' /&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;&amp;lt;/InstallExecuteSequence&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;&amp;lt;Feature Id=&amp;quot;ProductFeature&amp;quot; Title=&amp;quot;Feature Title&amp;quot; Level=&amp;quot;1&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;ComponentRef Id=&amp;quot;ProductComponent&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;&amp;lt;/Feature&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp;&amp;lt;/Product&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;/Wix&amp;gt;&lt;/p&gt;
</description></item><item><title>re: From MSI to WiX, Part 3 - Launch Conditions and Application Search</title><link>http://blogs.technet.com/alexshev/archive/2008/02/10/from-msi-to-wix-part-3.aspx#3106584</link><pubDate>Fri, 15 Aug 2008 17:38:45 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3106584</guid><dc:creator>Lee Parker</dc:creator><description>&lt;P&gt;I have a wix project that has 2 features and is working the way I want from the UI.&lt;/P&gt;
&lt;P&gt;What I need is a way for someone to select features from the commandline without using a transform. &amp;nbsp;Can this be done by setting properties and using condition statements?&lt;/P&gt;</description></item><item><title>re: From MSI to WiX, Part 3 - Launch Conditions and Application Search</title><link>http://blogs.technet.com/alexshev/archive/2008/02/10/from-msi-to-wix-part-3.aspx#3106796</link><pubDate>Sat, 16 Aug 2008 03:03:03 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3106796</guid><dc:creator>Alex Shevchuk</dc:creator><description>&lt;p&gt;Search for ADDLOCAL/ADDSOURCE properties.&lt;/p&gt;
</description></item><item><title>re: From MSI to WiX, Part 3 - Launch Conditions and Application Search</title><link>http://blogs.technet.com/alexshev/archive/2008/02/10/from-msi-to-wix-part-3.aspx#3118594</link><pubDate>Thu, 04 Sep 2008 08:02:11 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3118594</guid><dc:creator>Ram</dc:creator><description>&lt;P&gt;Hi Alex,&lt;/P&gt;
&lt;P&gt;I'm using setup and deployment project to create setup for my vb.net windows application.&lt;/P&gt;
&lt;P&gt;while deploying the application on target machine i need to check the user permissions. if the user is administrator then it should install. if not the installation should terminate.&lt;/P&gt;
&lt;P&gt;please help me to achieve this.&lt;/P&gt;
&lt;P&gt;thanks&lt;/P&gt;</description></item><item><title>re: From MSI to WiX, Part 3 - Launch Conditions and Application Search</title><link>http://blogs.technet.com/alexshev/archive/2008/02/10/from-msi-to-wix-part-3.aspx#3120260</link><pubDate>Sun, 07 Sep 2008 00:25:26 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3120260</guid><dc:creator>Alex Shevchuk</dc:creator><description>&lt;p&gt;Hi Ram,&lt;/p&gt;
&lt;p&gt;Best practice for checking if user has administrative privileges is to use Custom Action Type 19:&lt;/p&gt;
&lt;p&gt;&amp;lt;InstallExecuteSequence&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp;&amp;lt;Custom Action='IsPrivileged' Before='LaunchConditions'&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Not Privileged&lt;/p&gt;
&lt;p&gt; &amp;nbsp;&amp;lt;/Custom&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;/InstallExecuteSequence&amp;gt;&lt;/p&gt;
&lt;p&gt;You need to schedule it in both InstallExecuteSequence and InstallUISequence. &amp;nbsp;Keep in mind that on Vista with UAC on, Privileged may be defined even if user is not an Admin.&lt;/p&gt;
&lt;p&gt;Alex&lt;/p&gt;
</description></item><item><title>re: From MSI to WiX, Part 3 - Launch Conditions and Application Search</title><link>http://blogs.technet.com/alexshev/archive/2008/02/10/from-msi-to-wix-part-3.aspx#3158909</link><pubDate>Tue, 25 Nov 2008 00:43:56 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3158909</guid><dc:creator>Amir</dc:creator><description>&lt;p&gt;Hi Alex,&lt;/p&gt;
&lt;p&gt;Great article, i am working on a local app for our company and i am having a bit of a problem implementing AppSearch codes, here is my xml, any comments?&lt;/p&gt;
&lt;p&gt;&amp;lt;Property Id=&amp;quot;TORTOISENOTINSTALLED&amp;quot;&amp;gt;Could not find TortoiseSVN.&amp;lt;/Property&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;Property Id=&amp;quot;TORTOISEINSTALLED&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;RegistrySearch Root=&amp;quot;HKLM&amp;quot; Key=&amp;quot;SOFTWARE\TortoiseSVN&amp;quot; Name=&amp;quot;Directory&amp;quot; Type=&amp;quot;directory&amp;quot; Id=&amp;quot;TortoiseDirectory&amp;quot; Win64=&amp;quot;yes&amp;quot;/&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;/Property&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;CustomAction Id=&amp;quot;ISTORTOISEINSTALLED&amp;quot; Error=&amp;quot;[TORTOISENOTINSTALLED]&amp;quot;/&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;InstallUISequence&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;Custom Action=&amp;quot;ISTORTOISEINSTALLED&amp;quot; After=&amp;quot;FindRelatedProducts&amp;quot;&amp;gt;TORTOISEINSTALLED&amp;amp;lt;&amp;amp;gt;&amp;quot;&amp;quot;&amp;lt;/Custom&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;/InstallUISequence&amp;gt;&lt;/p&gt;
&lt;p&gt;now when i got to HKLM\\SOFTWARE\\TortoiseSVN and change it to HKLM\\SOFTWARE\\TDDDDDDDDDDDDDDDDDDDortoiseSVN&lt;/p&gt;
&lt;p&gt;TORTOISEINSTALLED seems to be returning &amp;quot;:1&amp;quot; &lt;/p&gt;
&lt;p&gt;any help is greatly appreciated &lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Amir&lt;/p&gt;</description></item><item><title>re: From MSI to WiX, Part 3 - Launch Conditions and Application Search</title><link>http://blogs.technet.com/alexshev/archive/2008/02/10/from-msi-to-wix-part-3.aspx#3159037</link><pubDate>Tue, 25 Nov 2008 05:38:39 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3159037</guid><dc:creator>aMIR</dc:creator><description>&lt;p&gt;Never mind got it working &lt;/p&gt;
&lt;p&gt;Thanks :)&lt;/p&gt;</description></item><item><title>re: From MSI to WiX, Part 3 - Launch Conditions and Application Search</title><link>http://blogs.technet.com/alexshev/archive/2008/02/10/from-msi-to-wix-part-3.aspx#3185608</link><pubDate>Mon, 19 Jan 2009 13:36:32 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3185608</guid><dc:creator>ram</dc:creator><description>&lt;p&gt;Hi Alex,&lt;/p&gt;
&lt;p&gt;my application needs to have .netframework2.0 and MDAC2.8.&lt;/p&gt;
&lt;p&gt;i'm using launch conditions to check for these components and installing using installUrl property.&lt;/p&gt;
&lt;p&gt;But my problem is, &lt;/p&gt;
&lt;p&gt;if my target machine don't have these two components, my installer starts installing .netframework2.0 and after installing framework2.0 it is not directly installing MDAC2.8.Again i need to click on installer to install the second component.&lt;/p&gt;
&lt;p&gt;is there any way to install all the prerequisites on single click?&lt;/p&gt;</description></item><item><title>re: From MSI to WiX, Part 3 - Launch Conditions and Application Search</title><link>http://blogs.technet.com/alexshev/archive/2008/02/10/from-msi-to-wix-part-3.aspx#3207336</link><pubDate>Fri, 27 Feb 2009 13:00:28 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3207336</guid><dc:creator>Ferdin</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I am a newbie to Wix and i'm using .NET 2.0, Visual Studio 2005, Wix 2.0. I need to check in the client machine if .NET 2.0 or later versions are installed if not it should start the installation of .NET 2.0. &lt;/p&gt;
&lt;p&gt;I tried many but nothing works it detects .NET 2.0 is not installed and winds up the installation.&lt;/p&gt;
&lt;p&gt;Is there any ideas which you could suggest me?&lt;/p&gt;
&lt;p&gt;Thanks in advance&lt;/p&gt;
&lt;p&gt;Ferdin&lt;/p&gt;</description></item><item><title>re: From MSI to WiX, Part 3 - Launch Conditions and Application Search</title><link>http://blogs.technet.com/alexshev/archive/2008/02/10/from-msi-to-wix-part-3.aspx#3207448</link><pubDate>Fri, 27 Feb 2009 19:40:32 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3207448</guid><dc:creator>Alex Shevchuk</dc:creator><description>&lt;p&gt;Hi Ferdin,&lt;/p&gt;
&lt;p&gt;You need a bootstrapper:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://wix.mindcapers.com/wiki/Bootstrapper"&gt;http://wix.mindcapers.com/wiki/Bootstrapper&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Alex&lt;/p&gt;
</description></item><item><title>re: From MSI to WiX, Part 3 - Launch Conditions and Application Search</title><link>http://blogs.technet.com/alexshev/archive/2008/02/10/from-msi-to-wix-part-3.aspx#3214760</link><pubDate>Wed, 18 Mar 2009 21:08:29 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3214760</guid><dc:creator>padma</dc:creator><description>&lt;p&gt;Hi &lt;/p&gt;
&lt;p&gt; Is these any way launch condition shouldn’t evaluate at uninstall?&lt;/p&gt;
&lt;p&gt;Thank you,&lt;/p&gt;
&lt;p&gt;Padma.&lt;/p&gt;</description></item></channel></rss>