Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>As explained <a href="http://www.discussweb.com/c-programming/13643-advertised-shortcuts-installers-how-avoid.html" rel="noreferrer">here</a>, the Visual Studio can only create "advertised shortcuts" that uses the MSI file to check that all the files and registry values are present.</p> <p>In the same link you can find the solution : edit the MSI database to add a value in the Property table. I tested it, you just have to add "<strong>DISABLEADVTSHORTCUTS</strong>" with the value "1".</p> <p>To add it, you can use the ORCA tool which is part of the <a href="http://www.microsoft.com/downloads/details.aspx?familyid=6A35AC14-2626-4846-BB51-DDCE49D6FFB6" rel="noreferrer">Windows Installer SDK</a>. This is the manual way... And I suppose you won't like it.</p> <p>So I looked further and found that you can do that with a command line and a VBS script provided by the Window Installer SDK :</p> <pre><code>Cscript WiRunSQL.vbs Test.msi "INSERT INTO `Property` (`Property`.`Property`,`Property`.`Value`) VALUES ('DISABLEADVTSHORTCUTS',1)" </code></pre> <p>Now you just have to set a post build event for your setup project (it's a little different from "regular" projects, see <a href="http://blogs.msdn.com/astebner/archive/2006/08/24/716145.aspx" rel="noreferrer">here</a>) in order to execute this script.</p> <p>It works very well for me !</p> <p>Additional resources :<br> <a href="http://msdn.microsoft.com/en-us/library/aa370908%28VS.85%29.aspx" rel="noreferrer">MSI property table reference</a><br> <a href="http://msdn.microsoft.com/en-us/library/aa368562%28VS.85%29.aspx" rel="noreferrer">Edit MSI with command line</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload