MSI (Icon) problem....

  • Thread starter Thread starter Lloyd Dupont
  • Start date Start date
L

Lloyd Dupont

I have created a Setup projet and start populating it.
Because my project use heaps of DLLs and it's user config, I create a /bin
subdirectory where I put all the 'junk' binaries and just create a few
shortcuts in the app folder (and appropriate start menu folders as well).

Now I Just create a .chm help file (which should be in the /bin folder as
well to be found by the Help class).
Anyway when I want to create shortcut to it in the app directory (and in the
start menu folder) I get this 'ugly' (certainly inappropriate) default icon.

I would like to use the default CHM icons, and I don't have it, nor I'm very
keen on finding it and install it, I hope there is a way to setup a 'default
icon' for my link.
But all I found was to use Icon allready in my setup project or its
executables.

Anyway to use a default icon?
Like creating a link to an HTML file using the IE icon?



Also I would like to setup a menu in the Quick Launch, I can't find how to
do that...
 
In the future questions about the Windows Installer project for Visual Studio
..NET should be asked in one of the VS forums at
http://msdn.microsoft.com/newsgroups/default.aspx?dg=microsoft.public.dotnet.datatools&lang=en&cr=US.

The Shortcut table in an MSI package does require that you specify an icon
or have no icon at all (which defaults to the default Windows icon; VS uses a
different default icon automatically if none is specified). This means,
unfortunately, that you have to either import an icon or an executable
containing an icon into your project. In this circumstance, I recommend using
VS to extract the icon for a CHM file. Click on File->Open, and browse to
%windir%\ then open hh.exe. Expand "Icon", right click on "101", then click
Extract. Import the icon into your project (perhaps in your App directory),
the select your shortcut. Select (Browse...) in the Icon property for the
shortcut and find your icon.

You could import an entire executable, but that would be a waste of space
and you cannot not redistribute some components by themselves, including
hh.exe. Typically this would be for when you write an application that
handles a custom document type and you want to pick an icon for it that's
defined in the application executable.

--
This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Sustained Engineering
Microsoft
 
thanks Heath!

--
Heath Stewart said:
In the future questions about the Windows Installer project for Visual
Studio
.NET should be asked in one of the VS forums at
http://msdn.microsoft.com/newsgroups/default.aspx?dg=microsoft.public.dotnet.datatools&lang=en&cr=US.

The Shortcut table in an MSI package does require that you specify an icon
or have no icon at all (which defaults to the default Windows icon; VS
uses a
different default icon automatically if none is specified). This means,
unfortunately, that you have to either import an icon or an executable
containing an icon into your project. In this circumstance, I recommend
using
VS to extract the icon for a CHM file. Click on File->Open, and browse to
%windir%\ then open hh.exe. Expand "Icon", right click on "101", then
click
Extract. Import the icon into your project (perhaps in your App
directory),
the select your shortcut. Select (Browse...) in the Icon property for the
shortcut and find your icon.

You could import an entire executable, but that would be a waste of space
and you cannot not redistribute some components by themselves, including
hh.exe. Typically this would be for when you write an application that
handles a custom document type and you want to pick an icon for it that's
defined in the application executable.

--
This posting is provided "AS IS" with no warranties, and confers no
rights.

Software Design Engineer
Developer Division Sustained Engineering
Microsoft
 
There's a different icon I've seen that looks like a blue shaded sphere with
a question mark on it. It looks a bit more XP'ish than the one I'm seeing on
my system which looks like a document with a yellow question mark on top (Win
2003 Server). Where might that be located?

Regards,

- Mike
 
if you look on your help file's shortcut you will see the application it
uses to open the help file ;-)
=> "C:\Program Files\Common Files\Microsoft Shared\Help 8\dexplore.exe"
 
Back
Top