我已經設置了程序作爲Windows啓動運行,但該程序只能在Windows 10中以管理員身份運行時運行,任何人都可以告訴我應該在代碼中添加什麼設置那?這裏是我的維克斯代碼:Wix設置程序作爲管理員運行
在產品模塊有
<ComponentRef Id="RegistryEntries"/>
然後
<Fragment>
<DirectoryRef Id="ProgramFilesFolder">
<Component Id="RegistryEntries" Guid="14fe9526-0da4-4761-ad27-8a77f145c6b5">
<RegistryKey Root="HKCU"
Key="Software\Microsoft\Windows\CurrentVersion\Run"
Action="createAndRemoveOnUninstall">
<RegistryValue Type="string" Name="March Networks Video Assistant" Value="[INSTALLFOLDER]March Networks Video Assistant.exe" KeyPath="yes"/>
</RegistryKey>
</Component>
</DirectoryRef>
</Fragment>
非常感謝你給大家。
非常感謝Brian,真的很有幫助! –