diff --git a/lib/shared/permissions.ts b/lib/shared/permissions.ts index 7468ab5b..3329f403 100755 --- a/lib/shared/permissions.ts +++ b/lib/shared/permissions.ts @@ -161,7 +161,10 @@ export async function elevateCommand( options.environment, ); return Bluebird.using( - tmpFileDisposer({ postfix: '.cmd' }), + tmpFileDisposer({ + prefix: 'balena-etcher-electron-', + postfix: '.cmd', + }), async ({ path }) => { await fs.writeFile(path, launchScript); if (isWindows) {