HKLM\Software\Windows\Microsoft.NET\Framework\v1.1.4322 is NOT a COM 
registration. A COM registration would include registry keys similar to these 
(values not included):

*         HKCR\CLSID\{576bdc7a-1b68-444b-8ea9-5c07d88b1ff2}\InprocServer32

*         HKCR\CLSID\{576bdc7a-1b68-444b-8ea9-5c07d88b1ff2}\ProgID

*         HKCR\DLFetcher.RetreiveDL

In WiX source, you can get these keys created using code like this (I don't 
know which of your guids is your CLSID, so I can't fill it in for you):

<Component Id="DlFetcher" Guid="{Component-GUID-HERE}" Location="local">
                                                                        <File 
KeyPath="yes" Id="InstallDlfetcher"
                                                                                
    Name="DLFetcher.dll"
                                                                                
    DiskId="1"
                                                                                
    Source="D:\DLFetcher_July10\DLFetcher.dll" Assembly=".net">

                                                                            
<Class Id="{CLSID-GUID-HERE}"
                                                                                
 Context="InprocServer32">
                                                                                
 <ProgId Id="DLFetcher.RetreiveDL.1">
                                                                                
     <ProgId Id="DLFetcher.RetreiveDL"/>
                                                                                
 </ProgId>
                                                                            
</Class>
                                                                        </File>
                                                            </Component>

There are tutorials online on deployment of  .Net and COM using WiX.

From: Poornima S [mailto:[EMAIL PROTECTED]
Sent: Monday, August 11, 2008 4:11 AM
To: Blair Murri; wix-users@lists.sourceforge.net
Subject: RE: Re: [WiX-users] Call a .NET dll file in wix using custom


Hi,

I added a COM registration to my wix file as follows:

<Component Id="DlFetcher" Guid="{235B5F90-EC82-4ce7-B433-8E4269A409EC}" 
Location="local">
                                                                        <File 
KeyPath="yes" Id="InstallDlfetcher"
                                                                                
    Name="DLFetcher.dll"
                                                                                
    DiskId="1"
                                                                                
    Source="D:\DLFetcher_July10\DLFetcher.dll" Assembly=".net">
                                                                        </File>

                                                                        
<RegistryValue
                                                                        
Root="HKLM"
                                                                        
Key="Software\WINDOWS\Microsoft.NET\Framework\v1.1.4322"
                                                                        
Name="{0F599288-CA74-467c-83CF-B853254159C7}"
                                                                        
Type="string" Value="D:\DLFetcher_July10\DLFetcher.dll"
                                                                        
Action="write"/>

                                                            </Component>


But still when when I try to run a html file, I am getting the same problem:

DLFetcher Component is not registered[object error]

Can you please help me out in solving this issue further..

Regards,
Poornima.S


Message: 6
Date: Sun, 10 Aug 2008 22:28:15 -0700
From: Blair Murri <[EMAIL PROTECTED]>
Subject: Re: [WiX-users] Call a .NET dll file in wix using custom
To: General discussion for Windows Installer XML toolset.
      <wix-users@lists.sourceforge.net>
Message-ID:
      <[EMAIL PROTECTED]>

Content-Type: text/plain; charset="us-ascii"

GAC registration is only one part of the registration you have in your sample 
batch file, the other part is COM registration. Please add your COM 
registration (registry) to your wix sources. IE/javascript do not look in the 
GAC, they look in the COM portion of the registry for the objects they access.

________________________________________
From: [EMAIL PROTECTED] [EMAIL PROTECTED] On Behalf Of Poornima S [EMAIL 
PROTECTED]
Sent: Wednesday, August 06, 2008 5:08 AM
To: Neil Enns; wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Call a .NET dll file in wix using custom

But still I have a problem when I try to run a html file, although DLfetcher is 
registered in gac, issue is as follows:

DLFetcher Component is not registered[object error]


Html file:
<html>
<body>
<script language="javascript">
try
{
        ob1 = new ActiveXObject("DLFetcher.RetreiveDL");
        alert(ob1);
        if(ob1!=null)
        {

                username=ob1.GetUserName();
                //alert("Windows : "+username);
                var IsUserValid=ob1.IsUserExist(username);
                if(IsUserValid)
                {
                alert("UserName is available ");
                var arDL=ob1.GetDLforUserAsString("baijuv");
                if(arDL.length==0)
                {
                        alert("Invalid User");
                }
                else
                {
                alert(arDL);
                }
                }
                else
                {
                alert("User is not avaliable in the Domain Control to connect 
to Active Directory");
                }

        }
}
catch(e)
{
        alert("DLFetcher component is not registered "+e); } </script> </body> 
</html>

Can you please suggest me further, what changes can I do in wix so that the 
dlfetcher component gets registered.

But when I try to run a batch file as follows:

c:
cd C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322
regasm "D:\DLFetcher_July10\DLFetcher.dll"
gacutil /i "D:\DLFetcher_July10\DLFetcher.dll"
pause

the registry is happening in gac, as well as when I try to run my html file, no 
issues are coming... So can you please suggest me a way to do this procedure in 
wix...

Thanks in advance....

Regards,
Poornima.S



This email message and its attachments may contain CONFIDENTIAL AND PRIVILEGED 
INFORMATION intended for the sole use of the addressee(s). If you have received 
it in error, please contact the sender by return email, notify your system 
manager and destroy the original message and any copies thereof. Any review, 
use, disclosure or distribution is unlawful. Please check this email and any 
attachments for the presence of viruses. The Company accepts no liability for 
any damage caused by any virus transmitted by this email. The views or opinions 
presented in this e-mail are solely those of the author and do not necessarily 
represent those of the company.
The Company reserves the right to monitor, review and store the content of all 
messages sent to or from this e-mail address.

www.aztecsoft.com


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to