electron-wix-msi icon indicating copy to clipboard operation
electron-wix-msi copied to clipboard

"(MSI - Machine)" appended to product name during installation

Open duncanc opened this issue 3 years ago • 5 comments

What is the correct way to specify the application name used in the installer dialogs such that it does not have "(MSI - Machine)" appended to it each time?

duncanc avatar May 27 '21 23:05 duncanc

I would also like to know this.

hosnar avatar Aug 09 '21 10:08 hosnar

I would also like to know this! How do we get rid of it?

2xbass avatar Sep 12 '21 17:09 2xbass

Actually I see ('Machine - MSI')

2xbass avatar Sep 12 '21 17:09 2xbass

you can use the script below to replace wxs file. you have to put this code before create function

msiCreator.wixTemplate = msiCreator.wixTemplate.replace('Name = "{{ApplicationName}} (Machine - MSI)"','Name = "{{ApplicationName}}"'); msiCreator.create().then(function(){ msiCreator.compile(); });

bunyaminatik avatar Sep 24 '21 07:09 bunyaminatik

'(MSI - Machine)' came from the default wix template. If you're using this library in conjunction with @electron-forge/maker-wix you may provide a custom wix template using beforeCreate hook. Create your own custom wix file from electron-wix-msi/static/wix.xml. Example from wix maker config:

    beforeCreate:(msiCreator)=>{
        return new Promise((resolve, reject)=>{
                fs.readFile(path.join(__dirname,"./dist-config/custom-wix.xml"),"utf8",(err, content)=>{
                    if(err){
                        reject (err);
                    }
                    msiCreator.wixTemplate = content;
                    resolve();
                })
        })
    }

Mastaleru avatar Feb 07 '24 09:02 Mastaleru