Yes I did what's in it but still I keep getting error messages. I'll
elaborate what exactly I did.

I have a directory in "C:\ProgramData\MT\STR" and I want to place a short
cut to this "STR" directory on Desktop using the installation. I placed the
following code in the <Directory> structure.

<!-- Desktop Shortcut -->
      <Directory Id="DesktopFolder" Name="Desktop"/>
      <Directory Id="CommonAppDataFolder" Name="ProgramDataFolder"/>
      <Component Id="ComponentBSStrageShortcut"
Guid="{8436995c-2e76-4030-b92d-c6b4bc243c43}">
        <Shortcut Id="ComponentBSStrageShortcut"
                  Directory="DesktopFolder"
                  Name="BSStrage"
                  Description="Shortcut To BSStrage"
                  Target="[CommonAppDataFolder]\MT\STR"/>
      </Component>

First I want to know if the parameters I've set are correct. Are the two
parameters Directory="DesktopFolder" and
Target="[CommonAppDataFolder]\MT\STR" correct? I believe that the ID of the
above mentioned C:\ProgramData folder is correct?

But now I get two error messages as follows:

Error 1.
ICE43: Component ComponentBSStrageShortcut has non-advertised shortcuts. It
should use a registry key under HKCU as its KeyPath, not a file.        

Error 2.
ICE57: Component 'ComponentBSStrageShortcut' has both per-user and
per-machine data with a per-machine KeyPath.    

What am I doing wrong and how can I make this work? Please help me with the
correct code if possible. I went through a lot of examples/tutorials and
such but couldn't fix it. Help is greatly appreciated.

-- 
View this message in context: 
http://n2.nabble.com/Desktop-Shortcut-to-a-Folder-tp4906239p4929597.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to