Skip to content

Commit ace649d

Browse files
committed
fix installer issues.
1 parent 9e8c978 commit ace649d

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

Installer/Product.wxs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<WixVariable Id="WixUIExclamationIco" Value="Installer_Icon_32x32.ico" />
2121
<WixVariable Id="WixUINewIco" Value="Installer_Icon_16x16.ico" />
2222
<WixVariable Id="WixUIUpIco" Value="Installer_Icon_16x16.ico" />
23-
<WixVariable Id="WixUILicenseRtf" Value="$(var.SourceBase)\$(var.License)" />
23+
<WixVariable Id="WixUILicenseRtf" Value="$(var.License)" />
2424

2525
<Directory Id="TARGETDIR" Name="SourceDir">
2626
<Directory Id="ProgramFilesFolder">
@@ -63,15 +63,15 @@
6363

6464
<DirectoryRef Id="INSTALLDIR">
6565
<Component Id="c_License" Guid="*">
66-
<File Id="f_License" Name="License.rtf" Source="$(var.SourceBase)\$(var.License)"
66+
<File Id="f_License" Name="License.rtf" Source="$(var.License)"
6767
DiskId ="1" KeyPath="yes" />
6868
</Component>
6969
<Component Id="c_ReleaseNotes" Guid="*">
70-
<File Id="f_ReleaseNotes" Name="Release Notes.txt" Source="$(var.SourceBase)\$(var.ReleaseNotes)"
70+
<File Id="f_ReleaseNotes" Name="Release Notes.txt" Source="$(var.ReleaseNotes)"
7171
DiskId ="1" KeyPath="yes" />
7272
</Component>
7373
<Component Id="c_Help" Guid="*">
74-
<File Id="f_Help" Name="CSharpDriverDocs.chm" Source="$(var.SourceBase)\$(var.Documentation)"
74+
<File Id="f_Help" Name="CSharpDriverDocs.chm" Source="$(var.Documentation)"
7575
DiskId ="1" KeyPath="yes" />
7676
</Component>
7777
</DirectoryRef>

build/build.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ Properties {
4949
$nuspec_file = "$build_dir\mongocsharpdriver.nuspec"
5050
$nuspec_build_file = "$build_dir\mongocsharpdriverbuild.nuspec"
5151
$license_file = "$base_dir\License.txt"
52+
$license_file_rtf = "$base_dir\License.rtf"
5253
$version_file = "$artifacts_dir\version.txt"
5354
$chm_file = "$artifacts_dir\CSharpDriverDocs-$sem_version.chm"
5455
$release_notes_file = "$base_dir\Release Notes\Release Notes v$base_version.md"
@@ -193,7 +194,7 @@ Task Installer -precondition { (BuildHasBeenRun) -and (DocsHasBeenRun) } {
193194
$release_notes_relative_path = Get-Item $release_notes_file | Resolve-Path -Relative
194195
$doc_relative_path = Get-Item $chm_file | Resolve-Path -Relative
195196

196-
Exec { msbuild "$installer_file" /t:Rebuild /p:Configuration=$config /p:Version=$version /p:SemVersion=$sem_version /p:ProductId=$installer_product_id /p:UpgradeCode=$installer_upgrade_code /p:ReleaseNotes=$release_notes_relative_path /p:License="License.rtf" /p:Documentation=$doc_relative_path /p:OutputPath=$artifacts_dir /p:BinDir=$bin_dir}
197+
Exec { msbuild "$installer_file" /t:Rebuild /p:Configuration=$config /p:Version=$version /p:SemVersion=$sem_version /p:ProductId=$installer_product_id /p:UpgradeCode=$installer_upgrade_code /p:ReleaseNotes=$release_notes_file /p:License=$license_file_rtf /p:Documentation=$chm_file /p:OutputPath=$artifacts_dir /p:BinDir=$bin_dir}
197198

198199
rm -force $artifacts_dir\*.wixpdb
199200
}

0 commit comments

Comments
 (0)