Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2014
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. RemovePreviousVersions True
  2. DetectNewerInstalledVersion True
  3.  
  4. uuidgen -c
  5.  
  6. REM
  7. REM Batch file to set the release number and version number for a production release
  8. REM
  9. REM
  10.  
  11. if not defined RELEASE_VERSION exit /b 1
  12. if not defined BUILD_NUMBER exit /b 1
  13. if not defined SVN_REVISION exit /b 1
  14.  
  15. set SDKBIN=%PROGRAMFILES%Microsoft SDKsWindowsv7.0ABin
  16. if defined PROGRAMFILES(X86) Set SDKBIN=%PROGRAMFILES(X86)%Microsoft SDKsWindowsv7.0ABin
  17.  
  18. REM Change the version details in the WindowsInstaller project
  19.  
  20. fart WindowsInstallerWindowsInstaller.vdproj ""ProductVersion" = "8:1.0.0"" ""ProductVersion" = "8:%RELEASE_VERSION%.%BUILD_NUMBER%""
  21.  
  22. if %ERRORLEVEL%==0 exit /b 1
  23.  
  24. for /f %%i in ('"%SDKBIN%uuidgen" -c') do set PRODUCTCODE=%%i
  25.  
  26. if not defined PRODUCTCODE exit /b 2
  27.  
  28. fart WindowsInstallerWindowsInstaller.vdproj ""ProductCode" = "8:{2DD6303F-BF0C-4CD5-9AAC-171C577FFEAD}"" ""ProductCode" = "8:{%PRODUCTCODE%}""
  29.  
  30. if %ERRORLEVEL%==0 exit /b 1
  31.  
  32. exit /b 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement