// Set progress bar to 75%
window.todesktop.window.setProgressBar(0.75)
// Set progress bar to intermediate mode. Any value
// greater than `1` will trigger intermediate mode
window.todesktop.window.setProgressBar(2)
// Remove progress bar. Any value less than `0`
// will remove the progress bar
window.todesktop.window.setProgressBar(-1)
// Set progress bar to 75% in error mode (Windows only)
window.todesktop.window.setProgressBar(0.75, {
// Progress bar modes are only available on Windows.
// Available modes are: 'indeterminate', 'error', and 'paused'.