发布博文
随想
读书
音乐
其他
我想爱,想吃,还想在一瞬间变成天上半明半暗的云。
我想爱,想吃,还想在一瞬间变成天上半明半暗的云。
我想爱,想吃,还想在一瞬间变成天上半明半暗的云。
我想爱,想吃,还想在一瞬间变成天上半明半暗的云。

WiX Toolset-Make the default install dir to "Program files"

311
高光翔
2024-09-24 12:02

Most of our program would be 64-bit, so the default install dir we expect to show to user is "C:\Program Files...", however it will be "C:\Program Files (x86)..." without some additional settings.

Items.png 

 

1. Change Id of Directory to 'ProgramFiles64Folder' from 'ProgramFilesFolder'


Screenshot 2022-10-24 162508.png


2. Go to the project solution file, change to <Platform Condition=" '$(Platform)' == '' ">x64</Platform>, then add <InstallerPlatform>x64</InstallerPlatform>


Screenshot 2022-10-24 162720.png


Reference: https://stackoverflow.com/questions/22932942/wix-heat-exe-win64-components-win64-yes/24396430#24396430 

Insert title here Insert title here
打  赏