diff options
| author | Sean Hall <r.sean.hall@gmail.com> | 2020-05-23 22:02:15 +1000 |
|---|---|---|
| committer | Sean Hall <r.sean.hall@gmail.com> | 2020-05-23 22:06:11 +1000 |
| commit | 2480d0ad4bf4f0dd841697d6d607bb35a0fd8161 (patch) | |
| tree | eeae44c10d400a509db879e8b88e8b93cf264011 /src/test/WixToolsetTest.WixCop/TestData | |
| parent | 049a5c80b1af9612c8484db177323be4444e7c8a (diff) | |
| download | wix-2480d0ad4bf4f0dd841697d6d607bb35a0fd8161.tar.gz wix-2480d0ad4bf4f0dd841697d6d607bb35a0fd8161.tar.bz2 wix-2480d0ad4bf4f0dd841697d6d607bb35a0fd8161.zip | |
Add test for wixcop handling util:PermissionEx/@Inheritable.
Diffstat (limited to 'src/test/WixToolsetTest.WixCop/TestData')
| -rw-r--r-- | src/test/WixToolsetTest.WixCop/TestData/PermissionEx/v3.wxs | 27 | ||||
| -rw-r--r-- | src/test/WixToolsetTest.WixCop/TestData/PermissionEx/v4_expected.wxs | 27 |
2 files changed, 54 insertions, 0 deletions
diff --git a/src/test/WixToolsetTest.WixCop/TestData/PermissionEx/v3.wxs b/src/test/WixToolsetTest.WixCop/TestData/PermissionEx/v3.wxs new file mode 100644 index 00000000..0e241544 --- /dev/null +++ b/src/test/WixToolsetTest.WixCop/TestData/PermissionEx/v3.wxs | |||
| @@ -0,0 +1,27 @@ | |||
| 1 | <?xml version="1.0" encoding="utf-8"?> | ||
| 2 | <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:util="http://schemas.microsoft.com/wix/UtilExtension"> | ||
| 3 | <Fragment> | ||
| 4 | <ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER"> | ||
| 5 | <Component> | ||
| 6 | <File Source="example.txt"> | ||
| 7 | <util:PermissionEx User="Everyone" GenericAll="yes" /> | ||
| 8 | </File> | ||
| 9 | <CreateFolder> | ||
| 10 | <util:PermissionEx User="Everyone" GenericAll="yes" /> | ||
| 11 | </CreateFolder> | ||
| 12 | <ServiceInstall Name="testsvc" Type="ownProcess" Start="disabled" ErrorControl="normal"> | ||
| 13 | <util:PermissionEx User="Everyone" GenericAll="yes" /> | ||
| 14 | </ServiceInstall> | ||
| 15 | <Registry Action="createKey" Root="HKLM" Key="TestKey"> | ||
| 16 | <util:PermissionEx User="Everyone" GenericAll="yes" /> | ||
| 17 | </Registry> | ||
| 18 | <RegistryKey Id="ExampleRegistryKey" ForceCreateOnInstall="yes" Root="HKLM" Key="TestRegistryKey"> | ||
| 19 | <util:PermissionEx User="Everyone" GenericAll="yes" /> | ||
| 20 | </RegistryKey> | ||
| 21 | <RegistryValue Root="HKLM" Key="TestRegistryValueKey" Value="abc"> | ||
| 22 | <util:PermissionEx User="Everyone" GenericAll="yes" /> | ||
| 23 | </RegistryValue> | ||
| 24 | </Component> | ||
| 25 | </ComponentGroup> | ||
| 26 | </Fragment> | ||
| 27 | </Wix> | ||
diff --git a/src/test/WixToolsetTest.WixCop/TestData/PermissionEx/v4_expected.wxs b/src/test/WixToolsetTest.WixCop/TestData/PermissionEx/v4_expected.wxs new file mode 100644 index 00000000..375b70d3 --- /dev/null +++ b/src/test/WixToolsetTest.WixCop/TestData/PermissionEx/v4_expected.wxs | |||
| @@ -0,0 +1,27 @@ | |||
| 1 | <?xml version="1.0" encoding="utf-8"?> | ||
| 2 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" xmlns:util="http://wixtoolset.org/schemas/v4/wxs/util"> | ||
| 3 | <Fragment> | ||
| 4 | <ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER"> | ||
| 5 | <Component> | ||
| 6 | <File Id="example.txt" Source="example.txt"> | ||
| 7 | <util:PermissionEx User="Everyone" GenericAll="yes" Inheritable="no" /> | ||
| 8 | </File> | ||
| 9 | <CreateFolder> | ||
| 10 | <util:PermissionEx User="Everyone" GenericAll="yes" /> | ||
| 11 | </CreateFolder> | ||
| 12 | <ServiceInstall Name="testsvc" Type="ownProcess" Start="disabled" ErrorControl="normal"> | ||
| 13 | <util:PermissionEx User="Everyone" GenericAll="yes" Inheritable="no" /> | ||
| 14 | </ServiceInstall> | ||
| 15 | <Registry Action="createKey" Root="HKLM" Key="TestKey"> | ||
| 16 | <util:PermissionEx User="Everyone" GenericAll="yes" Inheritable="no" /> | ||
| 17 | </Registry> | ||
| 18 | <RegistryKey Id="ExampleRegistryKey" ForceCreateOnInstall="yes" Root="HKLM" Key="TestRegistryKey"> | ||
| 19 | <util:PermissionEx User="Everyone" GenericAll="yes" Inheritable="no" /> | ||
| 20 | </RegistryKey> | ||
| 21 | <RegistryValue Root="HKLM" Key="TestRegistryValueKey" Value="abc"> | ||
| 22 | <util:PermissionEx User="Everyone" GenericAll="yes" Inheritable="no" /> | ||
| 23 | </RegistryValue> | ||
| 24 | </Component> | ||
| 25 | </ComponentGroup> | ||
| 26 | </Fragment> | ||
| 27 | </Wix> | ||
