diff options
author | Alex Zolotarev <deathbaba@gmail.com> | 2011-05-23 20:42:09 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:17:55 +0300 |
commit | 2f0e1dd4524177743bafb7120097428ac61eca1c (patch) | |
tree | 6bff0437ba50c53df5b5d8326498ec2892d8ab0e /installer/win | |
parent | 0632abea24706fe440172200fbfc1bad4b745431 (diff) |
[win] Draft version of WIX installer script
Diffstat (limited to 'installer/win')
-rw-r--r-- | installer/win/MapsWithMe.wxs | 43 | ||||
-rw-r--r-- | installer/win/makeSetup.bat | 11 |
2 files changed, 54 insertions, 0 deletions
diff --git a/installer/win/MapsWithMe.wxs b/installer/win/MapsWithMe.wxs new file mode 100644 index 0000000000..4e6cefa231 --- /dev/null +++ b/installer/win/MapsWithMe.wxs @@ -0,0 +1,43 @@ +<?xml version='1.0'?> +<Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'> + <Product Id='42180640-750C-4d9e-9087-519705C069D5' + Name='MapsWithMe' + Language='1033' + Version='1.0.0' + Manufacturer='MapsWithMe' + UpgradeCode='DFCB23C7-99B3-4228-93E5-625C48370982'> + + <Package Description='MapsWithMe - offline maps and travel guide' + Comments='Supports Windows XP SP3 and above' + Manufacturer='MapsWithMe' + InstallerVersion='300' + Compressed='yes' + InstallPrivileges='limited' + InstallScope='perUser' + Platform='x86' /> + + <Media Id='1' Cabinet='data.cab' EmbedCab='yes' /> + + <Directory Id='TARGETDIR' Name='SourceDir'> + <Directory Id='ProgramFilesFolder' Name='PFiles'> + <Directory Id='MapsWithMeDir' Name='MapsWithMe'> + <Component Id='MapsWithMe.exe' Guid='67852405-8C7C-4ec4-81E7-698CE3CD9A67'> + <File Id='MapsWithMe.exe' Name='MapsWithMe.exe' Source='..\..\..\omim-build-msvc2010\out\release\MapsWithMe.exe' DiskId='1' KeyPath='yes' Checksum='yes' /> + </Component> + </Directory> + </Directory> + </Directory> + + <Feature Id='MapsWithMeFeature' Title='MapsWithMe' Level='1'> + <ComponentRef Id='MapsWithMe.exe' /> + </Feature> + + <DirectoryRef Id="TARGETDIR"> + <Merge Id="VCRedist" SourceFile="\Program Files (x86)\Common Files\Merge Modules\Microsoft_VC100_CRT_x86.msm" DiskId="1" Language="0"/> + </DirectoryRef> + <Feature Id="VCRedist" Title="Visual C++ 10.0 Runtime" AllowAdvertise="no" Display="hidden" Level="1"> + <MergeRef Id="VCRedist"/> + </Feature> + + </Product> +</Wix> diff --git a/installer/win/makeSetup.bat b/installer/win/makeSetup.bat new file mode 100644 index 0000000000..6471080717 --- /dev/null +++ b/installer/win/makeSetup.bat @@ -0,0 +1,11 @@ +@echo on + +set PATH="C:\Program Files\Windows Installer XML v3.5\bin";%PATH% + +candle MapsWithMe.wxs + +if NOT ERRORLEVEL 0 echo "candle returned error %ERRORLEVEL%" + +light MapsWithMe.wixobj + +if NOT ERRORLEVEL 0 echo "light returned error %ERRORLEVEL%" |