WiX - Register ComPlus application and Assigning a role to a component -


i have installer registering complus component correctly. have 1 last requirement to: enforce component level access checks under roles have “user” role ticked.

i tried adding complus:compluscompoent child of complusassembly when installer fails error. (see below) not sure should put clsid, perhaps causing issue? can me out? explain should putting clsid?

error , wix snippet below note: if remove complus:compluscomponent element installer works fine: user ‘componentuser” defined higher up. role , user assigned in component not ticked.

msi (s) (68:bc) [16:25:08:579]: invoking remote custom action. dll: c:\windows\installer\msice31.tmp, entrypoint: complusinstallexecutecommit action 16:25:08: registercomplusassemblies. registering com+ components registercomplusassemblies: dll: c:\ntapps\mycompluscore\asa.da.insurance.dll complusinstallexecutecommit: error 0x80070490: failed find component object complusinstallexecutecommit: error 0x80070490: failed configure components complusinstallexecutecommit: error 0x80070490: failed register assembly, key: asa.da.insurance complusinstallexecutecommit: error 0x80070490: failed register assemblies

<complus:complusapplication id="asa.netcoredata3"                          name="asa.netcoredata3"                          description="asa .net core data components"                         applicationaccesschecksenabled="yes"                         accesscheckslevel="applicationcomponentlevel"                         authentication="packet"                         impersonationlevel="impersonate"                         activation="inproc">      <complus:complusapplicationrole id="asa.netcoredata3.role"                                  name ="user">         <complus:complususerinapplicationrole id="asa.netcoredata3.user"                                              user="componentuser" />     </complus:complusapplicationrole>      <complus:complusassembly id="asa.da.insurance"                              dllpath="[#asa.da.insurance_dll]"                             type="native"                             registerincommit="yes">         <complus:compluscomponent id="asa.da.insurance.com"                                 clsid="f8a83c94-9ab1-4c4d-8ebc-901aa747ac33"                                 description="asa.da.insurance.appinsurance"                                  componentaccesschecksenabled="yes" >             <complus:complusroleforcomponent id="asa.da.insurance.role"                                              applicationrole="asa.netcoredata3.role" />         </complus:compluscomponent>     </complus:complusassembly> </complus:complusapplication> 

yes clsid. in previous installers compoenet vb script used , projects did not need static clsid , specified in projects.

i needed add guid attribute concrete class , use guid in wix compluscomponent clsid.

hope helps someone.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -