<?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 10 - Shortcuts</title><link>http://blogs.technet.com/alexshev/archive/2008/02/20/from-msi-to-wix-part-10-shortcuts.aspx</link><description>The main page for the series is here . Introduction Microsoft Windows Installer supports four installation states for product features: Installed locally Installed to run from source Absent Advertised When feature is advertised, it is not actually installed</description><dc:language>ru-RU</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: From MSI to WiX, Part 10 - Shortcuts</title><link>http://blogs.technet.com/alexshev/archive/2008/02/20/from-msi-to-wix-part-10-shortcuts.aspx#3052699</link><pubDate>Fri, 09 May 2008 03:51:09 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3052699</guid><dc:creator>Tonko</dc:creator><description>&lt;P&gt;Again Alex you did a great job and a favor to Wix installation developers like myself.&lt;/P&gt;
&lt;P&gt;I was looking for a good reference on shortcuts but what I found is mostly incomplete or uses a fake Registry search component (for reasons I did't quite understand.)&lt;/P&gt;
&lt;P&gt;The bit on removing the shortcut from roaming profile is very much appreciated.&lt;/P&gt;</description></item><item><title>re: From MSI to WiX, Part 10 - Shortcuts</title><link>http://blogs.technet.com/alexshev/archive/2008/02/20/from-msi-to-wix-part-10-shortcuts.aspx#3069033</link><pubDate>Tue, 10 Jun 2008 17:54:34 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3069033</guid><dc:creator>Rick R</dc:creator><description>&lt;P&gt;Good article, but I have a question/comment about localization.&lt;/P&gt;
&lt;P&gt;When localizing the name of the shortcut, you change the name of a file (the .lnk file) in a component. According to MSI rules, you must therefore change the name of all other files/registry entries in the same component, including the .exe file.&lt;/P&gt;
&lt;P&gt;If this rule isn't followed, you can get orphaned shortcuts if you install your product with Language A, overwrite it with Language B, and then uninstall.&lt;/P&gt;
&lt;P&gt;Since advertised shortcuts must be in the same component as the file they advertise, I haven't ever been able to use advertised shortcuts. &lt;/P&gt;
&lt;P&gt;Am I missing something, or are advertised shortcuts not practical in Windows XP if my product requires the language overwriting desribed above?&lt;/P&gt;</description></item><item><title>re: From MSI to WiX, Part 10 - Shortcuts</title><link>http://blogs.technet.com/alexshev/archive/2008/02/20/from-msi-to-wix-part-10-shortcuts.aspx#3085049</link><pubDate>Mon, 07 Jul 2008 22:04:47 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3085049</guid><dc:creator>Sachin</dc:creator><description>&lt;p&gt;Very informative and good article. In my product I had to create shortcut icons from external icon file and I discovered that the icon id name should end with .exe to work on Vista&lt;/p&gt;
&lt;p&gt;&amp;lt;Icon Id=&amp;quot;myIcon.exe&amp;quot; &amp;nbsp;SourceFile=&amp;quot;..\myIcon.ico&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt;If I change this to Id=&amp;quot;myIcon.ico&amp;quot;, the shortcut icons are not displayed on Vista, but they work on Server 2003 /XP&lt;/p&gt;</description></item><item><title>re: From MSI to WiX, Part 10 - Shortcuts</title><link>http://blogs.technet.com/alexshev/archive/2008/02/20/from-msi-to-wix-part-10-shortcuts.aspx#3085175</link><pubDate>Tue, 08 Jul 2008 02:27:54 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3085175</guid><dc:creator>Alex Shevchuk</dc:creator><description>&lt;p&gt;Hi Sachin,&lt;/p&gt;
&lt;p&gt;Description of Icon table (&lt;a rel="nofollow" target="_new" href="http://msdn.microsoft.com/en-us/library/aa369210"&gt;http://msdn.microsoft.com/en-us/library/aa369210&lt;/a&gt;(VS.85).aspx) on MSDN has the following:&lt;/p&gt;
&lt;p&gt;&amp;quot;...&lt;/p&gt;
&lt;p&gt;Icon files that are associated strictly with file extensions or CLSIDs can have any extension, such as .ico. However, Icon files that are associated with shortcuts must be in the EXE binary format and must be named such that their extension matches the extension of the target. The shortcut will not work if this rule is not followed. For example, if a shortcut is to point to a resource having the key file Red.bar, then the icon file must also have the extension .bar.&lt;/p&gt;
&lt;p&gt;...&amp;quot;&lt;/p&gt;
&lt;p&gt;So, if you are installing an executable, your icon file must have .exe extension.&lt;/p&gt;
</description></item><item><title>re: From MSI to WiX, Part 10 - Shortcuts</title><link>http://blogs.technet.com/alexshev/archive/2008/02/20/from-msi-to-wix-part-10-shortcuts.aspx#3095754</link><pubDate>Wed, 30 Jul 2008 16:19:53 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3095754</guid><dc:creator>Ajay</dc:creator><description>&lt;p&gt;How can i pass a property value to the name of the shortcut? &lt;/p&gt;</description></item><item><title>re: From MSI to WiX, Part 10 - Shortcuts</title><link>http://blogs.technet.com/alexshev/archive/2008/02/20/from-msi-to-wix-part-10-shortcuts.aspx#3110010</link><pubDate>Fri, 22 Aug 2008 04:23:54 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3110010</guid><dc:creator>Alex Shevchuk</dc:creator><description>&lt;p&gt;Ajay,&lt;/p&gt;
&lt;p&gt;Sorry for the delay.&lt;/p&gt;
&lt;p&gt;You can't pass property's value to the Name/LongName attribute of the Shortcut element. &amp;nbsp;The reason for this is that the type of the Name field in the Shortcut table (&lt;a rel="nofollow" target="_new" href="http://msdn.microsoft.com/en-us/library/aa371847"&gt;http://msdn.microsoft.com/en-us/library/aa371847&lt;/a&gt;(VS.85).aspx) is Filename. &amp;nbsp;The only datatype which accepts values of other properties/environment variables is Formatted.&lt;/p&gt;
&lt;p&gt;Alex&lt;/p&gt;
</description></item><item><title>re: From MSI to WiX, Part 10 - Shortcuts</title><link>http://blogs.technet.com/alexshev/archive/2008/02/20/from-msi-to-wix-part-10-shortcuts.aspx#3145029</link><pubDate>Fri, 31 Oct 2008 06:15:51 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3145029</guid><dc:creator>Tony</dc:creator><description>&lt;p&gt;Hi guys,&lt;/p&gt;
&lt;p&gt;For localisation and changes to shortcuts name on upgrade, you can remove orphan shortcut using the following and also if you use variables for your shortcut (e.g Product 5.0, Prodcut 6.0 and so on... where in each product version or upgrade, your version changes.) as pointed in my post &lt;a rel="nofollow" target="_new" href="http://n2.nabble.com/Variable-Shorcut-Name-and-Upgrading...-td1392525.html#a1401696"&gt;http://n2.nabble.com/Variable-Shorcut-Name-and-Upgrading...-td1392525.html#a1401696&lt;/a&gt; :-&lt;/p&gt;
&lt;p&gt;It is to remove the files explicitly on install and uninstall~!!! &lt;/p&gt;
&lt;p&gt;&amp;lt;RemoveFile Id=&amp;quot;RemoveDesktopShortcut&amp;quot; On=&amp;quot;both&amp;quot; Name=&amp;quot;shortc_1&amp;quot; LongName=&amp;quot;Product*&amp;quot; Directory=&amp;quot;DesktopFolder&amp;quot;/&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;RemoveFile Id=&amp;quot;RemoveProgramShortcut&amp;quot; On=&amp;quot;both&amp;quot; Name=&amp;quot;shortc_1&amp;quot; LongName=&amp;quot;Product*&amp;quot; Directory=&amp;quot;ProgramMenu&amp;quot;/&amp;gt;&lt;/p&gt;
&lt;p&gt;In addition, I specify the wildcard * so that the product will be removed~!!!&lt;/p&gt;
&lt;p&gt;With reference to RemoveFiles Action, you will also need to schedule the following due to Sequence Restrictions:-&lt;/p&gt;
&lt;p&gt;The InstallValidate action must be called before calling RemoveFiles. If an InstallFiles action is used, it must appear after RemoveFiles.&lt;/p&gt;
&lt;p&gt;Thanks Michael...for you are the only one to reply...haha....&lt;/p&gt;
&lt;p&gt;Good luck guys who have similar problems =)&lt;/p&gt;
&lt;p&gt;-Tony &lt;/p&gt;</description></item><item><title>re: From MSI to WiX, Part 10 - Shortcuts</title><link>http://blogs.technet.com/alexshev/archive/2008/02/20/from-msi-to-wix-part-10-shortcuts.aspx#3145410</link><pubDate>Fri, 31 Oct 2008 22:09:55 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3145410</guid><dc:creator>Arun</dc:creator><description>&lt;p&gt;I am installing a product in per machine mode. my requirement is to provide &amp;nbsp;shortcuts to my applications in Program Menu folder, along with a Uninstall product shortcut for all users.&lt;/p&gt;
&lt;p&gt;1 .I having trouble placing the Uninstall shortcut, [which is a target to msisexec with product code argument]. Since its non-advertised target, it wouldn't let me have it a file, but needs a HKCU registry entry as keypath :ICE43.&lt;/p&gt;
&lt;p&gt;2. It is my understanding that only Advertised shortcuts are removed during an uninstall. &lt;/p&gt;
&lt;p&gt;Even though i remove my shortcuts folder, only the Uninstall link stays back in the folder. This happens only when more than one version of the product is installed.&lt;/p&gt;
&lt;p&gt;The article was very informative, thought you could shed some light on my issues.&lt;/p&gt;
&lt;p&gt;thanks for the help.&lt;/p&gt;</description></item><item><title>re: From MSI to WiX, Part 10 - Shortcuts</title><link>http://blogs.technet.com/alexshev/archive/2008/02/20/from-msi-to-wix-part-10-shortcuts.aspx#3146066</link><pubDate>Sun, 02 Nov 2008 22:29:34 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3146066</guid><dc:creator>Alex Shevchuk</dc:creator><description>&lt;p&gt;Arun,&lt;/p&gt;
&lt;p&gt;For uninstall shortcut and ICE43 issue read Rob's blog: &lt;a rel="nofollow" target="_new" href="http://robmensching.com/blog/archive/2007/04/27/How-to-create-an-uninstall-shortcut-and-pass-all-the.aspx"&gt;http://robmensching.com/blog/archive/2007/04/27/How-to-create-an-uninstall-shortcut-and-pass-all-the.aspx&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: From MSI to WiX, Part 10 - Shortcuts</title><link>http://blogs.technet.com/alexshev/archive/2008/02/20/from-msi-to-wix-part-10-shortcuts.aspx#3182324</link><pubDate>Wed, 14 Jan 2009 15:42:10 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3182324</guid><dc:creator>Fatih</dc:creator><description>&lt;p&gt;Hi Alex again,&lt;/p&gt;
&lt;p&gt;I am trying to do conditional programmenu and desktop shortcuts. I put checkboxes on verifyready dialog. And trying to make my msi create them if they are choosed. I searched for it but couldn't get a useful document. What should I do? Do you have an example for this?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;</description></item><item><title>re: From MSI to WiX, Part 10 - Shortcuts</title><link>http://blogs.technet.com/alexshev/archive/2008/02/20/from-msi-to-wix-part-10-shortcuts.aspx#3242836</link><pubDate>Mon, 18 May 2009 15:57:01 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3242836</guid><dc:creator>sam</dc:creator><description>&lt;p&gt;how i can make feature to run-from-source.. meaning.. i am having cd drive where i have msi when i install all the feature except one feaure should run-from-source ,after successful installation the application should run only when the source msi cd is inserted into machine because the feature is run-from-source....and without feature applicaion can run...how can i do this &lt;/p&gt;</description></item><item><title>re: From MSI to WiX, Part 10 - Shortcuts</title><link>http://blogs.technet.com/alexshev/archive/2008/02/20/from-msi-to-wix-part-10-shortcuts.aspx#3242881</link><pubDate>Mon, 18 May 2009 18:52:16 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3242881</guid><dc:creator>Alex Shevchuk</dc:creator><description>&lt;p&gt;Hi Sam,&lt;/p&gt;
&lt;p&gt;You need to set Feature/@InstallDefault to &amp;quot;source&amp;quot;. In addition you may want to set Feature/@Display to &amp;quot;hidden&amp;quot;, so user won't be able to change installation state to &amp;quot;local&amp;quot;. &amp;nbsp;Also, you may want to set Component/@Location to &amp;quot;source&amp;quot;.&lt;/p&gt;
&lt;p&gt;Alex&lt;/p&gt;
</description></item><item><title>msiexec.exe -Embedding &lt;GUID&gt; - this is the custom action server (indicated by the -Embedding switch)</title><link>http://blogs.technet.com/alexshev/archive/2008/02/20/from-msi-to-wix-part-10-shortcuts.aspx#3275181</link><pubDate>Thu, 20 Aug 2009 09:49:06 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3275181</guid><dc:creator>SamDesilva</dc:creator><description>&lt;p&gt;i would like like to know&lt;/p&gt;
&lt;p&gt;what guid stand &amp;nbsp;in &lt;/p&gt;
&lt;p&gt;msiexec.exe -Embedding &amp;lt;GUID&amp;gt; - this is the custom action server (indicated by the -Embedding switch)&lt;/p&gt;
&lt;p&gt;since it is not the product guid and not component guid and it is changing every time when i install could you please help me in this regard&lt;/p&gt;</description></item></channel></rss>