You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Previously I am using electron-builder and electron-updater combo to publish and auto updates for exe files. through electron-updater I will check for updates and download and update the app.
But Now I moving to .msi. in this how to achieve auto update feature. I could not able to find any documentation or example. can someone please help on this.
var MSICreator = require("electron-wix-msi").MSICreator;
const path = require('path')
Previously I am using electron-builder and electron-updater combo to publish and auto updates for exe files. through electron-updater I will check for updates and download and update the app.
But Now I moving to .msi. in this how to achieve auto update feature. I could not able to find any documentation or example. can someone please help on this.
var MSICreator = require("electron-wix-msi").MSICreator;
const path = require('path')
// Step 1: Instantiate the MSICreator
const msiCreator = new MSICreator({
appDirectory: path.resolve('dist/win-unpacked'),
description: 'My amazing Kitten simulator',
exe: 'app',
name: 'app',
manufacturer: 'app',
version: '2.0.0',
outputDirectory: path.resolve('release/msi/'),
appIconPath: path.resolve('build/icon.ico'),
ui: {
chooseDirectory: true,
},
features: {
autoUpdate: true,
},
updaterPermissions: true
});
async function createMsi() {
// Step 2: Create a .wxs template file
await msiCreator.create();
// Step 3: Compile the template to a .msi file
await msiCreator.compile();
}
console.log('Invoke MSI Builder');
createMsi();
This creates these files under release/msi
app.msi
app.wixobj
app.wixpdb
app.wxs
i installed app.msi. whats the next step. how it download and install the updates. How can i test this ? Need help on this ! @felixrieseberg
The text was updated successfully, but these errors were encountered: