mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
win_package: rewrite, check mode, tests, more check options (#27470)
* rewrite of win_package to enable win_msi deprecation * fix some minor doc issues * Removed exe tests * dag's changes seem to be missing, re-add them * fixed yaml for return values
This commit is contained in:
7
test/integration/targets/win_package/files/bad.wsx
Normal file
7
test/integration/targets/win_package/files/bad.wsx
Normal file
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
|
||||
<Product Id="223D9A13-653B-4231-A365-EDDC30B4F228" UpgradeCode="575580C0-AFA1-4C17-8A9C-3CB0CEDC6A06" Name="Bovine University" Manufacturer="Ansible" Version="1.0.0" Language="1033" Codepage="1252">
|
||||
<Package InstallerVersion="200" Compressed="yes" Comments="When I grow up I want to go to Bovine University" />
|
||||
<Media Id="1" Cabinet="product.cab" EmbedCab="yes" />
|
||||
</Product>
|
||||
</Wix>
|
||||
26
test/integration/targets/win_package/files/good.wsx
Normal file
26
test/integration/targets/win_package/files/good.wsx
Normal file
@@ -0,0 +1,26 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
|
||||
<Product Id="223D9A13-653B-4231-A365-EDDC30B4F226" UpgradeCode="575580C0-AFA1-4C17-8A9C-3CB0CEDC6A05" Name="Bovine University" Manufacturer="Ansible" Version="1.0.0" Language="1033" Codepage="1252">
|
||||
<Package InstallerVersion="200" Compressed="yes" Comments="When I grow up I want to go to Bovine University" />
|
||||
<Media Id="1" Cabinet="product.cab" EmbedCab="yes" />
|
||||
<Directory Id="TARGETDIR" Name="SourceDir">
|
||||
<Directory Id="ProgramFilesFolder">
|
||||
<Directory Id="INSTALLDIR" Name="Bovine University">
|
||||
<Component Id="MooFiles" Guid="D7BC586D-A23C-4002-BC20-76579F25C67D">
|
||||
<File Id="MooFile" Source="moo.exe" />
|
||||
</Component>
|
||||
<Component Id="CowFiles" Guid="D1801B2D-8E54-4F19-8B14-A42D8A122A24">
|
||||
<File Id="CowFile" Source="cow.exe" />
|
||||
</Component>
|
||||
</Directory>
|
||||
</Directory>
|
||||
</Directory>
|
||||
|
||||
<Feature Id="Moo" Level="1">
|
||||
<ComponentRef Id="MooFiles" />
|
||||
</Feature>
|
||||
<Feature Id="Cow" Level="1">
|
||||
<ComponentRef Id="CowFiles" />
|
||||
</Feature>
|
||||
</Product>
|
||||
</Wix>
|
||||
30
test/integration/targets/win_package/files/reboot.wsx
Normal file
30
test/integration/targets/win_package/files/reboot.wsx
Normal file
@@ -0,0 +1,30 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
|
||||
<Product Id="223D9A13-653B-4231-A365-EDDC30B4F227" UpgradeCode="575580C0-AFA1-4C17-8A9C-3CB0CEDC6A06" Name="Bovine University" Manufacturer="Ansible" Version="1.0.0" Language="1033" Codepage="1252">
|
||||
<Package InstallerVersion="200" Compressed="yes" Comments="When I grow up I want to go to Bovine University" />
|
||||
<Media Id="1" Cabinet="product.cab" EmbedCab="yes" />
|
||||
<Directory Id="TARGETDIR" Name="SourceDir">
|
||||
<Directory Id="ProgramFilesFolder">
|
||||
<Directory Id="INSTALLDIR" Name="Bovine University">
|
||||
<Component Id="MooFiles" Guid="D7BC586D-A23C-4002-BC20-76579F25C67D">
|
||||
<File Id="MooFile" Source="moo.exe" />
|
||||
</Component>
|
||||
<Component Id="CowFiles" Guid="D1801B2D-8E54-4F19-8B14-A42D8A122A24">
|
||||
<File Id="CowFile" Source="cow.exe" />
|
||||
</Component>
|
||||
</Directory>
|
||||
</Directory>
|
||||
</Directory>
|
||||
|
||||
<Feature Id="Moo" Level="1">
|
||||
<ComponentRef Id="MooFiles" />
|
||||
</Feature>
|
||||
<Feature Id="Cow" Level="1">
|
||||
<ComponentRef Id="CowFiles" />
|
||||
</Feature>
|
||||
|
||||
<InstallExecuteSequence>
|
||||
<ScheduleReboot After="InstallFinalize" />
|
||||
</InstallExecuteSequence>
|
||||
</Product>
|
||||
</Wix>
|
||||
Reference in New Issue
Block a user