Best practice is to avoid self-registration - Windows Installer cannot
repair what it does not know about.

WiX does not provide any tools to extract registration information from
EXEs, only DLLs. This is due to a limitation on the technique used. Some
people have reported success with RegCap.exe, a utility that ships with
Visual Studio (in Common7\Tools\Deployment), although this utility is
undocumented. You can then convert the resulting .reg file with Tallow,
although this will generate <Registry> elements rather than the typed Class,
Interface, TypeLib elements.

I would generally not recommend relying on captures of self-registration
code either, however. The results can be to register more than is really
necessary or for parts of the self-registration code to fail if used in the
unusual environment of registry-capture utilities. (Heat and tallow have
particular problems with DLLs using the DLL version of the Visual C++ 2005 C
runtime, because the registry keys required to load the side-by-side version
of the CRT are not present in the canary environment supplied to the
self-registration code).

If you possibly can, look at what the self-registration code is doing and
turn that into WiX script by hand. Use the Class/@Advertise='No' attribute
to make readable scripts which still use the Registry table underneath - see
Rob's blog entry
http://robmensching.com/blog/archive/2007/03/12/RobMens-Recommendation-Do-no
t-advertise-COM-information-in-MSI.aspx for why you would not want to
Advertise your COM information.

-- 
Mike Dimmick

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of /antoine
Sent: 03 May 2007 00:49
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] wix com registration: out of proc server


Thanks for your reply.
app is not an assembly, just a plain com out of proc server.

/antoine wrote:
> 
> Hi,
> 
> i have got an out of proc com server app.exe that an installer must
> install 
> and register.
> 
> how to instruct wix to do the registration?
> 
> the installer needs to accomplish the same effect as:
> 
> app.exe -regserver at install and
> app.exe -regserver at un-install
> 
> I am using two custom action to accomplish that:
> 
> <Component Id="app.exe" Guid="{A5E8F545-F3A4-4f55-9B7F-D79786809289}">
>   <File Id="app.exe" Name="app.exe" KeyPath="yes" 
> Source="$(var.dir)\app.exe" />
> </Component>
> 
> <CustomAction Id="RegExe"
>               FileKey="app.exe"
>               ExeCommand=" -regserver"
>               Return="asyncNoWait"
>               Execute="deferred" />
> 
> <CustomAction Id="UnRegExe"
>               FileKey="app.exe"
>               ExeCommand=" -unregserver"
>               Return="asyncNoWait"
>               Execute="deferred" />
> 
> <InstallExecuteSequence>
>   <Custom   Action="RegExe"      After="InstallFiles"><![CDATA[ $app.exe >
> 2 
> ]]> </Custom>
>   <Custom   Action="UnRegExe"  After="InstallFiles"><![CDATA[ $app.exe = 2

> ]]> </Custom>
> </InstallExecuteSequence>
> 
> The first custom action works, the second that is invoked at un-install
> does 
> not. is it an action  sequencing problem ?
> 
> Thanks.
> \antoine
> 
> _________________________________________________________________
> The average US Credit Score is 675. The cost to see yours: $0 by Experian.

>
http://www.freecreditreport.com/pm/default.aspx?sc=660600&bcd=EMAILFOOTERAVE
RAGE
> 
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
> 
> 

-- 
View this message in context:
http://www.nabble.com/wix-com-registration%3A-out-of-proc-server-tf3678517.h
tml#a10296835
Sent from the wix-users mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to