diff --git a/w32/Setup/FullVersion.cmd b/w32/Setup/FullVersion.cmd new file mode 100644 index 0000000000..5cbec6a7e2 --- /dev/null +++ b/w32/Setup/FullVersion.cmd @@ -0,0 +1,9 @@ +REM This script reads the configure.ac +REM and outputs a version parsing the AC_INIT line + +FOR /f "delims=" %%i in ('FIND /N "AC_INIT" ..\..\configure.ac') DO SET version_contained_string=%%i +FOR /f "tokens=2 delims=," %%a in ("%version_contained_string%") DO SET dirty_version=%%a +SET almost_clean_version=%dirty_version:[=% +SET version_with_spaces=%almost_clean_version:]=% +SET full_version=%version_with_spaces: =% +echo %full_version% \ No newline at end of file diff --git a/w32/Setup/Product.2015.wxs b/w32/Setup/Product.2015.wxs index 5c126c35b5..8cefee4210 100644 --- a/w32/Setup/Product.2015.wxs +++ b/w32/Setup/Product.2015.wxs @@ -27,7 +27,7 @@ - + diff --git a/w32/Setup/Setup.2015.wixproj b/w32/Setup/Setup.2015.wixproj index a2f76824fe..4c2dc0c9c2 100644 --- a/w32/Setup/Setup.2015.wixproj +++ b/w32/Setup/Setup.2015.wixproj @@ -1,7 +1,6 @@  - + - 3.5 {47213370-b933-487d-9f45-bca26d7e2b6f} 2.0 FreeSWITCH @@ -10,7 +9,7 @@ $(MSBuildExtensionsPath)\Microsoft\WiX\v3.x\Wix.targets - bin\Win32\Debug\ + bin\x86\Debug\ obj\X86\$(Configuration)\ Debug;FreeSWITCHConfFilesDir=$(ProjectDir)..\..\conf\vanilla;FreeSWITCHSoundFilesDir=$(ProjectDir)..\..\Win32\debug\sounds;FreeSWITCHBaseDir=$(SolutionDir)Win32\$(Configuration);PlatformDir=Win32; @@ -415,17 +414,46 @@ - + + "$(WixToolPath)\heat.exe" dir "$(ProjectDir)..\..\conf\vanilla" -cg FreeSWITCHConfFiles -gg -scom -sreg -sfrag -srd -dr CONFLOCATION -var var.FreeSWITCHConfFilesDir -out "$(ProjectDir)Fragments\FreeSWITCHConfFiles.wxs" +"$(WixToolPath)\heat.exe" dir "$(SolutionDir)Win32\$(Configuration)\sounds" -cg FreeSWITCHSoundFiles8 -gg -scom -sreg -sfrag -srd -dr SOUNDLOCATION -var var.FreeSWITCHSoundFilesDir -out "$(ProjectDir)Fragments\FreeSWITCHSoundFiles8.wxs" +"$(WixToolPath)\heat.exe" dir "$(SolutionDir)Win32\$(Configuration)" -t $(ProjectDir)filter.xslt -cg FreeSWITCHBaseFiles -gg -scom -sreg -sfrag -srd -dr INSTALLLOCATION -var var.FreeSWITCHBaseDir -out "$(ProjectDir)Fragments\FreeSWITCHBaseFiles.wxs" + + "$(WixToolPath)\heat.exe" dir "$(ProjectDir)..\..\conf\vanilla" -cg FreeSWITCHConfFiles -gg -scom -sreg -sfrag -srd -dr CONFLOCATION -var var.FreeSWITCHConfFilesDir -out "$(ProjectDir)Fragments\FreeSWITCHConfFiles.wxs" "$(WixToolPath)\heat.exe" dir "$(SolutionDir)x64\$(Configuration)\sounds" -cg FreeSWITCHSoundFiles8 -gg -scom -sreg -sfrag -srd -dr SOUNDLOCATION -var var.FreeSWITCHSoundFilesDir -out "$(ProjectDir)Fragments\FreeSWITCHSoundFiles8.wxs" "$(WixToolPath)\heat.exe" dir "$(SolutionDir)x64\$(Configuration)" -t $(ProjectDir)filter.xslt -cg FreeSWITCHBaseFiles -gg -scom -sreg -sfrag -srd -dr INSTALLLOCATION -var var.FreeSWITCHBaseDir -out "$(ProjectDir)Fragments\FreeSWITCHBaseFiles.wxs" + + + + + + + + + + + + + + + + + + + To modify your build process, add your task inside one of the targets below. + Other similar extension points exist, see Wix.targets. + --> + + + + + + + + + + \ No newline at end of file