forked from wixtoolset/wix
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix publish-nuget condition
- Loading branch information
Showing
8 changed files
with
197 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
...ePackageTests/PerMachineDetectVersionExePackage/PerMachineDetectVersionExePackage.wixproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<!-- Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. --> | ||
<Project Sdk="PanelSwWix4.Sdk"> | ||
<PropertyGroup> | ||
<OutputType>Bundle</OutputType> | ||
<InstallerPlatform>x64</InstallerPlatform> | ||
<BA>TestBA_x64</BA> | ||
<UpgradeCode>{5923A558-091E-4015-A9CC-BA92E7A2405A}</UpgradeCode> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Compile Include="..\..\Templates\Bundle.wxs" Link="Bundle.wxs" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ProjectReference Include="..\..\TestBA\TestBAWixlib_x64\testbawixlib_x64.wixproj" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<PackageReference Include="PanelSwWix4.Bal.wixext" /> | ||
<PackageReference Include="PanelSwWix4.NetFx.wixext" /> | ||
<PackageReference Include="PanelSwWix4.Util.wixext" /> | ||
</ItemGroup> | ||
</Project> |
19 changes: 19 additions & 0 deletions
19
...a/ExePackageTests/PerMachineDetectVersionExePackage/PerMachineDetectVersionExePackage.wxs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<!-- Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. --> | ||
|
||
<?define ArpId = {4D9EC36A-1E63-4244-875C-3ECB0A2CAE30}?> | ||
<?define ArpKeyPath = HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(var.ArpId)?> | ||
<?define ArpVersion = 1.0.0.0?> | ||
|
||
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" xmlns:util="http://wixtoolset.org/schemas/v4/wxs/util"> | ||
<Fragment> | ||
<util:RegistrySearch Bitness="always64" Key="SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(var.ArpId)" Root="HKLM" Value="DisplayVersion" Variable="TestExeDetectedVersion"/> | ||
|
||
<PackageGroup Id="BundlePackages"> | ||
<ExePackage Id="TestExe" PerMachine="yes" | ||
InstallArguments="/regw "$(var.ArpKeyPath),DisplayVersion,String,$(var.ArpVersion)" /regw "$(var.ArpKeyPath),QuietUninstallString,String,\"[WixBundleExecutePackageCacheFolder]testexe.exe\" /regd \"$(var.ArpKeyPath)\""" | ||
DetectVersionVariable="TestExeDetectedVersion" Version="$(var.ArpVersion)"> | ||
<PayloadGroupRef Id="TestExePayloads_x64" /> | ||
</ExePackage> | ||
</PackageGroup> | ||
</Fragment> | ||
</Wix> |
19 changes: 19 additions & 0 deletions
19
...PerMachineDetectVersionExePackageFailure/PerMachineDetectVersionExePackageFailure.wixproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<!-- Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. --> | ||
<Project Sdk="PanelSwWix4.Sdk"> | ||
<PropertyGroup> | ||
<OutputType>Bundle</OutputType> | ||
<UpgradeCode>{6436F747-08F7-416F-BE92-DB48F282AFC1}</UpgradeCode> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Compile Include="..\..\Templates\Bundle.wxs" Link="Bundle.wxs" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ProjectReference Include="..\..\TestBA\TestBAWixlib\testbawixlib.wixproj" /> | ||
<ProjectReference Include="..\PackageFail\PackageFail.wixproj" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<PackageReference Include="PanelSwWix4.Bal.wixext" /> | ||
<PackageReference Include="PanelSwWix4.NetFx.wixext" /> | ||
<PackageReference Include="PanelSwWix4.Util.wixext" /> | ||
</ItemGroup> | ||
</Project> |
21 changes: 21 additions & 0 deletions
21
...sts/PerMachineDetectVersionExePackageFailure/PerMachineDetectVersionExePackageFailure.wxs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<!-- Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. --> | ||
|
||
<?define ArpId = {80E90929-EEA5-48A7-A680-A0237A1CAD84}?> | ||
<?define ArpKeyPath = HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(var.ArpId)?> | ||
<?define ArpVersion = 1.0.0.0?> | ||
|
||
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" xmlns:util="http://wixtoolset.org/schemas/v4/wxs/util"> | ||
<Fragment> | ||
<util:RegistrySearch Bitness="always32" Key="SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(var.ArpId)" Root="HKLM" Value="DisplayVersion" Variable="TestExeDetectedVersion"/> | ||
|
||
<PackageGroup Id="BundlePackages"> | ||
<ExePackage Id="TestExe" PerMachine="yes" | ||
InstallArguments="/regw "$(var.ArpKeyPath),DisplayVersion,String,$(var.ArpVersion)" /regw "$(var.ArpKeyPath),QuietUninstallString,String,\"[WixBundleExecutePackageCacheFolder]testexe.exe\" /regd \"$(var.ArpKeyPath)\""" | ||
DetectVersionVariable="TestExeDetectedVersion" Version="$(var.ArpVersion)"> | ||
|
||
<PayloadGroupRef Id="TestExePayloads" /> | ||
</ExePackage> | ||
<MsiPackage Id="PackageFail" SourceFile="$(var.PackageFail.TargetPath)" /> | ||
</PackageGroup> | ||
</Fragment> | ||
</Wix> |
19 changes: 19 additions & 0 deletions
19
...rsionExePackageUninstallFailure/PerMachineDetectVersionExePackageUninstallFailure.wixproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<!-- Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. --> | ||
<Project Sdk="PanelSwWix4.Sdk"> | ||
<PropertyGroup> | ||
<OutputType>Bundle</OutputType> | ||
<UpgradeCode>{799DF604-49CB-4B2C-9FD9-A1C4F93A2FDE}</UpgradeCode> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Compile Include="..\..\Templates\Bundle.wxs" Link="Bundle.wxs" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ProjectReference Include="..\..\TestBA\TestBAWixlib\testbawixlib.wixproj" /> | ||
<ProjectReference Include="..\PackageTestExe\PackageTestExe.wixproj" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<PackageReference Include="PanelSwWix4.Bal.wixext" /> | ||
<PackageReference Include="PanelSwWix4.NetFx.wixext" /> | ||
<PackageReference Include="PanelSwWix4.Util.wixext" /> | ||
</ItemGroup> | ||
</Project> |
25 changes: 25 additions & 0 deletions
25
...ctVersionExePackageUninstallFailure/PerMachineDetectVersionExePackageUninstallFailure.wxs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<!-- Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. --> | ||
|
||
<?define ArpId = {2BE9DAA8-E202-4E42-B25E-B39AA987A59C}?> | ||
<?define ArpKeyPath = HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(var.ArpId)?> | ||
<?define ArpVersion = 1.0.0.0?> | ||
<?define TestExePath = [ProgramFilesFolder]~Test WiX\$(var.TestGroupName)\PackageTestExe\testexe.exe?> | ||
|
||
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" xmlns:bal="http://wixtoolset.org/schemas/v4/wxs/bal" xmlns:util="http://wixtoolset.org/schemas/v4/wxs/util"> | ||
<Fragment> | ||
<Variable Name="FAILWHENDEFERRED" bal:Overridable="yes" /> | ||
<util:RegistrySearch Bitness="always32" Key="SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(var.ArpId)" Root="HKLM" Value="DisplayVersion" Variable="TestExeDetectedVersion"/> | ||
|
||
<PackageGroup Id="BundlePackages"> | ||
<MsiPackage Id="PackageTestExe" SourceFile="$(var.PackageTestExe.TargetPath)"> | ||
<MsiProperty Name="WIXFAILWHENDEFERRED" Value="[FAILWHENDEFERRED]" /> | ||
</MsiPackage> | ||
<ExePackage Id="TestExe" PerMachine="yes" | ||
InstallArguments="/regw "$(var.ArpKeyPath),DisplayVersion,String,$(var.ArpVersion)" /regw "$(var.ArpKeyPath),QuietUninstallString,String,\"$(var.TestExePath)\" /regd \"$(var.ArpKeyPath)\""" | ||
DetectVersionVariable="TestExeDetectedVersion" Version="$(var.ArpVersion)"> | ||
|
||
<PayloadGroupRef Id="TestExePayloads" /> | ||
</ExePackage> | ||
</PackageGroup> | ||
</Fragment> | ||
</Wix> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters