I have a Visual Studio 2022 installer project I made and it currently has a primary output which creates an advertised shortcut automatically when the project is installed. However, since its advertised, every time the desktop icon (the shortcut) is clicked, it activates the msi to repair itself and then when default files are not found in the config folder, it breaks and does not open. For context, these default files are not needed to start the application so I want to make the shortcut like a regular shortcut you would make directly from you PC which points to the .exe file directly and runs that each time.
Is there a way to disable this from VS?
I tried adding the DISABLEADVTSHORTCUTS in a property {} manually in the .vdproj file with a value of "8:1" and its in the right place but doesn't seem to be working. I've tried to remove the primary output from the file system and add the .exe directly and have a shortcut point to it but even then the same thing happens and the msi is still activated each time.
I tried looking for "add property" and there is nothing like that when I looked through my setup project.
DISABLEADVTSHORTCUTSinside .vdproj ? VSI Projects dont expose a UI for setting MSI properties directly. Either you have to use transform or inside the property table of hte MSI.