Bad idea. Best practice is to run regasm /regfile:myasm.reg myasm.dll and
turn the resulting registry file into RegistryKey and RegistryValue
elements.

 

I believe tallow (v2) and heat (v3) can detect an assembly to be registered
for COM and generate Registry (tallow) or strongly-typed COM elements
(heat). For tallow use the -c switch, or -reg on the registry file, while
for heat it's the default when using 'heat file',  I think.

 

-- 

Mike Dimmick

 

  _____  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Abdullah Ahmed
Sent: 31 March 2008 19:39
To: WiX Users
Subject: [WiX-users] Regasm custom action Fails intermittently in Windows
XP64bit.

 

Hey Guys,

For an install we have a custom action in our wixscript performing Regasm in
windows xp x64 environment. The install periodically fails at that point.
Sometimes it works..sometimes it doesnt. When I try to run regasm manually
using the command prompt on the same dll it always works. 

Here is my custom action....

<CustomAction Id="CallRegASM" Directory="INSTALLDIR" Win64="no"
ExeCommand="&quot;[WindowsFolder]Microsoft.NET\Framework\v2.0.50727\regasm.e
xe&quot; /codebase
&quot;[ContentFilter]PNContentFilters.NetKPIDrawFilter.dll&quot;"
Return="check" />


It is being called in the <InstallExecuteSequence> like this.

<Custom Action="CallRegASM" After="InstallFinalize">NOT Installed</Custom>


The installer logs have the following in them...

Action start 10:36:08: CallRegASM.
MSI (s) (80:68) [10:36:13:109]: Note: 1: 1722 2: CallRegASM 3: C:\Program
Files (x86)\Matrikon\ProcessSuite\ProcessNet\ 4:
"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\regasm.exe" /codebase
"C:\Program Files
(x86)\Matrikon\ProcessSuite\ProcessNet\Web\NetKPI\ContentFilter\PNContentFil
ters.NetKPIDrawFilter.dll" 
MSI (c) (C8:9C) [10:36:13:125]: Font created.  Charset: Req=0, Ret=0, Font:
Req=MS Shell Dlg, Ret=MS Shell Dlg

Error 1722. There is a problem with this Windows Installer package. A
program run as part of the setup did not finish as expected. Contact your
support personnel or package vendor.  Action CallRegASM, location:
C:\Program Files (x86)\Matrikon\ProcessSuite\ProcessNet\, command:
"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\regasm.exe" /codebase
"C:\Program Files
(x86)\Matrikon\ProcessSuite\ProcessNet\Web\NetKPI\ContentFilter\PNContentFil
ters.NetKPIDrawFilter.dll" 
MSI (s) (80:68) [10:36:15:750]: Product: Matrikon NetKPI -- Error 1722.
There is a problem with this Windows Installer package. A program run as
part of the setup did not finish as expected. Contact your support personnel
or package vendor.  Action CallRegASM, location: C:\Program Files
(x86)\Matrikon\ProcessSuite\ProcessNet\, command:
"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\regasm.exe" /codebase
"C:\Program Files
(x86)\Matrikon\ProcessSuite\ProcessNet\Web\NetKPI\ContentFilter\PNContentFil
ters.NetKPIDrawFilter.dll" 

Action ended 10:36:15: CallRegASM. Return value 3.
Action ended 10:36:15: INSTALL. Return value 3.


As noted this does not happen all the time. 

Any ideas why this may be happening?
-- 
. Abdullah Ahmed
. [EMAIL PROTECTED] 

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to