In general, you should use [#fileid] rather than constructing a string based
on TARGETDIR or INSTALLDIR, if you're installing the file you're
referencing.

 

Here, however, the .NET Framework is expecting a URL, using the file:
scheme.

 

-- 

Mike Dimmick

 

  _____  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Daryn Mitchell
Sent: 06 August 2007 23:47
To: 'Ahn Ahn Liu'; wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Problem with registering COM dll

 

I see that the use of [INSTALLDIR] in the registry entry - perhaps edited by
hand? - does not match the the TARGETDIR DirectoryRef.

This is not guaranteed to be an error, e.g. if you've ensured that the two
properties are equal, but it seems fragile.

You can check the installed registry entries to see if they have the full
path to WelcomeCOM.dll, or just the filename alone, to know if this is
causing an error.

 

Daryn.

 

  _____  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ahn Ahn Liu
Sent: Monday, August 06, 2007 3:34 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Problem with registering COM dll

 

I'm trying to register a COM component and followed the instruction on the
tutorial - running tallow -c WelcomeCOM.dll.

 

However, it does not appear to be successfully registering the object.

 

The tallow outputs:

 

<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi";>

  <Fragment>

    <DirectoryRef Id="TARGETDIR">

      <Component Id="component0" DiskId="1"
Guid="A8D11ADD-9C2B-48ca-B666-B930D9F932E0">

        <File Id="file0" Name="WELCOM_1.DLL" LongName="WelcomeCOM.dll"
Source="WelcomeCOM.dll" />

...

        <Registry Root="HKCR"
Key="CLSID\{20D0E68E-393C-11DC-8314-0800200C9A66}\InprocServer32"
Name="CodeBase" Value="[INSTALLDIR]WelcomeCOM.dll" Type="string" />

...

        <Registry Root="HKCR"
Key="CLSID\{20D0E68E-393C-11DC-8314-0800200C9A66}\InprocServer32\1.0.0.0"
Name="CodeBase" Value="[INSTALLDIR]WelcomeCOM.dll" Type="string" />

...

      </Component>

    </DirectoryRef>

  </Fragment>

</Wix>

 

 

Any suggestion?

-------------------------------------------------------------------------
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-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to