Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- RemovePreviousVersions True
- DetectNewerInstalledVersion True
- uuidgen -c
- REM
- REM Batch file to set the release number and version number for a production release
- REM
- REM
- if not defined RELEASE_VERSION exit /b 1
- if not defined BUILD_NUMBER exit /b 1
- if not defined SVN_REVISION exit /b 1
- set SDKBIN=%PROGRAMFILES%Microsoft SDKsWindowsv7.0ABin
- if defined PROGRAMFILES(X86) Set SDKBIN=%PROGRAMFILES(X86)%Microsoft SDKsWindowsv7.0ABin
- REM Change the version details in the WindowsInstaller project
- fart WindowsInstallerWindowsInstaller.vdproj ""ProductVersion" = "8:1.0.0"" ""ProductVersion" = "8:%RELEASE_VERSION%.%BUILD_NUMBER%""
- if %ERRORLEVEL%==0 exit /b 1
- for /f %%i in ('"%SDKBIN%uuidgen" -c') do set PRODUCTCODE=%%i
- if not defined PRODUCTCODE exit /b 2
- fart WindowsInstallerWindowsInstaller.vdproj ""ProductCode" = "8:{2DD6303F-BF0C-4CD5-9AAC-171C577FFEAD}"" ""ProductCode" = "8:{%PRODUCTCODE%}""
- if %ERRORLEVEL%==0 exit /b 1
- exit /b 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement