electron / forge

:electron: A complete tool for building and publishing Electron applications
https://electronforge.io
MIT License
6.49k stars 520 forks source link

@electron-forge/maker-wix saves electon app in wrong Program Files #1712

Closed pjebs closed 4 years ago

pjebs commented 4 years ago

@electron-forge/maker-wix saves Electron 9 application in Program Files (x86) folder in Win10. It should store it in Program Files which is for 64-bit applications.

Here is my forge.config.js:

makers: [
    {
        name: "@electron-forge/maker-wix",
        config: {
            programFilesFolderName: "my-app",
            ui: {
                chooseDirectory: false,
malept commented 4 years ago

The code for this is controlled in the https://github.com/felixrieseberg/electron-wix-msi repository. Can you please file a bug there (if one's not already filed)?

breen-laerdal commented 2 years ago

@malept @pjebs I think this might actually be an issue in electron-forge. The code inside of electron-wix-msi defaults to x86 unless you pass a different architecture into the creator options.

I don't see an arch field in the creator options of the Wix Maker.

Is it possible that maker-wix is not passing the arch field down to electron-wix-msi?