2010-11-20 21:16:03 +01:00
|
|
|
@ECHO OFF
|
|
|
|
SETLOCAL
|
2011-10-06 11:29:10 +02:00
|
|
|
|
2011-02-03 11:43:13 +01:00
|
|
|
CD /D %~dp0
|
2010-11-29 17:27:13 +01:00
|
|
|
|
2019-05-27 05:11:10 +02:00
|
|
|
REM Check for the help switches
|
|
|
|
IF /I "%~1" == "help" GOTO ShowHelp
|
|
|
|
IF /I "%~1" == "/help" GOTO ShowHelp
|
|
|
|
IF /I "%~1" == "-help" GOTO ShowHelp
|
|
|
|
IF /I "%~1" == "--help" GOTO ShowHelp
|
|
|
|
IF /I "%~1" == "/?" GOTO ShowHelp
|
|
|
|
IF /I "%~1" == "-?" GOTO ShowHelp
|
|
|
|
|
2020-01-20 12:00:20 +01:00
|
|
|
ECHO Getting latest changes...
|
|
|
|
git pull
|
|
|
|
ECHO.
|
|
|
|
ECHO Starting compilation...
|
|
|
|
|
2019-05-27 23:39:57 +02:00
|
|
|
REM Set environment variables for Visual Studio command line if necessary
|
|
|
|
:SetVsCmdLineEnv
|
|
|
|
IF DEFINED VSINSTALLDIR IF EXIST "%VSINSTALLDIR%" (
|
|
|
|
IF DEFINED VisualStudioVersion IF "%VisualStudioVersion%" GEQ "15.0" GOTO SetBuildType
|
|
|
|
ECHO.
|
|
|
|
ECHO Developer Command Prompt for Visual Studio 2017 or later required!
|
|
|
|
GOTO EndWithError
|
|
|
|
)
|
|
|
|
FOR /F "usebackq delims=" %%A IN (`vswhere -latest -requires Microsoft.Component.MSBuild -property installationPath`) DO (
|
|
|
|
SET "VSINSTALLDIR=%%A\"
|
|
|
|
)
|
|
|
|
IF DEFINED VSINSTALLDIR IF EXIST "%VSINSTALLDIR%" (
|
|
|
|
ECHO Visual Studio installation path: "%VSINSTALLDIR%"
|
|
|
|
) ELSE (
|
|
|
|
ECHO.
|
|
|
|
ECHO Cannot find Visual Studio.
|
|
|
|
GOTO EndWithError
|
|
|
|
)
|
|
|
|
SET "VsDevCmd_bat=%VSINSTALLDIR%Common7\Tools\VsDevCmd.bat"
|
|
|
|
IF NOT EXIST "%VsDevCmd_bat%" (
|
|
|
|
FOR /F "usebackq delims=" %%A IN (`DIR /B /S "%VSINSTALLDIR%\VsDevCmd.bat"`) DO (
|
|
|
|
SET "VsDevCmd_bat=%%A"
|
|
|
|
)
|
2015-12-23 00:34:10 +01:00
|
|
|
)
|
2019-05-27 23:39:57 +02:00
|
|
|
IF EXIST "%VsDevCmd_bat%" (
|
|
|
|
ECHO Visual Studio VsDevCmd.bat path: "%VsDevCmd_bat%"
|
|
|
|
) ELSE (
|
|
|
|
ECHO.
|
|
|
|
ECHO Cannot find Visual Studio VsDevCmd batch file.
|
|
|
|
GOTO EndWithError
|
|
|
|
)
|
|
|
|
ECHO.
|
|
|
|
CALL "%VsDevCmd_bat%" -startdir=none
|
|
|
|
GOTO SetVsCmdLineEnv
|
|
|
|
|
2010-11-20 21:16:03 +01:00
|
|
|
|
2019-05-27 23:39:57 +02:00
|
|
|
:SetBuildType
|
2011-02-03 11:43:13 +01:00
|
|
|
IF "%~1" == "" (
|
|
|
|
SET "BUILDTYPE=Build"
|
|
|
|
) ELSE (
|
2011-03-14 13:01:38 +01:00
|
|
|
IF /I "%~1" == "Build" SET "BUILDTYPE=Build" & GOTO START
|
|
|
|
IF /I "%~1" == "/Build" SET "BUILDTYPE=Build" & GOTO START
|
|
|
|
IF /I "%~1" == "-Build" SET "BUILDTYPE=Build" & GOTO START
|
|
|
|
IF /I "%~1" == "--Build" SET "BUILDTYPE=Build" & GOTO START
|
|
|
|
IF /I "%~1" == "Clean" SET "BUILDTYPE=Clean" & GOTO START
|
|
|
|
IF /I "%~1" == "/Clean" SET "BUILDTYPE=Clean" & GOTO START
|
|
|
|
IF /I "%~1" == "-Clean" SET "BUILDTYPE=Clean" & GOTO START
|
|
|
|
IF /I "%~1" == "--Clean" SET "BUILDTYPE=Clean" & GOTO START
|
|
|
|
IF /I "%~1" == "Rebuild" SET "BUILDTYPE=Rebuild" & GOTO START
|
|
|
|
IF /I "%~1" == "/Rebuild" SET "BUILDTYPE=Rebuild" & GOTO START
|
|
|
|
IF /I "%~1" == "-Rebuild" SET "BUILDTYPE=Rebuild" & GOTO START
|
2011-02-03 11:43:13 +01:00
|
|
|
IF /I "%~1" == "--Rebuild" SET "BUILDTYPE=Rebuild" & GOTO START
|
|
|
|
|
2019-05-27 05:11:10 +02:00
|
|
|
ECHO.
|
|
|
|
ECHO Unsupported commandline switch!
|
2011-02-03 11:43:13 +01:00
|
|
|
GOTO EndWithError
|
|
|
|
)
|
2010-11-20 21:16:03 +01:00
|
|
|
|
|
|
|
|
2011-02-03 11:43:13 +01:00
|
|
|
:START
|
2019-05-27 05:11:10 +02:00
|
|
|
TITLE %BUILDTYPE%ing Subtitle Edit - Release^|Any CPU...
|
|
|
|
ECHO.
|
|
|
|
ECHO %BUILDTYPE%ing Subtitle Edit - Release^|Any CPU...
|
|
|
|
DEL /F /Q SubtitleEdit-*-Setup.exe SubtitleEdit-*.zip 2>NUL
|
|
|
|
ECHO.
|
|
|
|
ECHO Visual Studio installation path: "%VSINSTALLDIR%"
|
2019-05-27 23:39:57 +02:00
|
|
|
IF EXIST "%VSINSTALLDIR%MSBuild\15.0\Bin\MSBuild.exe" (
|
|
|
|
SET "MSBUILD=%VSINSTALLDIR%MSBuild\15.0\Bin\MSBuild.exe"
|
2019-05-02 07:19:04 +02:00
|
|
|
) ELSE (
|
2019-05-27 23:39:57 +02:00
|
|
|
IF EXIST "%VSINSTALLDIR%MSBuild\Current\Bin\MSBuild.exe" (
|
|
|
|
SET "MSBUILD=%VSINSTALLDIR%MSBuild\Current\Bin\MSBuild.exe"
|
2019-05-27 05:11:10 +02:00
|
|
|
) ELSE (
|
|
|
|
ECHO Cannot find Visual Studio 2017.
|
2017-03-28 17:40:14 +02:00
|
|
|
GOTO EndWithError
|
2019-05-27 05:11:10 +02:00
|
|
|
))
|
2020-11-19 20:53:49 +01:00
|
|
|
|
2021-01-08 15:59:41 +01:00
|
|
|
ECHO Check for new translation strings...
|
|
|
|
"%MSBUILD%" src\UpdateLanguageFiles\UpdateLanguageFiles.csproj /r /t:Rebuild /p:Configuration=Debug /p:Platform="Any CPU"^
|
|
|
|
/maxcpucount /p:OutputPath=bin\debug /consoleloggerparameters:DisableMPLogging;Summary;Verbosity=minimal
|
|
|
|
SET "LanguageToolPath=src\UpdateLanguageFiles\bin\debug\UpdateLanguageFiles.exe"
|
|
|
|
IF NOT EXIST "%LanguageToolPath%" (
|
|
|
|
ECHO Compile UpdateLanguageFiles!
|
|
|
|
)
|
2022-09-06 19:51:02 +02:00
|
|
|
"%LanguageToolPath%" "LanguageBaseEnglish.xml" "src\ui\Logic\LanguageDeserializer.cs"
|
2021-01-08 15:59:41 +01:00
|
|
|
ECHO.
|
|
|
|
|
2020-02-09 10:09:05 +01:00
|
|
|
"%MSBUILD%" SubtitleEdit.sln /r /t:%BUILDTYPE% /p:Configuration=Release /p:Platform="Any CPU"^
|
2019-05-27 05:11:10 +02:00
|
|
|
/maxcpucount /consoleloggerparameters:DisableMPLogging;Summary;Verbosity=minimal
|
|
|
|
IF %ERRORLEVEL% NEQ 0 GOTO EndWithError
|
2019-05-02 07:19:04 +02:00
|
|
|
|
2019-05-27 05:11:10 +02:00
|
|
|
IF /I "%BUILDTYPE%" == "Clean" GOTO EndSuccessful
|
2016-06-14 10:18:26 +02:00
|
|
|
|
2014-05-06 16:40:33 +02:00
|
|
|
CALL :SubDetectSevenzipPath
|
2014-09-23 18:44:07 +02:00
|
|
|
IF DEFINED SEVENZIP IF EXIST "%SEVENZIP%" (
|
2014-08-10 08:53:38 +02:00
|
|
|
CALL :SubGetVersion
|
2014-06-21 18:25:19 +02:00
|
|
|
CALL :SubZipFile
|
2014-05-06 16:40:33 +02:00
|
|
|
)
|
2011-06-10 11:40:58 +02:00
|
|
|
|
2011-04-05 15:44:49 +02:00
|
|
|
CALL :SubDetectInnoSetup
|
2019-05-27 05:11:10 +02:00
|
|
|
IF DEFINED INNOSETUP IF EXIST "%INNOSETUP%" (
|
|
|
|
TITLE Compiling installer with Inno Setup...
|
|
|
|
ECHO.
|
|
|
|
ECHO Compiling installer with Inno Setup...
|
|
|
|
"%INNOSETUP%" /O"." /Q "installer\Subtitle_Edit_installer.iss"
|
2011-02-03 11:43:13 +01:00
|
|
|
IF %ERRORLEVEL% NEQ 0 GOTO EndWithError
|
|
|
|
|
2019-05-27 05:11:10 +02:00
|
|
|
ECHO.
|
|
|
|
ECHO Installer compiled successfully!
|
2010-11-29 17:27:13 +01:00
|
|
|
) ELSE (
|
2019-05-27 05:11:10 +02:00
|
|
|
ECHO Inno Setup wasn't found; the installer wasn't built.
|
2010-11-29 17:27:13 +01:00
|
|
|
)
|
2010-11-20 21:16:03 +01:00
|
|
|
|
|
|
|
|
2022-10-23 20:22:10 +02:00
|
|
|
|
|
|
|
|
|
|
|
SET "WinGetFix=src\UpdateAssemblyInfo\bin\debug\UpdateAssemblyInfo.exe"
|
|
|
|
IF NOT EXIST "%WinGetFix%" (
|
|
|
|
ECHO Compile UpdateAssemblyInfo!
|
|
|
|
)
|
|
|
|
"%WinGetFix%" "winget"
|
|
|
|
ECHO.
|
2022-10-24 18:16:53 +02:00
|
|
|
ECHO Validate with: winget validate --manifest C:\git\subtitleedit\winget
|
|
|
|
ECHO Test with : winget install --manifest C:\git\subtitleedit\winget
|
|
|
|
ECHO Submit with : wingetcreate submit C:\git\subtitleedit\winget
|
2022-10-23 20:22:10 +02:00
|
|
|
pause
|
|
|
|
|
|
|
|
|
2019-05-27 05:11:10 +02:00
|
|
|
:EndSuccessful
|
|
|
|
TITLE %BUILDTYPE%ing Subtitle Edit finished!
|
|
|
|
GOTO END
|
|
|
|
|
|
|
|
|
|
|
|
:EndWithError
|
|
|
|
TITLE Compiling Subtitle Edit [ERROR]
|
|
|
|
ECHO.
|
|
|
|
ECHO.
|
|
|
|
ECHO ** ERROR: Build failed and aborted! **
|
|
|
|
GOTO END
|
|
|
|
|
|
|
|
|
|
|
|
:ShowHelp
|
|
|
|
TITLE %~nx0 %1
|
|
|
|
ECHO.
|
|
|
|
ECHO.
|
|
|
|
ECHO Usage: %~nx0 [Clean^|Build^|Rebuild]
|
|
|
|
ECHO.
|
|
|
|
ECHO Notes: You can also prefix the commands with "-", "--" or "/".
|
|
|
|
ECHO The arguments are not case sensitive.
|
|
|
|
ECHO.
|
|
|
|
ECHO Executing %~nx0 without any arguments is equivalent to "%~nx0 build".
|
|
|
|
|
|
|
|
|
2010-11-20 21:16:03 +01:00
|
|
|
:END
|
2019-05-27 05:11:10 +02:00
|
|
|
ECHO.
|
2010-11-20 21:16:03 +01:00
|
|
|
ECHO.
|
2011-02-03 11:43:13 +01:00
|
|
|
ENDLOCAL
|
|
|
|
PAUSE
|
2010-11-20 21:16:03 +01:00
|
|
|
EXIT /B
|
|
|
|
|
2011-02-03 11:43:13 +01:00
|
|
|
|
2011-06-10 11:40:58 +02:00
|
|
|
:SubZipFile
|
2019-05-27 05:11:10 +02:00
|
|
|
TITLE Creating ZIP archive with 7-Zip...
|
|
|
|
ECHO.
|
|
|
|
ECHO Creating ZIP archive with 7-Zip...
|
2020-11-19 20:53:49 +01:00
|
|
|
PUSHD "src\ui\bin\Release"
|
2019-05-27 05:11:10 +02:00
|
|
|
IF EXIST "temp_zip" RD /S /Q "temp_zip"
|
|
|
|
IF NOT EXIST "temp_zip" MD "temp_zip"
|
|
|
|
IF NOT EXIST "temp_zip\Languages" MD "temp_zip\Languages"
|
|
|
|
IF NOT EXIST "temp_zip\Dictionaries" MD "temp_zip\Dictionaries"
|
|
|
|
IF NOT EXIST "temp_zip\Ocr" MD "temp_zip\Ocr"
|
2021-12-21 21:07:59 +01:00
|
|
|
IF NOT EXIST "temp_zip\Tesseract302" MD "temp_zip\Tesseract302"
|
|
|
|
IF NOT EXIST "temp_zip\Icons" MD "temp_zip\Icons"
|
2023-05-30 19:38:04 +02:00
|
|
|
IF NOT EXIST "temp_zip\Icons\DefaultTheme" MD "temp_zip\Icons\DefaultTheme"
|
2023-07-05 22:35:50 +02:00
|
|
|
IF NOT EXIST "temp_zip\Icons\DefaultTheme\VideoPlayer" MD "temp_zip\Icons\DefaultTheme\VideoPlayer"
|
2023-05-30 19:38:04 +02:00
|
|
|
IF NOT EXIST "temp_zip\Icons\DarkTheme" MD "temp_zip\Icons\DarkTheme"
|
2023-07-05 22:35:50 +02:00
|
|
|
IF NOT EXIST "temp_zip\Icons\DarkTheme\VideoPlayer" MD "temp_zip\Icons\DarkTheme\VideoPlayer"
|
2023-05-31 06:53:42 +02:00
|
|
|
IF NOT EXIST "temp_zip\Icons\Legacy" MD "temp_zip\Icons\Legacy"
|
2023-07-05 22:35:50 +02:00
|
|
|
IF NOT EXIST "temp_zip\Icons\Legacy\VideoPlayer" MD "temp_zip\Icons\Legacy\VideoPlayer"
|
2023-06-01 18:57:40 +02:00
|
|
|
IF NOT EXIST "temp_zip\Icons\Black" MD "temp_zip\Icons\Black"
|
2023-07-05 22:35:50 +02:00
|
|
|
IF NOT EXIST "temp_zip\Icons\Black\VideoPlayer" MD "temp_zip\Icons\Black\VideoPlayer"
|
2019-05-27 05:11:10 +02:00
|
|
|
|
|
|
|
ECHO.
|
2022-08-18 16:19:57 +02:00
|
|
|
COPY /Y /V "..\..\..\..\LICENSE.txt" "temp_zip\"
|
|
|
|
COPY /Y /V "..\..\..\..\Changelog.txt" "temp_zip\"
|
|
|
|
COPY /Y /V "..\..\..\..\preview.mkv" "temp_zip\"
|
|
|
|
COPY /Y /V "Hunspellx86.dll" "temp_zip\"
|
|
|
|
COPY /Y /V "Hunspellx64.dll" "temp_zip\"
|
|
|
|
COPY /Y /V "libse.dll" "temp_zip\"
|
|
|
|
COPY /Y /V "zlib.net.dll" "temp_zip\"
|
|
|
|
COPY /Y /V "NHunspell.dll" "temp_zip\"
|
|
|
|
COPY /Y /V "UtfUnknown.dll" "temp_zip\"
|
|
|
|
COPY /Y /V "Vosk.dll" "temp_zip\"
|
|
|
|
COPY /Y /V "NCalc.dll" "temp_zip\"
|
|
|
|
COPY /Y /V "..\..\DLLs\Interop.QuartzTypeLib.dll" "temp_zip\"
|
2023-08-26 08:37:06 +02:00
|
|
|
COPY /Y /V "System.Net.Http.Extensions.dll" "temp_zip\"
|
2022-08-18 16:19:57 +02:00
|
|
|
COPY /Y /V "Newtonsoft.Json.dll" "temp_zip\"
|
2023-08-26 08:37:06 +02:00
|
|
|
COPY /Y /V "System.Net.Http.Primitives.dll" "temp_zip\"
|
2022-09-20 07:39:46 +02:00
|
|
|
COPY /Y /V "NAudio.Core.dll" "temp_zip\"
|
|
|
|
COPY /Y /V "NAudio.WinMM.dll" "temp_zip\"
|
2022-11-04 22:19:13 +01:00
|
|
|
COPY /Y /V "Microsoft.Win32.Registry.dll" "temp_zip\"
|
2022-08-18 16:19:57 +02:00
|
|
|
COPY /Y /V "SubtitleEdit.exe" "temp_zip\"
|
|
|
|
COPY /Y /V "Languages\*.xml" "temp_zip\Languages\"
|
|
|
|
COPY /Y /V "..\..\..\..\Dictionaries\*.*" "temp_zip\Dictionaries\"
|
|
|
|
COPY /Y /V "..\..\..\..\Ocr\*.*" "temp_zip\Ocr\"
|
|
|
|
XCOPY /Y /V "..\..\..\..\Tesseract302\*.*" "temp_zip\Tesseract302\" /S
|
|
|
|
COPY /Y /V "..\..\..\..\Icons\*.ico" "temp_zip\Icons\"
|
2023-05-30 19:38:04 +02:00
|
|
|
COPY /Y /V "..\..\..\..\Icons\DefaultTheme\*.png" "temp_zip\Icons\DefaultTheme"
|
2023-07-05 22:35:50 +02:00
|
|
|
COPY /Y /V "..\..\..\..\Icons\DefaultTheme\VideoPlayer\*.png" "temp_zip\Icons\DefaultTheme\VideoPlayer"
|
2023-05-30 19:38:04 +02:00
|
|
|
COPY /Y /V "..\..\..\..\Icons\DarkTheme\*.png" "temp_zip\Icons\DarkTheme"
|
2023-07-05 22:35:50 +02:00
|
|
|
COPY /Y /V "..\..\..\..\Icons\DarkTheme\VideoPlayer\*.png" "temp_zip\Icons\DarkTheme\VideoPlayer"
|
2023-05-31 06:53:42 +02:00
|
|
|
COPY /Y /V "..\..\..\..\Icons\Legacy\*.png" "temp_zip\Icons\Legacy"
|
2023-07-05 22:35:50 +02:00
|
|
|
COPY /Y /V "..\..\..\..\Icons\Legacy\VideoPlayer\*.png" "temp_zip\Icons\Legacy\VideoPlayer"
|
2023-06-01 18:57:40 +02:00
|
|
|
COPY /Y /V "..\..\..\..\Icons\Black\*.png" "temp_zip\Icons\Black"
|
2023-07-05 22:35:50 +02:00
|
|
|
COPY /Y /V "..\..\..\..\Icons\Black\VideoPlayer\*.png" "temp_zip\Icons\Black\VideoPlayer"
|
2011-06-10 11:40:58 +02:00
|
|
|
|
|
|
|
PUSHD "temp_zip"
|
2019-05-27 05:11:10 +02:00
|
|
|
START "" /B /WAIT "%SEVENZIP%" a -tzip -mx=9 "SubtitleEdit-%VERSION%.zip" * >NUL
|
2011-06-10 11:40:58 +02:00
|
|
|
IF %ERRORLEVEL% NEQ 0 GOTO EndWithError
|
|
|
|
|
2019-05-27 05:11:10 +02:00
|
|
|
ECHO.
|
|
|
|
ECHO ZIP archive created successfully!
|
2020-11-19 20:53:49 +01:00
|
|
|
MOVE /Y "SubtitleEdit-%VERSION%.zip" "..\..\..\..\.." >NUL
|
2011-06-10 11:40:58 +02:00
|
|
|
POPD
|
|
|
|
IF EXIST "temp_zip" RD /S /Q "temp_zip"
|
|
|
|
POPD
|
2014-05-06 16:40:33 +02:00
|
|
|
|
2011-06-10 11:40:58 +02:00
|
|
|
EXIT /B
|
|
|
|
|
|
|
|
|
2014-08-10 08:53:38 +02:00
|
|
|
:SubGetVersion
|
2020-11-19 20:53:49 +01:00
|
|
|
FOR /F delims^=^"^ tokens^=2 %%A IN ('FINDSTR /R /C:"AssemblyVersion" "src\ui\Properties\AssemblyInfo.cs.template"') DO (
|
2019-05-27 23:39:57 +02:00
|
|
|
REM 3.4.1.[REVNO]
|
2014-08-10 08:53:38 +02:00
|
|
|
SET "VERSION=%%A"
|
|
|
|
)
|
2019-05-27 23:39:57 +02:00
|
|
|
REM 3.4.1: 0 from the left and -8 chars from the right
|
2014-08-10 08:53:38 +02:00
|
|
|
SET "VERSION=%VERSION:~0,-8%"
|
|
|
|
EXIT /B
|
|
|
|
|
|
|
|
|
2014-05-06 16:40:33 +02:00
|
|
|
:SubDetectSevenzipPath
|
|
|
|
FOR %%G IN (7z.exe) DO (SET "SEVENZIP_PATH=%%~$PATH:G")
|
|
|
|
IF EXIST "%SEVENZIP_PATH%" (SET "SEVENZIP=%SEVENZIP_PATH%" & EXIT /B)
|
|
|
|
|
|
|
|
FOR %%G IN (7za.exe) DO (SET "SEVENZIP_PATH=%%~$PATH:G")
|
|
|
|
IF EXIST "%SEVENZIP_PATH%" (SET "SEVENZIP=%SEVENZIP_PATH%" & EXIT /B)
|
2011-02-03 11:43:13 +01:00
|
|
|
|
2014-05-06 16:40:33 +02:00
|
|
|
FOR /F "tokens=2*" %%A IN (
|
2019-05-29 05:16:56 +02:00
|
|
|
'REG QUERY "HKLM\SOFTWARE\7-Zip" /v "Path" 2^>NUL ^|^|
|
|
|
|
REG QUERY "HKLM\SOFTWARE\Wow6432Node\7-Zip" /v "Path" 2^>NUL') DO IF "%%A" == "REG_SZ" SET "SEVENZIP=%%B\7z.exe"
|
2011-02-03 11:43:13 +01:00
|
|
|
EXIT /B
|
|
|
|
|
|
|
|
|
2014-05-06 16:40:33 +02:00
|
|
|
:SubDetectInnoSetup
|
2019-05-27 23:39:57 +02:00
|
|
|
FOR %%G IN (ISCC.exe) DO (SET "INNOSETUP_PATH=%%~$PATH:G")
|
|
|
|
IF EXIST "%INNOSETUP_PATH%" (SET "INNOSETUP=%INNOSETUP_PATH%" & EXIT /B)
|
|
|
|
|
2014-05-06 16:40:33 +02:00
|
|
|
FOR /F "tokens=5*" %%A IN (
|
2021-06-09 22:55:16 +02:00
|
|
|
'REG QUERY "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Inno Setup 6_is1" /v "Inno Setup: App Path" 2^>NUL ^|^|
|
|
|
|
REG QUERY "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Inno Setup 6_is1" /v "Inno Setup: App Path" 2^>NUL') DO IF "%%A" == "REG_SZ" SET "INNOSETUP=%%B\ISCC.exe"
|
2011-02-03 11:43:13 +01:00
|
|
|
EXIT /B
|