forked from lextm/msbuildlaunchpad
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdeploy.bat
More file actions
20 lines (17 loc) · 877 Bytes
/
deploy.bat
File metadata and controls
20 lines (17 loc) · 877 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
:: http://stackoverflow.com/questions/328017/path-to-msbuild
:: http://www.csharp411.com/where-to-find-msbuild-exe/
:: http://timrayburn.net/blog/visual-studio-2013-and-msbuild/
:: http://blogs.msdn.com/b/visualstudio/archive/2013/07/24/msbuild-is-now-part-of-visual-studio.aspx
for %%v in (2.0, 3.5, 4.0, 12.0, 14.0) do (
for /f "usebackq tokens=2* delims= " %%c in (`reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSBuild\ToolsVersions\%%v" /v MSBuildToolsPath`) do (
set msBuildExe=%%dMSBuild.exe
)
)
call "%msBuildExe%" msbuildlaunchpad.sln /p:Configuration=Release /t:Rebuild
@IF %ERRORLEVEL% NEQ 0 PAUSE
mkdir .\bin
copy processviewer\processviewer.exe .\bin\
copy msbuildlaunchpad.exe.manifest .\bin\
copy msbuildlaunchpadadmin.exe.manifest .\bin\
copy launchpad.iss .\bin\
"C:\Program Files (x86)\Inno Setup 5\iscc.exe" bin\launchpad.iss