message: fix(image-writer): Don't inherit environment on Windows
  Due to improper command escaping, cmd metacharacters lead to failure
  in spawning the child writer process on Windows when the entire environment
  is passed through the command line. The user's environment will still
  be inherited by default on Windows.
  Change-Type: patch
diff: @@ -173,9 +173,7 @@ exports.performWrite = (image, drives, onProgress) => {
  ipc.server.on('start', () => {
  console.log(`Elevating command: ${_.join(argv, ' ')}`)
  - permissions.elevateCommand(argv, {
  - applicationName: packageJSON.displayName,
  - environment: _.assign({}, process.env, {
  + const env = _.assign({}, process.platform === 'win32' ? {} : process.env, {
  IPC_SERVER_ID,
  IPC_CLIENT_ID,
  IPC_SOCKET_ROOT: ipc.config.socketRoot,
  @@ -187,6 +185,10 @@ exports.performWrite = (image, drives, onProgress) => {
  // "installation" dialog
  SKIP: 1
  })
  +
  + permissions.elevateCommand(argv, {
  + applicationName: packageJSON.displayName,
  + environment: env
  }).then((results) => {
  flashResults.cancelled = results.cancelled
  console.log('Flash results', flashResults)
  