# $version=(get-item .\Setup\KCOM.exe).VersionInfo.FileVersion # Out-File -FilePath .\Setup\propfile -InputObject "BUILD_NAME=$version" -Encoding ASCII # (get-content .\MARKUS.wxs) | % { $_ -replace '\$VERSION',$version} | Out-File .\MARKUS.wxs -Encoding ASCII # (get-content .\MARKUSx86.wxs) | % { $_ -replace '\$VERSION',$version} | Out-File .\MARKUSx86.wxs -Encoding ASCII # (get-content .\FinalService.wxs) | % { $_ -replace '\$VERSION',$version} | Out-File .\FinalService.wxs -Encoding ASCII # (get-content .\ConvertService.wxs) | % { $_ -replace '\$VERSION',$version} | Out-File .\ConvertService.wxs -Encoding ASCII # (get-content .\MARKUS_daelim.wxs) | % { $_ -replace '\$VERSION',$version} | Out-File .\MARKUS_daelim.wxs -Encoding ASCII # (get-content .\MARKUS_daelim_test.wxs) | % { $_ -replace '\$VERSION',$version} | Out-File .\MARKUS_daelim_test.wxs -Encoding ASCII # (get-content .\MARKUS_HyoSung_x86.wxs) | % { $_ -replace '\$VERSION',$version} | Out-File .\MARKUS_HyoSung_x86.wxs -Encoding ASCII # (get-content .\MARKUS_HyoSung_x64.wxs) | % { $_ -replace '\$VERSION',$version} | Out-File .\MARKUS_HyoSung_x64.wxs -Encoding ASCII # (get-content .\FinalService_daelim.wxs) | % { $_ -replace '\$VERSION',$version} | Out-File .\FinalService_daelim.wxs -Encoding ASCII # (get-content .\FinalService_SNI.wxs) | % { $_ -replace '\$VERSION',$version} | Out-File .\FinalService_SNI.wxs -Encoding ASCII # (get-content .\MARKUS_pemss.wxs) | % { $_ -replace '\$VERSION',$version} | Out-File .\MARKUS_pemss.wxs -Encoding ASCII # (get-content .\MARKUS_SNI.wxs) | % { $_ -replace '\$VERSION',$version} | Out-File .\MARKUS_SNI.wxs -Encoding ASCII # cmd.exe /c build.bat $version