-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to add/test auto update ? #147
Comments
I would like to know about this too |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: