I am trying to create a short cut with the structure as follows:
   
  Start-> Programs->Main program
  Under "Main Program" have three sub-categries
  Program 1
  Program 2
  Program3
  Again Program 1 has 6 entries where I actually point to the fileID's.
   
  I tried to create a dummy component without any files and create a short cut 
for "Main program", however Wix is not creating that shortcut.
  It creates shortcut only when file exists.
   
  I tried with the sample wixshortcut program "Shortcut.wxs"
   
   
  My questions are as follows:
   
  1) In the following why is this shortcut is not executing:
   
  <Component Id='WixShortcutProductComponent' 
Guid='E28307CA-3E4E-4871-887B-311BD297A12F' DiskId='1'>
  
  <Shortcut Id='WixShortcut1' Directory='ProgramMenuFolder' Name='WixSC1' 
LongName='WIXSC' Description='Shortcut to simple.txt' Advertise='yes'/>
  </Component>
   
  2) How should I create a shortcut like this
  Start->Program files->WIXSC->Test Shortcut
   
  Any help is appreciated:
   
  Srini
   
   
  The shortcut.wxs looks like this:
   
   
  <?xml version='1.0'?>
  <!--
  Copyright (c) Microsoft Corporation. All rights reserved.
  The use and distribution terms for this software are covered by the
  Common Public License 1.0 (http://opensource.org/licenses/cpl.php)
  which can be found in the file CPL.TXT at the root of this distribution.
  By using this software in any fashion, you are agreeing to be bound by
  the terms of this license.
  You must not remove this notice, or any other, from this software.
  shortcut.wxs - small example that installs a single file, with a shortcut in 
the start menu for it.
  -->
  <Wix xmlns='http://schemas.microsoft.com/wix/2003/01/wi'>
  <Product Id='????????-????-????-????-????????????' Name='WixShortcutProduct' 
Language='1033' Version='0.0.0.0' Manufacturer='Microsoft Corporation'>
  <Package Id='????????-????-????-????-????????????' Description='Installs a 
test shortcut.' Comments='Tests installation of a shortcut.' 
InstallerVersion='200' Compressed='yes' />
  <Media Id='1' Cabinet='product.cab' EmbedCab='yes' />
  <Directory Id='TARGETDIR' Name='SourceDir'>
  <Directory Id='ProgramFilesFolder' Name='PFiles'>
  <Directory Id='WixShortcutProductDirectory' Name='WixShor' LongName='Test 
Directory'>
   
   
  <Component Id='WixShortcutProductComponent' 
Guid='E28307CA-3E4E-4871-887B-311BD297A12F' DiskId='1'>
  
  <Shortcut Id='WixShortcut1' Directory='ProgramMenuFolder' Name='WixSC1' 
LongName='WIXSC' Description='Shortcut to simple.txt' Advertise='yes'/>
  </Component>
   
   
  <Component Id='WixProductComponent' 
Guid='0931A69A-4AAC-40E0-B057-0C3134244D60' DiskId='1'>
  <File Id='WixShortcutProductFile' Name='simple.txt' src='bin\simple.txt'>
  <Shortcut Id='WixShortcut' Directory='ProgramMenuFolder' Name='WixSC2' 
LongName='Test Shortcut' Description='Shortcut to simple.txt' Advertise='yes'/>
  </File>
  </Component>
   
   
  </Directory>
  </Directory>
  <Directory Id='ProgramMenuFolder' Name='ProgMenu'/>
  </Directory>
  <Feature Id='WixShortcutProductFeature' Title='Wix Example Shortcut' 
Level='1'>
  <ComponentRef Id='WixShortcutProductComponent' />
  <ComponentRef Id='WixProductComponent' />
  </Feature>
  </Product>
  </Wix>
   
   
   
   

       
---------------------------------
Be a better Heartthrob. Get better relationship answers from someone who knows.
Yahoo! Answers - Check it out. 
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to