Skip to content

Commit

Permalink
added script to create new installer and updated output name
Browse files Browse the repository at this point in the history
  • Loading branch information
shiftbot committed Apr 22, 2012
1 parent 6e42e9e commit a91ddcc
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
18 changes: 18 additions & 0 deletions create-installer.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
@ECHO OFF

CALL rmdir "%~dp0artifacts\" /s /q

SET msbuild="%windir%\Microsoft.NET\Framework\v4.0.30319\msbuild.exe"

SET configuration=Release
SET platform="Mixed Platforms"

:: Build the solution. Override the platform to account for running
:: from Visual Studio Tools command prompt (x64). Log quietly to the
:: console and verbosely to a file.
%msbuild% src/MarkPad.Setup.sln /nologo /property:Platform=%platform% /property:Configuration=%configuration% /verbosity:minimal /flp:verbosity=diagnostic

:: get build output and copy out to root
CALL xcopy "%~dp0src\MarkPad.Setup\bin\Release\*.msi" "%~dp0artifacts\" /s /e /Y

IF NOT ERRORLEVEL 0 EXIT /B %ERRORLEVEL%
4 changes: 2 additions & 2 deletions src/MarkPad.Setup/MarkPad.Setup.wixproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<ProductVersion>3.5</ProductVersion>
<ProjectGuid>{26a121eb-bd0d-48e7-a70f-0fc99e941786}</ProjectGuid>
<SchemaVersion>2.0</SchemaVersion>
<OutputName>MarkPad.Setup</OutputName>
<OutputName>MarkPad</OutputName>
<OutputType>Package</OutputType>
<WixTargetsPath Condition=" '$(WixTargetsPath)' == '' AND '$(MSBuildExtensionsPath32)' != '' ">$(MSBuildExtensionsPath32)\Microsoft\WiX\v3.x\Wix.targets</WixTargetsPath>
<WixTargetsPath Condition=" '$(WixTargetsPath)' == '' ">$(MSBuildExtensionsPath)\Microsoft\WiX\v3.x\Wix.targets</WixTargetsPath>
Expand Down Expand Up @@ -59,6 +59,6 @@
<GetAssemblyIdentity AssemblyFiles="..\MarkPad\bin\$(Configuration)\MarkPad.exe">
<Output TaskParameter="Assemblies" ItemName="AssemblyVersion" />
</GetAssemblyIdentity>
<Move SourceFiles="$(OutputPath)\$(TargetName)$(TargetExt)" DestinationFiles="$(OutputPath)\$(TargetName).v%(AssemblyVersion.Version)$(TargetExt)" />
<Move SourceFiles="$(OutputPath)\$(TargetName)$(TargetExt)" DestinationFiles="$(OutputPath)\$(TargetName).v%(AssemblyVersion.Version)$(TargetExt)" />
</Target>
</Project>

0 comments on commit a91ddcc

Please sign in to comment.