electron / windows-installer

Build Windows Installers for Electron apps
MIT License
1.55k stars 259 forks source link

Electron MSI package name ends with machine why? #481

Open ArunKathir98 opened 10 months ago

ArunKathir98 commented 10 months ago

Hi,

Thanks in advance if someone ready to help..

I have created package using electron forge (maker/wix).

I am able to generate msi package by using electron forge configuration. But I am facing 1 issue.

After the installation I am getting installed package along with (Machine) -Eg: applicationname(Machine).

Also I have tried with signed package but still it seems issues occur.

Any idea why this issue raises and how to resolve this ?

Could someone help on this?

PaserSRL commented 5 months ago

I faced this issue just now. It depends by electron-wix-msi XML templates: https://github.com/electron-userland/electron-wix-msi/tree/master/static

Anyway you can manually change it before package creation in this way:

{ "name": "@electron-forge/maker-wix", "config": { ... beforeCreate: async (msiCreator) => { msiCreator.wixTemplate = msiCreator.wixTemplate.replace(" (Machine - MSI)", ''); msiCreator.wixTemplate = msiCreator.wixTemplate.replace(" (Machine)", ''); } } }