From 0de81294574e79c6021883fa9b8e2edc8bdcf4fd Mon Sep 17 00:00:00 2001
From: hypercubus <hypercubus>
Date: Mon, 30 Aug 2004 12:28:08 +0000
Subject: [PATCH] * installer no longer hangs on Windows waiting for the
 spawned shell process to return * shell process spawned by the installer on
 Windows will not create a visible command window

---
 installer/resources/ProcessPanel.Spec.xml | 5 ++++-
 installer/resources/postinstall.bat       | 2 +-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/installer/resources/ProcessPanel.Spec.xml b/installer/resources/ProcessPanel.Spec.xml
index edea06fda3..e76bf2190b 100644
--- a/installer/resources/ProcessPanel.Spec.xml
+++ b/installer/resources/ProcessPanel.Spec.xml
@@ -3,7 +3,10 @@
 <processing>
     <job name="Launching I2P...">
         <os family="windows" />
-        <executefile name="$INSTALL_PATH/postinstall.bat" />
+        <!-- start /min cmd /c %INSTALL_PATH%/postinstall.sh %INSTALL_PATH%" -->
+        <executefile name="C:\Windows\System32\cmd.exe">
+            <arg>/c</arg><arg>"$INSTALL_PATH\postinstall.bat"</arg>
+        </executefile>
     </job>
     <job name="Launching I2P...">
         <os family="unix" />
diff --git a/installer/resources/postinstall.bat b/installer/resources/postinstall.bat
index 26049a9822..4829ad50da 100644
--- a/installer/resources/postinstall.bat
+++ b/installer/resources/postinstall.bat
@@ -16,4 +16,4 @@ set INSTALL_PATH=%~dp0
 copy "%INSTALL_PATH%lib\wrapper\win32\I2Psvc.exe" "%INSTALL_PATH%"
 copy "%INSTALL_PATH%lib\wrapper\win32\wrapper.dll" "%INSTALL_PATH%lib"
 copy "%INSTALL_PATH%lib\wrapper\win32\wrapper.jar" "%INSTALL_PATH%lib"
-"%INSTALL_PATH%i2prouter.bat"
+start /b /i /d"%INSTALL_PATH%" i2prouter.bat
-- 
GitLab