Skip to content

Commit

Permalink
wix
Browse files Browse the repository at this point in the history
1. Add msm msvcrt2013
2. Add zh-CN
  • Loading branch information
chenguanzhou committed Feb 8, 2016
1 parent a510609 commit 0d0c93c
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 11 deletions.
3 changes: 3 additions & 0 deletions MarkDownEditor.Setup/MarkDownEditor.Setup.wixproj
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@
<Name>WixUIExtension</Name>
</WixExtension>
</ItemGroup>
<ItemGroup>
<Content Include="Microsoft_VC120_CRT_x86.msm" />
</ItemGroup>
<Import Project="$(WixTargetsPath)" />
<!--
To modify your build process, add your task inside one of the targets below and uncomment it.
Expand Down
34 changes: 25 additions & 9 deletions MarkDownEditor.Setup/Product.wxs
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,26 @@
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">
<?define MarkDownEditor_TargetDir=$(var.MarkDownEditor.TargetDir)?>
<Product Id="{41744844-6623-45C6-8239-DF0E8754B588}" Name="MarkDownEditor" Language="1033" Version="0.2.2" Manufacturer="Chen Guanzhou" UpgradeCode="5d30c639-0761-41c7-b4ef-e0c1b75eeb3f">
<Package Id="{3729D113-26F9-436F-BAFA-CAF699D0452F}" InstallerVersion="200" Compressed="yes" InstallScope="perMachine"/>
<Product Id="{0F039263-6539-45E8-8142-2CE005D6CC17}" Name="MarkDownEditor" Language="1033" Version="0.2.3" Manufacturer="Chen Guanzhou" UpgradeCode="5d30c639-0761-41c7-b4ef-e0c1b75eeb3f">
<Package Id="{201013C2-9026-4021-815C-16D9028C35BF}" InstallerVersion="405" Compressed="yes" InstallScope="perMachine"/>

<MajorUpgrade Schedule="afterInstallInitialize"
DowngradeErrorMessage="A later version of [ProductName] is already installed. Setup will now exit."/>
DowngradeErrorMessage="A later version of [ProductName] is already installed. Setup will now exit."/>

<MediaTemplate EmbedCab="yes"/>

<Feature Id="ProductFeature" Title="MarkDownEditor" Level="1">
<ComponentGroupRef Id="ProductComponents" />
<ComponentGroupRef Id="ZH_CN_Components" />
<ComponentRef Id="RegistryFileAssociation" />
<ComponentRef Id="ApplicationShortcut" />
<ComponentRef Id="DesktopFolderShortcut" />
</Feature>

<Feature Id="VCRedist" Title="Visual C++ 2013 Runtime" AllowAdvertise="no" Display="hidden" Level="1">
<MergeRef Id="VCRedist"/>
</Feature>

<PropertyRef Id="NETFRAMEWORK45"/>
<Condition Message="This application requires .NET Framework 4.5"> <![CDATA[Installed OR NETFRAMEWORK45]]> </Condition>

Expand All @@ -29,26 +34,29 @@
</UI>
<Property Id="WIXUI_INSTALLDIR" Value="INSTALLFOLDER" />
<UIRef Id="WixUI_ErrorProgressText" />

<Property Id="WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT" Value="Launch MarkDownEditor" />
<Property Id="WixShellExecTarget" Value="[INSTALLFOLDER]MarkDownEditor.exe" />
<CustomAction Id="LaunchApplication"
BinaryKey="WixCA"
DllEntry="WixShellExec"
Impersonate="yes" />

</Product>

<Fragment>
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFilesFolder">
<Directory Id="INSTALLFOLDER" Name="MarkDownEditor" />
<Directory Id="INSTALLFOLDER" Name="MarkDownEditor">
<Directory Id="ZH_CN_FOLDER" Name="zh-CN"></Directory>
</Directory>
</Directory>
<Directory Id="ProgramMenuFolder">
<Directory Id="ApplicationProgramsFolder" Name="MarkDownEditor"/>
<Directory Id="ApplicationProgramsFolder" Name="MarkDownEditor">
</Directory>
</Directory>
<Directory Id="DesktopFolder" Name="Desktop" />
</Directory>
</Directory>
</Fragment>

<Fragment>
Expand Down Expand Up @@ -92,6 +100,9 @@
<RegistryValue Root="HKCU" Key="Software\Microsoft\MarkDownEditor" Name="installed" Type="integer" Value="1" KeyPath="yes"/>
</Component>
</DirectoryRef>
<DirectoryRef Id="INSTALLFOLDER">
<Merge Id="VCRedist" SourceFile="Microsoft_VC120_CRT_x86.msm" DiskId="1" Language="0"/>
</DirectoryRef>
</Fragment>

<Fragment>
Expand Down Expand Up @@ -139,5 +150,10 @@
Arguments="/x [ProductCode]"/>
</Component>
</ComponentGroup>
<ComponentGroup Id="ZH_CN_Components" Directory="ZH_CN_FOLDER">
<Component Id="ZH_CN_Component" Guid="{81460AA3-D569-4DA4-977B-BCC9383AD3E5}">
<File Id="MarkDownEditor.resources.dll" Name="MarkDownEditor.resources.dll" Source="$(var.MarkDownEditor_TargetDir)zh-CN/MarkDownEditor.resources.dll" />
</Component>
</ComponentGroup>
</Fragment>
</Wix>
4 changes: 2 additions & 2 deletions MarkDownEditor/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.2.2.0")]
[assembly: AssemblyFileVersion("0.2.2.0")]
[assembly: AssemblyVersion("0.2.3.0")]
[assembly: AssemblyFileVersion("0.2.3.0")]

0 comments on commit 0d0c93c

Please sign in to comment.