, поэтому у меня есть MSI, который создает две папки стартового меню.Я хочу поместить несколько ярлыков в папку startmenu, но в Windows 10 это только первый ярлык.но если я использую ту же MSI на сборке Windows 7 все ярлыки есть.Все файлы, на которые указывают ярлыки, находятся в месте установки.
Я гуглил повсюду, и хотя есть много ссылок на то, как добавить пункты меню «Пуск».никто не решает эту проблему Windows 10 у меня есть.Вот код, который я должен добавить элементы в меню Пуск.
<ComponentRef Id="CADDResources" />
<!--------------------------------------->
<Directory Id="ProgramMenuFolder">
<Directory Id="ApplicationProgramsFolder" Name="!(bind.property.Manufacturer)" />
<Directory Id="CADDMenuFolder" Name="OhioDOT-CADD Resources"/>
</Directory>
<!--------------------------------------->
<DirectoryRef Id="CADDMenuFolder">
<Component Id="CADDResources" Guid="[YOURGUIDHERE]">
<Shortcut Id="SupportRequest" Name="CADD Services - Request for Support" Description="Link to support request form" Target="[INSTALLFOLDER]CADD Services - Request for Support.url" WorkingDirectory="INSTALLFOLDER" />
<Shortcut Id="Youtubepage" Name="CADD Services - YouTube Channel.url" Description="Link to ODOT CADD's YouTube Channel" Target="[INSTALLFOLDER]CADD Services - YouTube Channel.url" WorkingDirectory="INSTALLFOLDER" />
<Shortcut Id="CADDMain" Name="CADD Services - Main.url" Description="Link to ODOT CADD's main webpage" Target="[INSTALLFOLDER]CADD Services - Main.url" WorkingDirectory="INSTALLFOLDER" />
<Shortcut Id="ODOTCommunities" Name="Bentley Communities - ODOT.url" Description="Link to ODOT CADD's Bentleys Communities page" Target="[INSTALLFOLDER]Bentley Communities - ODOT.url" WorkingDirectory="INSTALLFOLDER" />
<RemoveFile Id="shourtcutfile1" Name="CADD Services - Request for Support.url" Directory="CADDMenuFolder" On="uninstall"/>
<RemoveFile Id="shourtcutfile2" Name="CADD Services - YouTube Channel.url" Directory="CADDMenuFolder" On="uninstall"/>
<RemoveFile Id="shourtcutfile3" Name="CADD Services - Main.url" Directory="CADDMenuFolder" On="uninstall"/>
<RemoveFile Id="shourtcutfile4" Name="Bentley Communities - ODOT.url" Directory="CADDMenuFolder" On="uninstall"/>
<RemoveFolder Id="CleanUpShortCut2" Directory="CADDMenuFolder" On="uninstall" />
<RegistryKey Root="HKCU" Key="Software\OhioDOT\CADD\Connect\OhioDOTCADDStandardsInstaller_Local" ForceDeleteOnUninstall="yes">
<RegistryValue Name="Resources" Type="integer" Value="1" KeyPath="yes" />
</RegistryKey>
</Component>
</DirectoryRef>
Я также попытался вместо того, чтобы поместить все ярлыки в один компонент, я сделал их все отдельные компоненты, и это тоже не сработало.Я в недоумении, почему это не работает.