diff --git a/release/installbuilder/mitmproxy.xml b/release/installbuilder/mitmproxy.xml
index 43b3ae38c..f9519c327 100644
--- a/release/installbuilder/mitmproxy.xml
+++ b/release/installbuilder/mitmproxy.xml
@@ -21,6 +21,9 @@
logo.ico
+
+ run.ps1
+
@@ -33,9 +36,6 @@
1
../build/pyinstaller/out/onedir/*
-
- run.ps1
-
@@ -59,7 +59,7 @@
0
0
powershell.exe
- -File "${installdir}\bin\run.ps1" mitmproxy
+ -File "${installdir}\run.ps1" mitmproxy
${installdir}/logo.ico
${user_home_directory}
@@ -69,7 +69,7 @@
0
0
powershell.exe
- -File "${installdir}\bin\run.ps1" mitmweb
+ -File "${installdir}\run.ps1" mitmweb
${installdir}/logo.ico
${user_home_directory}
@@ -79,7 +79,7 @@
0
0
powershell.exe
- -File "${installdir}\bin\run.ps1" mitmdump
+ -File "${installdir}\run.ps1" mitmdump
${installdir}/logo.ico
${user_home_directory}
@@ -98,7 +98,7 @@
cmd
- /c powershell -File "${installdir}\bin\run.ps1" mitmproxy &
+ /c powershell -File "${installdir}\run.ps1" mitmproxy &
Launch mitmproxy now
${user_home_directory}
diff --git a/release/installbuilder/run.ps1 b/release/installbuilder/run.ps1
index 9a0e57bf1..802ce3230 100644
--- a/release/installbuilder/run.ps1
+++ b/release/installbuilder/run.ps1
@@ -1,6 +1,6 @@
$tool = $args[0]
if (Get-Command wt -ErrorAction SilentlyContinue) {
- Start-Process wt -ArgumentList "powershell.exe","-Command","& '$PSScriptRoot\$tool.exe'"
+ Start-Process wt -ArgumentList "powershell.exe","-Command","& '$PSScriptRoot\bin\$tool.exe'"
} else {
- Start-Process powershell -ArgumentList "-Command","& '$PSScriptRoot\$tool.exe'"
+ Start-Process powershell -ArgumentList "-Command","& '$PSScriptRoot\bin\$tool.exe'"
}