Thanks!
I'm not really sure that I'm clear of the implications of advertised or not, but setting @Advertise to yes makes it compile without error, and I get the shortcut when installing.. so for now I'm happy :)
/Simon
On 9/19/06, Mike Dimmick <[EMAIL PROTECTED]> wrote:
See the validation references:"The attributes column of Component1 is 0, meaning that the component uses a file as its KeyPath. This causes non-advertised shortcuts in this component to be installed for the first user on the computer ONLY. Users who install the component later do not see the shortcuts because the component appear to the installer as already existing on the computer.To fix this error, set the RegistryKeyPath bit of the attributes to switch the Component to a Registry entry, then change the KeyPath value to a valid entry in the Registry table."
ICE 57, see http://msdn.microsoft.com/library/default.asp?url="">.
Still, that's not very helpful. It's odd that the shortcuts seem to be non-advertised by default: most other tools create advertised shortcuts, which invoke repair (potentially) when invoked. You could set @Advertise to 'yes', which would make these shortcuts advertised.
--
Mike Dimmick
From: [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED]] On Behalf Of Simon Dahlbacka
Sent: 19 September 2006 17:17
To: Eric Epstein
Cc: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Shortcut problem, and a few other notes
Thanks, I tried your suggestion, but unfortunately it did not work out, and I end up with the same error about KeyPath and HKCU registryC:\Users\Simon\Documents\Visual Studio 2005\Projects\ComicBook\ComicBook\installer\installer.wxs(35): error LGHT0204: ICE43: Component ComicBookExecutable 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(35): error LGHT0204: ICE57: Component 'ComicBookExecutable' has both per-user and per-machine data with a per-machine KeyPath.
0 Warning(s)
2 Error(s)
So, I'm still out in the dark about what to do now.../SimonOn 9/19/06, Eric Epstein <[EMAIL PROTECTED] > wrote:Simon,
I am new to using WiX too, but I just got some help from the list, so
I think I will try to give back.
I think your first attempt is really close.
I think that all you need to add is the following line
<Directory Id="ProgramMenuFolder"/>
after your
<Directory Id=" TARGETDIR" Name=" SourceDir">
and before your
<Directory Id=" ProgramFilesFolder" Name=" PFiles">
"ProgramMenuFolder" is a special (reserved/magic) name
(check out
http://msdn.microsoft.com/library/default.asp?url="">
)
but it seems like you still need to define it in your .wxs file in a
<Directory> tag so that your reference to it in your <shortcut> tag
will pick up properly.
If adding the <Directory Id="ProgramMenuFolder"/> doesn't work for
you, then either a) I am a n00b too :-) , b) perhaps it has something
to do with Vista X64, c) something else. :-(
Good Luck!
Eric
On 9/18/06, Simon Dahlbacka <[EMAIL PROTECTED]> wrote:
>
>
> 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
>
>
>
------------------------------------------------------------------------- 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