Re: [WiX-users] How to create help file shortcut icon?

2008-01-08 Thread Chris Weiss
The point appears to be moot - For whatever reason, WiX is picking up
the proper help icons correctly without needing any whacked shortcut
associations. Not sure why InstallShield fails at this.

On Jan 8, 2008 2:13 PM, Mike Dimmick [EMAIL PROTECTED] wrote:
 No you _can't_. That will embed hh.exe, which isn't yours to redistribute,
 in your MSI. You could open hh.exe in a resource editor (e.g. in Visual
 Studio, go to File  Open  File, select the file, then click the down-arrow
 next to Open and select Open With..., then pick Resource Editor from the
 list) then copy the icon to a file (e.g. right-click it and choose Export.)
 You can then embed it in your own resource-only DLL.

 That's still dodgy from a copyright perspective but I don't think there's
 any way to just get Windows Installer to use the icon for the associated
 file type (which is ridiculous). Microsoft's position on cloning icons for
 standard metaphors, so that icons are used consistently across the whole
 system, has generally been permissive, however.

 --
 Mike Dimmick

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of SaiTeja
 Sent: 08 January 2008 04:40
 To: wix-users@lists.sourceforge.net
 Subject: Re: [WiX-users] How to create help file shortcut icon?


 You can use hh.exe
 C:\windows\hh.exe as source.



 -
 Check out the new SourceForge.net Marketplace.
 It's the best place to buy or sell services for
 just about anything Open Source.
 http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users




-- 
-Chris

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] How to create help file shortcut icon?

2008-01-08 Thread Mike Dimmick
No you _can't_. That will embed hh.exe, which isn't yours to redistribute,
in your MSI. You could open hh.exe in a resource editor (e.g. in Visual
Studio, go to File  Open  File, select the file, then click the down-arrow
next to Open and select Open With..., then pick Resource Editor from the
list) then copy the icon to a file (e.g. right-click it and choose Export.)
You can then embed it in your own resource-only DLL.

That's still dodgy from a copyright perspective but I don't think there's
any way to just get Windows Installer to use the icon for the associated
file type (which is ridiculous). Microsoft's position on cloning icons for
standard metaphors, so that icons are used consistently across the whole
system, has generally been permissive, however.

-- 
Mike Dimmick

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of SaiTeja
Sent: 08 January 2008 04:40
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] How to create help file shortcut icon?


You can use hh.exe
C:\windows\hh.exe as source.


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] How to create help file shortcut icon?

2008-01-07 Thread SaiTeja

You can use hh.exe
C:\windows\hh.exe as source.



DEÁK JAHN, Gábor-2 wrote:
 
 On Thu, 3 Jan 2008 08:57:04 -0800, Chris Weiss wrote:
 
 Chris,
 
 the problem of creating a help icon for my .CHM shortcut. Should I
 be creating a single DLL that only contains the help icon (and if I
 copy the one from WinHlp32.exe, am I violating some sort of
 Microsoft copyright)?
 
 Yes, create a small DLL with only the icon. I don't know about the
 copyright issues but there are lots of free icons to be downloaded from
 the net, they usually come with the standard icon set redesigned and they
 will have a question mark icon for sure. Their copyright status might be
 easier to check.
 
 Bye,
Gábor
 
 ---
 DEÁK JAHN, Gábor -- Budapest, Hungary
 E-mail: [EMAIL PROTECTED]
 
 
 -
 This SF.net email is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio 2005.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users
 
 

-- 
View this message in context: 
http://www.nabble.com/How-to-create-help-file-shortcut-icon--tp14589145p14682390.html
Sent from the wix-users mailing list archive at Nabble.com.


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] How to create help file shortcut icon?

2008-01-03 Thread Chris Weiss
On Jan 2, 2008 4:22 PM, Mike Dimmick [EMAIL PROTECTED] wrote:
 What you specify in the Icon elements gets incorporated in your .msi as a
 binary at build time, so it should be something you have control over, not
 attempting to use a system executable.

 The warning message is described in the documentation for the Icon table,
 where it states:

 Icon files that are associated with shortcuts must be in the EXE binary
 format and must be named such that their extension matches the extension of
 the target. The shortcut will not work if this rule is not followed. For
 example, if a shortcut is to point to a resource having the key file
 Red.bar, then the icon file must also have the extension .bar. Multiple
 icons can be stuffed into the same icon file as long as all of the target
 files have the same extension.

 The Id attribute is used for the icon file's name when it is extracted onto
 the system. So you should use something like:

 Icon Id=helpicon.chm SourceFile=myhelpicon.dll /

Thanks for the reply, but I'm even more confused now...

Doesn't the above code violate the above paragraph? Having the icon
for a *.chm pointing to a *.dll? I'm still not sure how to solve the
problem of creating a help icon for my .CHM shortcut. Should I be
creating a single DLL that only contains the help icon (and if I copy
the one from WinHlp32.exe, am I violating some sort of Microsoft
copyright)? Is there some way to have the icon point to a file that's
already installed?

Surely others have solved this, what was your solution?

-- 
-Chris

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] How to create help file shortcut icon?

2008-01-02 Thread Mike Dimmick
What you specify in the Icon elements gets incorporated in your .msi as a
binary at build time, so it should be something you have control over, not
attempting to use a system executable.

The warning message is described in the documentation for the Icon table,
where it states:

Icon files that are associated with shortcuts must be in the EXE binary
format and must be named such that their extension matches the extension of
the target. The shortcut will not work if this rule is not followed. For
example, if a shortcut is to point to a resource having the key file
Red.bar, then the icon file must also have the extension .bar. Multiple
icons can be stuffed into the same icon file as long as all of the target
files have the same extension.

The Id attribute is used for the icon file's name when it is extracted onto
the system. So you should use something like:

Icon Id=helpicon.chm SourceFile=myhelpicon.dll /

When they say the EXE binary format they actually mean a Portable Executable
file - a resource-only DLL is acceptable. It does not actually have to be
executable.

-- 
Mike Dimmick

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Chris Weiss
Sent: 03 January 2008 00:06
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] How to create help file shortcut icon?

When we created help file shortcuts in the start menu using
InstallShield, we had to manually set the icon to
System32\WinHlp32.exe. If I try to do this with WiX, it complains that
the extension of icon 'xyz' for shortcut 'abc' does not match the
extension of the Key File for component 'foo.chm'.

How does one go about getting a nice help icon in the start menu?

My code looks more or less like this:

Component Id=APPHELP.chm
Guid={91CD65F1-FAA3-42FD-9E1A-DDED9FA65CAC}
  File Id=APPHELP.chm Name=APPHELP.chm KeyPath=yes
Source=..\APPHELP.chm /
  RemoveFolder Id=NewShortcut1 Directory=newfolder1
On=uninstall /
  Shortcut Id=NewShortcut1 Directory=newfolder1
Name=Application Help ShortName=APPHELP Icon=helpicon
IconIndex=1 Show=normal Advertise=yes /
/Component
...
Icon Id=helpicon SourceFile=$(env.windir)\system32\winhlp32.exe /




-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users