electron-wix-msi
electron-wix-msi copied to clipboard
"(MSI - Machine)" appended to product name during installation
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?
I would also like to know this.
I would also like to know this! How do we get rid of it?
Actually I see ('Machine - MSI')
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(); });
'(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();
})
})
}