squirrel.windows

Download customized setup from url with the query string parameters

谁都会走 提交于 2020-01-30 09:33:09
问题 I made a windows service application that I want to create a setup file. When User request application via our website url with query parameters, (Eg: http://test.com/setup.exe?id=1212) I need to change the current app.config key value to that query parameter value. I also need to update this application automatically when new release is ready. So ClickOnce or squirrel for windows might be an option but as I couldn't find way to achieve above task. Following questions are bit similar but don

NuSpec - how to trim $version$ down to Major.Minor.Build (SemVersion)?

拟墨画扇 提交于 2019-12-13 04:22:00
问题 I'm creating a .NuSpec file with <metadata> <version>$version$</version> <!-- ... --> </metadata> Unfortunately, that returns the assembly's version in Major.Minor.Build.Revision format. I need to trim this down to 3 parts only (Major.Minor.Build) for compatibility with SemVersion as used by Squirrel. Is there any way to do this? I'd prefer not having to put in the version number by hand for each release. 回答1: Is there any way to do this? I'd prefer not having to put in the version number by

Manage update in Application Exit

送分小仙女□ 提交于 2019-12-13 02:56:46
问题 Using Squirrel.Windows, I wanted to handle the update process in the Application Exit handler of my WPF application using this code: Task.Run(async () => { using (var mgr = new UpdateManager(Settings.Default.UpdatePath)) { var release = await mgr.UpdateApp(); if (release != null && release.Version > Assembly.GetEntryAssembly().GetName().Version) { MessageBox.Show("Update applied"); } } }); This code works if I call it on startup, or on an event handler during execution, but not inside the

Node.js child process with detached option

邮差的信 提交于 2019-12-11 07:54:30
问题 I am creating an electron desktop app, and I have code use spawn() with option detached: true. My purpose is to let the child process keep running even when the parent process terminated. const spawn = require('child_process').spawn; const ls = spawn('ls', ['-lh', '/usr'], { detached: true }); ls.stdout.on('data', (data) => { console.log(`stdout: ${data}`); fs.writeFileSync('path-to-test.txt', 'stdout'); }); ls.stderr.on('data', (data) => { console.log(`stderr: ${data}`); fs.writeFileSync(

Where can I find the logs for my Electron app in production?

烂漫一生 提交于 2019-12-05 13:10:23
问题 I've built an app with Electron and used Electron-Builder to create a Squirrel windows installer and updater. It all works great but I'm having trouble debugging the production version of my app. Are the logs created by a console.log written somewhere on disk when using the production version? If so, where can I find them? Or are those all removed when compiling the executable? There must be some kind of log file for my app right? I've found the SquirrelSetupLog in C:\Users\Tieme\AppData

Where can I find the logs for my Electron app in production?

时光总嘲笑我的痴心妄想 提交于 2019-12-04 00:02:32
I've built an app with Electron and used Electron-Builder to create a Squirrel windows installer and updater. It all works great but I'm having trouble debugging the production version of my app. Are the logs created by a console.log written somewhere on disk when using the production version? If so, where can I find them? Or are those all removed when compiling the executable? There must be some kind of log file for my app right? I've found the SquirrelSetupLog in C:\Users\Tieme\AppData\Local\MyApp\SquirrelSetupLog but that's not enough for debugging my production-only problem. Just came