Dear Alex,
I have tested this problem with the following steps and got the same
result
as you.
On Vista machine:
1. In Visual Studio, create a new Windows Forms project.
2. Create a setup project to the same solution.
3. In setup project, switch to "File System" view.
4. Add project output to the setup project.
5. Add an icon file to the setup project.
6. Right click the Primary output and add a shortcut for it.
7. Drag the shortcut to "User's desktop" folder.
8. Select the shortcut, and switch to Properties Window.
9. On the "Icon" item, select the icon file added in step#5 for it.
10. Build the solution.
11. In the debug folder of the Setup project, double click the setup.exe
file to install.
12. Switch to desktop, there should be a shortcut newly created for the
this test project.
13. Press Ctrl key and wheel the mouse to make the icons on desktop
larger.
The icon for the shortcut does not display images larger than 64x64,
however, the icon does contains a 256x256 PNG image in it.
Let's find what happened to the shortcut icon.
Right click on the desktop shortcut icon and select "Properties", in the
Properties window, we can see the "Target" property and "Change Icon.."
button are disabled.
In order to see the icon path of the shortcut, we can install the
application with DISABLEADVTSHORTCUTS argument set to 1, this can be done
with these steps:
1. Open a command window;
2. Use CD command to switch to the setup package directory.
3. Type the following command:
setup.exe DISABLEADVTSHORTCUTS=1
4. Start installing.
After this kind of installation, we should able to see the Target and icon
path of the desktop shortcut icon, the shortcut icon file path is
something
like this:
%AppData%\Microsoft\Installer\{8AC8669A-7C22-4C2B-AE3B-5938A3616D00}>_6F6B44
AD047F2F4C4FB7CC.exe
which the exact path would be something like this:
C:\Users\(Your user
name)\AppData\Roaming\Microsoft\Installer\{8AC8669A-7C22-4C2B-AE3B-5938A3616
D00}>_6F6B44AD047F2F4C4FB7CC.exe
So, yes, your assumption is right, the Installer stores its own copy of
icon at this kind of path.
To change this default behavior, we can use the Orca tool to edit the Icon
table.
Steps for your information:
1. Download the Windows Installer SDK samples, tools, and documentation
from the following Web page:
http://www.microsoft.com/downloads/details.aspx?FamilyId=A55B6B43-E24F-4EA3-
A93E-40C0EC4F68E5&displaylang=en
2. Install the Orca editor by double-clicking the Orca.msi file in the
C:\Program Files\Microsoft Platform SDK\Bin folder.
3. Click Start, point to Programs, and then click Orca.
4. Click File->Open menu to open the .msi file you want to edit.
5. Select "Icon" from the Tables on the left panel.
6. On the right panel, double click the cell on the "Data" column.
7. Choose an icon(compatible with Vista) and click OK.
8. Save and close the Orca.
After these steps, uninstall the current application and install the
application again, you should find that the desktop shortcut icon can
display size larger than 64x64 now.
Below are related documents for your information:
[DISABLEADVTSHORTCUTS Property]
http://msdn.microsoft.com/en-us/library/aa368297(VS.85).aspx
[How to use the Orca database editor to edit Windows Installer files]
http://support.microsoft.com/kb/255905
[Specifying Shortcuts]
http://msdn.microsoft.com/en-us/library/aa372018(VS.85).aspx
[Icon Table]
http://msdn.microsoft.com/en-us/library/aa369210(VS.85).aspx
If I can be of further help, please don't hesitate to let me know.
Sincerely,
Zhi-Xin Ye
Microsoft Managed Newsgroup Support Team
=======================================
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).
This posting is provided "AS IS" with no warranties, and confers no
rights.