Compared to that, it's probably easier to just find a way to set the
DISABLEADVTSHORTCUTS property, such as put it in the property table with a
value of 1 or set it from the command line, but if the user decides to do a
repair on the product (say by right-clicking the MSI file) the missing file
will still be restored. None of these methods guarantee that the file won't
reappear. Leaving the component Guid null for the files in question is the
documented way of telling MSI you don't want the file repaired at all. I
suspect that most developers might prefer to just change the design so that
the app creates the file at install time rather than have the MSI file
install it, then with VS setups the're not altering the MSI file after every
build.
--
Phil Wilson
[Microsoft MVP-Windows Installer]
Definitive Guide to Windows Installer
http://apress.com/book/bookDisplay.html?bID=280 [quoted text, click to view] "cellach" <cellach.1uniuc@mail.mcse.ms> wrote in message
news:cellach.1uniuc@mail.mcse.ms...
>
> I ran into this same problem several months ago. This happens because
> the shortcut is created as an Advertised shortcut. To fix this I had
> to use the Orca MSI Editor, included in the MSI SDK from Microsoft, to
> change the shortcut tables of the MSI after it was created. In the
> Shortcut table, replace the target cell of the shortcut(s) with the
> path to the application, ie: [TARGETDIR]AppName.exe. Then delete the
> Icon cell associated with the shortcut. I could not find a way to do
> this from Visual Studio.
>
>
>
> --
> cellach
> ------------------------------------------------------------------------
> Posted via
http://www.mcse.ms > ------------------------------------------------------------------------
> View this thread:
http://www.mcse.ms/message1803387.html >