Skip to content
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

Open
Rambarani opened this issue May 14, 2022 · 1 comment
Open

How to add/test auto update ? #147

Rambarani opened this issue May 14, 2022 · 1 comment

Comments

@Rambarani
Copy link

Rambarani commented May 14, 2022

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

@Rambarani Rambarani changed the title How to add auto update How to add/test auto update ? May 14, 2022
@ezequielvictor
Copy link

ezequielvictor commented Nov 25, 2022

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants