 
 config = require './config'
 Command = require './command'
+
+isWin32 = !!process.platform.match(/^win/)
 
 module.exports =
 class Installer extends Command

    installArgs.push("--target=#{config.getNodeVersion()}")
    installArgs.push('--arch=ia32')
    installArgs.push('--silent') if options.argv.silent
    env = _.extend({}, process.env, HOME: @atomNodeDirectory)

    @fork @atomNpmPath, installArgs, {env}, (code, stderr='', stdout='') ->

    installArgs.push("--target=#{config.getNodeVersion()}")
    installArgs.push('--arch=ia32')
    installArgs.push('--silent') if options.argv.silent
    installArgs.push('--msvs_version=2012') if isWin32
    env = _.extend({}, process.env, HOME: @atomNodeDirectory)

    installDirectory = temp.mkdirSync('apm-install-dir-')
