Let's begin with the facts:
 I'm a relative wix n00b and I'm running Wix 3.0.2015.0 (under Vista RC1 x64 if that matters)
 
Due to the lack of samples I'm having trouble with creating a shortcut in my wxs file.
 
My first attempt:

<

Directory Id=" TARGETDIR" Name=" SourceDir">

<

Directory Id=" ProgramFilesFolder" Name=" PFiles">

<

Directory Id=" INSTALLDIR" Name=" ComicBook">

<

Directory Id=" ComicBookPluginsFolder" Name=" plugins">

</

Directory>

<

Component Id=" ComicBookExecutable" Guid=" ab49562c-5784-474b-8314-45d6086bc238" DiskId=" 1">

<

File Id=" ComicBook.exe" Name=" ComicBook.exe" Source=" ..\bin\Release\ComicBook.exe">

<

Shortcut Id=" ShortcutComicBook" Name=" ComicBook" Directory=" ProgramMenuFolder"

  WorkingDirectory="INSTALLDIR " />

</

File>

</

Component>

</

Directory>

</

Directory>

</

Directory>

 

However, that blows up with

    C:\Users\Simon\Documents\Visual Studio 2005\Projects\ComicBook\ComicBook\installer\installer.wxs(37): error LGHT0094: Unresolved reference to symbol 'Directory:ProgramMenuFolder' in section 'Product:{D025DC70-6ADD-4AAE-8F58-A3455DD27DEE}'.
    C:\Users\Simon\Documents\Visual Studio 2005\Projects\ComicBook\ComicBook\installer\installer.wxs(51): error LGHT0094: Unresolved reference to symbol 'Component:ComicBookShortcutComponent' in section 'Product:{D025DC70-6ADD-4AAE-8F58-A3455DD27DEE}'.

 

Then I found a sample doing something along the lines of

<

Directory Id=" ProgramMenuFolder" Name=" ProgMenu">

<

Directory Id=" ComicBookShortcutFolder" Name=" !(wix.ProductName)">

<

Component Id=" ComicBookShortcutComponent" Guid=" 74519baa-2501-4a50-be7f-e3c813d949f4"

KeyPath="yes" >

<

CreateFolder />

<

Shortcut Id=" ComicBookShortcut" Directory=" ComicBookShortcutFolder"

Target="[!ComicBook.exe]" Name="!(wix.ProductName)" />

</

Component>

</

Directory>

</

Directory>

Again, this blows up as follows:

    C:\Users\Simon\Documents\Visual Studio 2005\Projects\ComicBook\ComicBook\installer\installer.wxs(22): error LGHT0204: ICE38: Component ComicBookShortcutComponent installs to user profile. It must use a registry key under HKCU as its KeyPath, not a file.
    C:\Users\Simon\Documents\Visual Studio 2005\Projects\ComicBook\ComicBook\installer\installer.wxs(22): error LGHT0204: ICE43: Component ComicBookShortcutComponent has non-advertised shortcuts. It should use a registry key under HKCU as its KeyPath, not a file.
    C:\Users\Simon\Documents\Visual Studio 2005\Projects\ComicBook\ComicBook\installer\installer.wxs(21): error LGHT0204: ICE64: The directory ComicBookShortcutFolder is in the user profile but is not listed in the RemoveFile table.

So it seems that I am missing something, but I don't know where to look.

A related note, the CHM file bundled with the binaries does not work on Vista, clicking it first gets me a security warning and if I OK that I get the chm file open with the contents and index tabs working but the content area shows a constant "The address is not valid"

Pointers/hints appreciated!

regards,

Simon

PS. sorry if the formatting is bad..

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to