Until now I deployed my project like this:
  - Copy & paste files (one exe any many dll-s)
  - Run a script (bat file), which:
    - Uninstalls my dll-s from COM
(C:\Windows\Microsoft.NET\Framework\v2.0.050727\regsvcs /u MyDll.dll).
    - Uninstalls my dll-s from GAC (gacutil /u "MyDll.dll, Version=...
PublicKeyToken=...).
    - Installs dll-s to GAC (gacutil /i MyDll.dll).
    - Installs dll-s to COM
(C:\Windows\Microsoft.NET\Framework\v2.0.050727\regsvcs /i MyDll.dll).

Now I am working on Install project with WIX (I never worked with WIX
before) and have problems installing my dll-s into COM environment. How I do
it:
  - (I use Windows XP SP3 in VMware environment, Visual Studio 2005 SP1
(solution is in .NET Framework 2.0), WIX 3.5.2519.0, ProjectAggregator (both
from http://wix.codeplex.com/releases/view/60102), I also have all major
.NET Frameworks installed - 2.0, 3.5, 4.0).
  - First I create a wxs file from my dll, like this: heat.exe file
MyDll.dll -gg -out MyDll.wxs.
  - Then I add wxs file to my WIX project (I have to manually change Source
of the File element, but OK).
  - Then I add the component from wxs file to Features element in main
Product.wxs file.
  - Right Click on WIX Project in Visual Studio 2005, Build, then run
installer.

The installer runs without errors, everything works OK (my exe and dll-s are
copied, shortcuts are created (Desktop, StartMenu, AddRemove,...), the log
file looks OK, but the COM+ application doesn't install (it isn't visible in
Component Services nor in C:\Windows\Assembly). 
It also isn't visible in C:\WINDOWS\Microsoft.NET\assembly\GAC_MSIL and is
not listed if I run C:\Program Files\Microsoft
SDKs\Windows\v7.0A\bin\gacutil.exe /l

And this is a piece of code in my generated MyDll.wxs file:
<RegistryValue Root="HKCR"
Key="CLSID\{13D18561-2F33-38AD-A4FA-5A2045CE48D2}\InprocServer32"
Name="RuntimeVersion" Value="v4.0.30319" Type="string" Action="write" />
Is it possible that heat.exe generates code, which registers .NET 4.0
assemblies instead of .NET 2.0?

--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Problems-registering-COM-objects-tp7077697p7077697.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Cloud Services Checklist: Pricing and Packaging Optimization
This white paper is intended to serve as a reference, checklist and point of 
discussion for anyone considering optimizing the pricing and packaging model 
of a cloud services business. Read Now!
http://www.accelacomm.com/jaw/sfnl/114/51491232/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to