File tree 2 files changed +43
-1
lines changed
UnityLauncherProInstaller
2 files changed +43
-1
lines changed Original file line number Diff line number Diff line change
1
+ @ ECHO OFF
2
+ SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION
3
+
4
+ ECHO :
5
+ ECHO === Starting Installer Build Workaround ===
6
+
7
+ REM Store current directory
8
+ SET " current_path = %CD% "
9
+
10
+ REM Try all known editions of Visual Studio 2022
11
+ SET " vs_base_path = %ProgramFiles% \Microsoft Visual Studio\2022"
12
+ FOR %%E IN (Community Professional Enterprise) DO (
13
+ IF EXIST " %vs_base_path% \%%E \Common7\IDE\CommonExtensions\Microsoft\VSI\DisableOutOfProcBuild\DisableOutOfProcBuild.exe" (
14
+ SET " buildfix_path = %vs_base_path% \%%E \Common7\IDE\CommonExtensions\Microsoft\VSI\DisableOutOfProcBuild"
15
+ SET " devenv_path = %vs_base_path% \%%E \Common7\IDE\devenv.exe"
16
+ SET " vs_edition = %%E "
17
+ GOTO :FoundEdition
18
+ )
19
+ )
20
+
21
+ ECHO [ERROR] Could not find DisableOutOfProcBuild.exe in any known VS2022 edition.
22
+ EXIT /B 1
23
+
24
+ :FoundEdition
25
+ ECHO Found Visual Studio 2022 Edition: %vs_edition%
26
+ CD /D " %buildfix_path% "
27
+ CALL DisableOutOfProcBuild.exe
28
+
29
+ REM Restore previous directory
30
+ CD /D " %current_path% "
31
+
32
+ ECHO :
33
+ ECHO === Building Installer ===
34
+ CALL " %devenv_path% " UnityLauncherPro.sln /Rebuild Release /Project UnityLauncherProInstaller
35
+
36
+ ECHO :
37
+ ECHO === Build Complete ===
38
+
39
+ REM Clean up registry key if needed (optional)
40
+ REG DELETE " HKCU\Software\Microsoft\VisualStudio\Setup" /v VSDisableOutOfProcBuild /f > NUL 2 >& 1
41
+
42
+ ENDLOCAL
Original file line number Diff line number Diff line change 804
804
{
805
805
"{5259A561-127C-4D43-A0A1-72F10C7B3BF8}:_7E1343CBA8EB43B8864B8A7BBEB62BCA"
806
806
{
807
- "SourcePath" = "8:..\\UnityLauncherPro\\obj \\Release\\UnityLauncherPro.exe"
807
+ "SourcePath" = "8:..\\UnityLauncherPro\\bin \\Release\\UnityLauncherPro.exe"
808
808
"TargetName" = "8:"
809
809
"Tag" = "8:"
810
810
"Folder" = "8:_68B52FAF3D0E46A7BB2DA063CB0BC570"
You can’t perform that action at this time.
0 commit comments