Groups | Blog | Home
all groups > visual studio .net setup > may 2005 >

visual studio .net setup : Bug creating desktop link with Visual Studio.Net installer


Andrea
5/30/2005 11:58:43 AM
Hello,

I've made a Windows.Forms application and now I want to create a setup
project.

I add a lnk to the setup project, so the link is created on desktop.

At this point there is a very strange behaviour: the desktop link seems
to point to the Installer, not to the .exe of my project!
Infact: the first time my application is executed, I delete a file
("firsttime.txt"). When I run the application the second time,
double-clicking on the desktop link, the application's installer is
started in background, it copies the old file (firsttime.txt) in the
application folder, then start my application.

I want to avoid this behaviour, how can I fix it?

Phil Wilson
5/31/2005 9:06:29 AM
This is normal behavior - you removed a file that you installed, it notices
and repairs it. If you don't want any repair, installing with a command
line:

msiexec /i <your msi> DISABLEADVTSHORTCUTS=1

or use Orca from the Windows Installer section of the Platform SDK to add an
entry to the Property table, Property DISABLEADVTSHORTCUTS with a Value of
1. Google on DISABLEADVTSHORTCUTS for more detail.

--
Phil Wilson
[Microsoft MVP-Windows Installer]
Definitive Guide to Windows Installer
http://apress.com/book/bookDisplay.html?bID=280

[quoted text, click to view]

AddThis Social Bookmark Button