Bugs item #1560158, was opened at 2006-09-17 16:05
Message generated for change (Comment added) made by hilko_lantinga
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=642714&aid=1560158&group_id=105970

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: candle
Group: None
>Status: Open
Resolution: Fixed
Priority: 5
Private: No
Submitted By: Hilko_Lantinga (hilko_lantinga)
Assigned to: Bob Arnson (barnson)
Summary: Unable to use the Permission Element under Registry

Initial Comment:
error CNDL0107 : Schema validation failed with the 
following error: Het element RegistryKey in 
naamruimte http://schemas.microsoft.com/wix/2006/wi 
heeft een ongeldig onderliggend element Permission in 
naamruimte http://schemas.microsoft.com/wix/2006/wi. 
Lijst van mogelijke verwachte elementen: 'RegistryKey 
RegistryValue ##other:*'.


               <Component Id="MyMovies.dll" 
Guid="{903B25E4-55BF-4CA5-A0A8-1463AAAC7396}">
                            <File Id="MyMovies.dll" 
Name="MyMovies.dll" Assembly=".net" 
AssemblyManifest="MyMovies.dll" 
AssemblyApplication="MyMovies.dll" KeyPath="yes" 
Source="D:\My Movies 2.01 Source Code\My DVD 
Collection Deployment\Application\MyMovies.dll" />
                            <RegistryKey 
Id="registry61" Action="createAndRemoveOnUninstall" 
Key="SOFTWARE\My Movies" Root="HKLM">
                                <Permission 
User="Everyone" Read="yes" Delete="yes" 
ReadPermission="yes" ChangePermission="yes" 
TakeOwnership="yes" Write="yes" CreateSubkeys="yes" 
EnumerateSubkeys="yes" Notify="yes" 
CreateLink="yes" />
                            </RegistryKey>

----------------------------------------------------------------------

>Comment By: Hilko_Lantinga (hilko_lantinga)
Date: 2007-01-15 16:58

Message:
Logged In: YES 
user_id=1470437
Originator: YES

While this doesn't create an error anymore, it still doesn't work. It
won't be in the lockpermissions table, also with the workaround of
mikedimmick.

----------------------------------------------------------------------

Comment By: Mike Dimmick (mikedimmick)
Date: 2006-09-22 00:33

Message:
Logged In: YES 
user_id=1040952

For support queries, see the wix-users mailing list.

This appears to be an error in the schema: <RegistryKey> 
does not list <Permission> as a permitted child element. 
The 'xsd:any' element restricts the extensions to coming 
from any other namespace.

As a workaround, you can use <PermissionEx> from the 
http://schemas.microsoft.com/wix/UtilExtension namespace. 
Declare the namespace in the root Wix element, and use it 
like so:

<Wix xmlns='http://schemas.microsoft.com/wix/2006/wi' 
xmlns:util='http://schemas.microsoft.com/wix/UtilExtension'>
  <Fragment>
    <Component ...>
      <File ... />
      <RegistryKey ...>
        <util:PermissionEx ... />
      </RegistryKey>
    </Component>
  </Fragment>
</Wix>

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=642714&aid=1560158&group_id=105970

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-devs

Reply via email to