Bugs item #1560158, was opened at 2006-09-17 07:05
Message generated for change (Settings changed) made by pmarcu
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: Pending
>Resolution: Works For Me
Priority: 5
Private: No
Submitted By: Hilko_Lantinga (hilko_lantinga)
Assigned to: pmarcu (pmarcu)
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: Lewis Gordon Pringle, Jr. (lewispringle)
Date: 2007-05-01 18:44

Message:
Logged In: YES 
user_id=154524
Originator: NO

I just tried this on the latest 3.0 daily build (3.0.2813.0) - and though
I get no error message, I don't see the permission element being
lockpermissions table.

I also tried to 'workaround' - using PermissionEx - but though it
compiles, the element still doesn't make it into the lockpermissions
table.


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

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

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

Never mind that last remark (Why does the Bug Close?) I forgot to set the
resolution. And the error does not occur after installing the last 3.0
version, but the registry lockpermissions won't be added. (file
lockpermissions do work in the same file)

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

Comment By: Hilko_Lantinga (hilko_lantinga)
Date: 2007-01-15 08:11

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

Why does the Bug Close?

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

Comment By: Hilko_Lantinga (hilko_lantinga)
Date: 2007-01-15 07: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-21 15: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

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
WiX-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-devs

Reply via email to