I'm using the following Wix code to create a Desktop Shortcut to the
ProgramData folder in Microsoft Vista.

<!-- Desktop Shortcut -->
      <Directory Id="DesktopFolder" Name="Desktop"/>
      <Directory Id="CommonAppDataFolder" Name="ProgramDataFolder"/>
      <Component Id="MTDesktopShortcut"
Guid="{8436995c-2e76-4030-b92d-c6b4bc243c43}">
        <Shortcut Id="MTShortcut"
                  Directory="DesktopFolder"
                  WorkingDirectory="APPLICATIONFOLDER"
                  Target="[CommonAppDataFolder]"
                  Name="MT"
                  Show="normal"/>
        <RegistryValue Action="write"
                       Key="SOFTWARE/MT/BS"
                       Root="HKCU"
                       Type="string"
                       KeyPath="yes"
                       Value="ApplicationFolderName"/>
      </Component>

It works fine and creates the shortcut fine. However there is one problem
since it creates the shortcut on AllUsers Desktop while I want it to be
created on the Current User's desktop. What change should I do?
-- 
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Desktop-Shortcut-on-Current-User-Only-tp5044866p5044866.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------

_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to