           tarfile = Path.join([@standard_output_path, "releases", "0.0.1", "standard_app.tar.gz"])
           assert :ok = :erl_tar.extract('#{tarfile}', [{:cwd, '#{tmpdir}'}, :compressed])
           assert File.exists?(bin_path)
+          case :os.type() do
+            {:win32,_} ->
+              assert {_output, 0} = System.cmd(bin_path, ["install"])
+            _ ->
+              :ok
+          end
           assert {_output, 0} = System.cmd(bin_path, ["start"])
           :timer.sleep(1_000) # Required, since starting up takes a sec
-          assert {"pong" <> @newline, 0} = System.cmd(bin_path, ["ping"])
-          assert {"2" <> @newline, 0}    = System.cmd(bin_path, ["eval", "'Elixir.Application':get_env(standard_app, num_procs)"])
-          assert {"ok" <> @newline, 0}   = System.cmd(bin_path, ["stop"])
+          assert {"pong\n", 0} = System.cmd(bin_path, ["ping"])
+          assert {"2\n", 0}    = System.cmd(bin_path, ["eval", "'Elixir.Application':get_env(standard_app, num_procs)"])
+          case :os.type() do
+            {:win32,_} ->
+              assert {output, 0} = System.cmd(bin_path, ["stop"])
+              assert String.contains?(output, "stopped")
+              assert {_output, 0} = System.cmd(bin_path, ["uninstall"])
+            _ ->
+              assert {"ok\n", 0} = System.cmd(bin_path, ["stop"])
+          end
         rescue
           e ->
             _ = System.cmd(bin_path, ["stop"])
-            fields = Map.from_struct(e)
-            reraise(e.__struct__, Enum.into(fields, []), System.stacktrace)
+            case :os.type() do
+              {:win32,_} ->
+                _ = System.cmd(bin_path, ["uninstall"])
+              _ ->
+                :ok
+            end
+            reraise e, System.stacktrace
         after
           File.rm_rf!(tmpdir)
           :ok


  describe "standard application" do
    @tag :expensive
    @tag timeout: 120_000 # 2m
    test "can build release and start it" do
      with_standard_app do
        # Build release

    end

    @tag :expensive
    @tag timeout: 60_000 * 5 # 5m
    test "can build and deploy hot upgrade" do
      with_standard_app do
        # Build v1 release
