" the installer doesn't  need to know about the xml files or about COM 
registration of the dlls"

Really? So what happens when the install fails & it has to rollback or the 
super unlikely event that someone wants/needs to uninstall your application (or 
you force an uninstall during a Major Upgrade)?

Microsoft themselves warn very strongly against self reg 
http://msdn.microsoft.com/en-us/library/bb204770.aspx#no_selfreg & 
http://msdn.microsoft.com/en-us/library/aa371608.aspx
as does the WiX tutorial http://www.tramontana.co.hu/wix/lesson6.php#6.1
Hell even Symantec give a good account of why it's a very bad idea 
http://www.symantec.com/connect/blogs/resons-avoiding-self-registration

Also our glorious benefactor Rob Mensching on Custom Actions -> 
http://robmensching.com/blog/posts/2007/8/17/Zataoca-Custom-actions-are-generally-an-admission-of-failure
 which definitely applies here.

Palbinder Sandher 
Software Deployment Engineer
T: +44 (0) 141 945 8500 
F: +44 (0) 141 945 8501 

http://www.iesve.com 
**Design, Simulate + Innovate with the <Virtual Environment>**
Integrated Environmental Solutions Limited. Registered in Scotland No. SC151456 
Registered Office - Helix Building, West Of Scotland Science Park, Glasgow G20 
0SP
Email Disclaimer

-----Original Message-----
From: David Watson [mailto:dwat...@sdl.com] 
Sent: 06 April 2011 15:47
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Too many CA:s (LGTH0179)

Self registration is not usually a good idea, feel free to search the list
for "selfreg is evil" to see many discussions as to why.

You could also use heat in your build process to make sure the components are
up to date.

If you do want to proceed though I would write a set of CAs that accept a
list of files to register. You could create a custom table to list the files
as input to the CAs.


-----Original Message-----
From: Asker Brodersen [mailto:asker.broder...@esri.se] 
Sent: 06 April 2011 13:04
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Too many CA:s (LGTH0179)

The ESRIRegasm utility being called generates a registration database (xml
file) for a dll as well as calls RegAsm. It's required for extending the
ArcGIS environment.
Currently I have in place a system where the build msbuild script calls this
utility so the xml files are generated. These files are then part of the
installation. This works, but as soon as a public interface is changed in a
dll I need to remember to manually run heat and update the installer. Adding
or removing dlls also means adding or removing the corresponding xml file to
the installer.

Running the ESRIRegasm utility on the dlls after installation takes care of
all registration, the installer doesn't  need to know about the xml files or
about COM registration of the dlls,  and the only time I need to revisit the
installer is when I  want to add or remove a dll. This is what I want to
accomplish, and it works as long as I don't have too many dlls to fill up the
available sequence numbers after MsiUnpublishAssemblies. But I do...

/Asker


-----Original Message-----
From: David Watson [mailto:dwat...@sdl.com] 
Sent: den 6 april 2011 11:30
To: WiX-users@lists.sourceforge.net
Subject: Re: [WiX-users] Too many CA:s (LGTH0179)

What is special about your registration that means you can't just heat them,
your code implies it's just regasm?



-----Original Message-----
From: Asker Brodersen [mailto:asker.broder...@esri.se]
Sent: 06 April 2011 06:41
To: WiX-users@lists.sourceforge.net
Subject: [WiX-users] Too many CA:s (LGTH0179)

Hi,
During installation/uninstallation we need a special registration of our
dll:s. This lead to four CA:s being scheduled for each dll:



<InstallExecuteSequence>

  <Custom Action ="InvokeESRIRegAsm_Cmd_Meldis.Search.dll"
After="StartServices">$Meldis.Search.dll&gt;2</Custom>

  <Custom Action ="InvokeESRIRegAsm_Meldis.Search.dll"
After="InvokeESRIRegAsm_Cmd_Meldis.Search.dll">$Meldis.Search.dll&gt;2</Custo
m>

  <Custom Action ="InvokeESRIRegAsm_CmdUninstall_Meldis.Search.dll"
After="MsiUnpublishAssemblies">$Meldis.Search.dll=2</Custom>

  <Custom Action ="InvokeESRIRegAsm_Uninstall_Meldis.Search.dll"
After="InvokeESRIRegAsm_CmdUninstall_Meldis.Search.dll">$Meldis.Search.dll=2<
/Custom>

</InstallExecuteSequence>

But as I have close to a hundred dll:s, this results in the LGHT0179 error
for MsiUnpublishAssemblies, I presume there simply isn't room in the sequence
table for all of them.

How do I work around this problem?

Thanks,
Asker

-----------------------------------------------------------------------------
-
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming smartphone on the nation's
most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
SDL PLC confidential, all rights reserved.
If you are not the intended recipient of this mail SDL requests and requires
that you delete it without acting upon or copying any of its contents, and we
further request that you advise us.
SDL PLC is a public limited company registered in England and Wales.
Registered number: 02675207.
Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6
7DY, UK.


-----------------------------------------------------------------------------
-
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming smartphone on the nation's
most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

-----------------------------------------------------------------------------
-
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to