       nugetOutput
       '-NoDefaultExcludes'
     ]
+    
+    if useMono
+      args.unshift(cmd)
+      cmd = monoExe
 
     syncReleases = (cb) ->
       if remoteReleases?
         cmd = path.resolve(__dirname, '..', 'vendor', 'SyncReleases.exe')
         args = ['-u', remoteReleases, '-r', outputDirectory]
+        
+        if useMono
+          args.unshift(cmd)
+          cmd = monoExe
+
         exec {cmd, args}, cb
       else
         process.nextTick -> cb()

    ChildProcess.execFile options.cmd, options.args, (error, stdout, stderr) ->
      grunt.log.error(stderr) if stderr
      callback(error)

  grunt.registerMultiTask 'create-windows-installer', 'Create the Windows installer', ->
    @requiresConfig("#{@name}.#{@target}.appDirectory")

    done = @async()


          '--loadingGif'
          loadingGif
        ]
                
        if useMono
          args.unshift(path.resolve(__dirname, '..', 'vendor', 'Update-Mono.exe'))
          cmd = monoExe

        if signWithParams?
          args.push '--signWithParams'
