Hi,
The behavior you observed is the "resiliency" feature of Windows Installer.
The shortcuts generated by Setup Project are all "advertised shortcuts"
which can trigger resiliency.
INFO: Description of Resiliency in Windows Installer
http://support.microsoft.com/?id=290997
We have no direct way to disable this feature in the Setup Project. You
have two options here:
1. Do not generate the shortcut in the Setup Project. Instead, wrtie a
custom action and use IShellLink to create a shortcut on your own. The
following article will be useful to you:
Using the IShellLink interface to create file shortcuts.
http://www.mvps.org/emorcillo/dotnet...shortcut.shtml
You need to pass the installation target folder and the programs menu
folder into the custom action:
Walkthrough: Passing Data to a Custom Action
http://msdn.microsoft.com/library/de...us/vsintro7/ht
ml/vxwlkWalkthroughPassingDataToCustomAction.asp?fram e=true
2. You can build your current Setup Project with the shortcut and then use
Windows Installer Platform SDK tool to modify the resultant MSI directly:
How To Use the Orca Database Editor to Edit Windows Installer Files
http://support.microsoft.com/?id=255905
You need to modify the "Shortcut" table. Replace the "Target" column with
the formatted identifier for the EXE file (e.g. " [#filekey]" where
"filekey" is the "File" column of the EXE file in the "File" table). You
may need some basic Windows Installer knowledge here:
Shortcut Table
http://msdn.microsoft.com/library/de...us/msi/setup/s
hortcut_table.asp
I hope this helps.
Regards,
Felix Wang
Microsoft Online Partner Support
Get Secure! -
www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.