Re: [WiX-users] WiX v3: COM on Vista. I have some success, but worried about heat's erroneous output

2007-09-25 Thread John Hall
 I've been reading more about heat, vb6 and vista.  I'm now 
 starting to get worried that there's a potential difference 
 between running Heat on Vista versus XP.  And yes, you do 
 need to run as Admin, and elevated for Heat to actually 
 extract anything.  Also, Should I be deleting all the 
 registry entries that refer to the VB Virtual Machine Runtime 
 DLL...I forget the exact key, but it references 
 c:\windows\system32 ... MSVBRuntime(forgot name).dll.

Roy,

I remove the following:

1. The VB runtime CLSID: {D5DE8D20-5BB8-11D1-A1E3-00A0C90F2731}
2. The two VB typelibs: {EA544A21-C82D-11D1-A3E4-00A0C90AEA82} and
{000204EF---C000-0046}.
3. All interfaces that reference either of the typelibs.

Regards,
John

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] WiX v3: COM on Vista. I have some success, but worried about heat's erroneous output

2007-09-25 Thread Roy Abou Assaly


John Hall-9 wrote:
 
 I've been reading more about heat, vb6 and vista.  I'm now 
 starting to get worried that there's a potential difference 
 between running Heat on Vista versus XP.  And yes, you do 
 need to run as Admin, and elevated for Heat to actually 
 extract anything.  Also, Should I be deleting all the 
 registry entries that refer to the VB Virtual Machine Runtime 
 DLL...I forget the exact key, but it references 
 c:\windows\system32 ... MSVBRuntime(forgot name).dll.
 
 I remove the following:
 
 1. The VB runtime CLSID: {D5DE8D20-5BB8-11D1-A1E3-00A0C90F2731}
 2. The two VB typelibs: {EA544A21-C82D-11D1-A3E4-00A0C90AEA82} and
 {000204EF---C000-0046}.
 3. All interfaces that reference either of the typelibs.
 

Hi John,

To do the above 3 things, would've meant editing about 5000 lines out of my
25000 line file.  I'm not an XSL wiz by any standard, but I came up with
this solution:

* Create XSLT file that processes the above 3 GUIDS and simply removes the
element where the attribute value contains or is the GUID in question.
* Open it up with Notepadd++ and use the friendly Macro Remove Blank Lines
for that blank lines that the XSLT processing leaves behind.

I downloaded MSXSL command line utility from Microsoft
(http://www.microsoft.com/downloads/details.aspx?FamilyID=2FB55371-C94E-4373-B0E9-DB4816552E41displaylang=en)

To use it, in a command prompt:  D:\msxsl Original.wxs Cleanup.xslt -o
NiceAndClean.xml

I'm including my XSLT file (Cleanup.xslt) in case anybody else wants to use
it:

Cleanup.xsl
==

?xml version=1.0?
xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
version=1.0
!-- stylesheet output --
xsl:output  method=xml omit-xml-declaration=no /
!-- Root template. --
xsl:template match=/
xsl:apply-templates/
/xsl:template

!-- Identity copy of all processing-instructions. --
xsl:template match=comment()|processing-instruction()
xsl:copy /
/xsl:template

!-- Identity copy of all elements. --
xsl:template match=*
xsl:copy
xsl:apply-templates select=@*/
xsl:apply-templates/
/xsl:copy
/xsl:template

!-- Identity copy of all attributes. --
xsl:template match=@*
xsl:copy-of select=./
/xsl:template

!-- Remove all the elements that contain the following attributes: --
xsl:template
match=[EMAIL 
PROTECTED]'{D5DE8D20-5BB8-11D1-A1E3-00A0C90F2731}']/xsl:template
xsl:template
match=[EMAIL 
PROTECTED]'{EA544A21-C82D-11D1-A3E4-00A0C90AEA82}']/xsl:template
xsl:template
match=[EMAIL 
PROTECTED]'{000204EF---C000-0046}']/xsl:template
xsl:template
match=[EMAIL 
PROTECTED]'Software\Classes\TypeLib\{EA544A21-C82D-11D1-A3E4-00A0C90AEA82}\6.0\9\win32']/xsl:template
xsl:template
match=[EMAIL 
PROTECTED]'Software\Classes\TypeLib\{EA544A21-C82D-11D1-A3E4-00A0C90AEA82}\6.0\FLAGS']/xsl:template
xsl:template
match=[EMAIL 
PROTECTED]'Software\Classes\TypeLib\{EA544A21-C82D-11D1-A3E4-00A0C90AEA82}\6.0\HELPDIR']/xsl:template
xsl:template
match=[EMAIL 
PROTECTED]'Software\Classes\TypeLib\{EA544A21-C82D-11D1-A3E4-00A0C90AEA82}\6.0']/xsl:template
xsl:template
match=[EMAIL 
PROTECTED]'Software\Classes\TypeLib\{000204EF---C000-0046}\6.0\9\win32']/xsl:template
xsl:template
match=[EMAIL 
PROTECTED]'Software\Classes\TypeLib\{000204EF---C000-0046}\6.0\FLAGS']/xsl:template
xsl:template
match=[EMAIL 
PROTECTED]'Software\Classes\TypeLib\{000204EF---C000-0046}\6.0\HELPDIR']/xsl:template
xsl:template
match=[EMAIL 
PROTECTED]'Software\Classes\TypeLib\{000204EF---C000-0046}\6.0']/xsl:template
 

/xsl:stylesheet


-- 
View this message in context: 
http://www.nabble.com/WiX-v3%3A-COM-on-Vista.--I-have-some-success%2C-but-worried-about-heat%27s-erroneous-output.-tf4510373.html#a12890714
Sent from the wix-users mailing list archive at Nabble.com.


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] WiX v3: COM on Vista. I have some success, but worried about heat's erroneous output.

2007-09-24 Thread Roy Abou Assaly

I basically have about 150 COM, ActiveX VB6 files.  I ran heat to produce the
output and then modified them to produce 2 merge modules.  I used heat to
avoid using the SelfRegCost attribute which as been frowned upon by many
here.  I read Rob's blog about that :)

I ran into 2 warnings which were ICE33 and ICE82.  I scoured the archive and
was able to find that I can safely ignore the ICE33 and ICE82 warnings.  I
ran ORCA as well just to be safe which is why ICE33 showed up since I later
realized that WiX suppresses it by default.

examples are:

light.exe: warning LGHT1076 : ICE82: This action
ProgramMenuFolder.C7AC8538_65ED_4C2B_AE16_6291871D0918 has duplicate
sequence number 2 in the table InstallExecuteSequence

orca.exe: ICE33   WARNING   Reg key reg7EF074BB025A80CBFE2087521879C64E is
used in an unsupported way. ProgId should be registered via the ProgId
table. This entry may overwrite a value created through that table.

After ignoring those 2 warning, I then proceeded to build my MSI and ran
into 2 more errors that were output by candle:

1. RequiredFiles.wxs(81) : error CNDL0010 : The Class/@Context attribute was
not found; it is required
 when attribute {3E28E9C7-A265-41D6-B6EA-132B62605C75} is specified.
2. RequiredFiles.wxs(81) : error CNDL0010 : The Class/@Server attribute was
not found; it is required.

Initially, the entry looked like this:


Class Id={479066AE-099A-41CB-80F2-A54BD8E891EF} Description=Contains a
List a ValueItem objects. Version=1.1
  ProgId Id=GridEX20.JSValueList Description=Contains a List a
ValueItem objects. /
/Class

To solve 1, I added the attribute Context=InprocServer32 into the Class
element:
To solve 2, I added the attribute Server=NameOfDll.dll into the Class
element:

Class Id={479066AE-099A-41CB-80F2-A54BD8E891EF} Context=InprocServer32
Server=GridEX20.ocx Description=Contains a List a ValueItem objects.
Version=1.1
  ProgId Id=GridEX20.JSValueList Description=Contains a List a
ValueItem objects. /
/Class

After doing all that, I ran into one more problem that involved ActiveX
DLLs.  The error I got was a couple of times for the various ActiveX DLLs
and was produced by light:

RequiredFiles.wxs(500) : error LGHT0130 : The primary key
regB69CCE91B63112D0023E330FD9CCE948.B05A
204B_CEB8_4A82_B515_ADFB4AE6965C' is duplicated in table 'Registry'.  Please
remove one of the entries or rename a part of the primary key to avoid the
collision.

I didn't quite understand this.   The line it referred to was this:

Class Id={D5DE8D20-5BB8-11D1-A1E3-00A0C90F2731} Context=InprocServer32
Server=GridEX20.ocx Description=VBPropertyBag ThreadingModel=apartment
/

I commented the line out and error was gone, but I have to admit I don't
know what I did!!  Can someone please shed some light on this?  I really
don't want to use SelfRegCost and take the easy way out ;)
-- 
View this message in context: 
http://www.nabble.com/WiX-v3%3A-COM-on-Vista.--I-have-some-success%2C-but-worried-about-heat%27s-erroneous-output.-tf4510373.html#a12863906
Sent from the wix-users mailing list archive at Nabble.com.


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] WiX v3: COM on Vista. I have some success, but worried about heat's erroneous output.

2007-09-24 Thread Roy Abou Assaly


Roy Abou Assaly wrote:
 
 I basically have about 150 COM, ActiveX VB6 files.  I ran heat to produce
 the output and then modified them to produce 2 merge modules.  I used heat
 to avoid using the SelfRegCost attribute which as been frowned upon by
 many here.  I read Rob's blog about that :)
 
 I ran into 2 warnings which were ICE33 and ICE82.  I scoured the archive
 and was able to find that I can safely ignore the ICE33 and ICE82
 warnings.  I ran ORCA as well just to be safe which is why ICE33 showed up
 since I later realized that WiX suppresses it by default.
 
 examples are:
 
 light.exe: warning LGHT1076 : ICE82: This action
 ProgramMenuFolder.C7AC8538_65ED_4C2B_AE16_6291871D0918 has duplicate
 sequence number 2 in the table InstallExecuteSequence
 
 orca.exe: ICE33   WARNING   Reg key reg7EF074BB025A80CBFE2087521879C64E is
 used in an unsupported way. ProgId should be registered via the ProgId
 table. This entry may overwrite a value created through that table.
 
 After ignoring those 2 warning, I then proceeded to build my MSI and ran
 into 2 more errors that were output by candle:
 
 1. RequiredFiles.wxs(81) : error CNDL0010 : The Class/@Context attribute
 was not found; it is required
  when attribute {3E28E9C7-A265-41D6-B6EA-132B62605C75} is specified.
 2. RequiredFiles.wxs(81) : error CNDL0010 : The Class/@Server attribute
 was not found; it is required.
 
 Initially, the entry looked like this:
 
 
 Class Id={479066AE-099A-41CB-80F2-A54BD8E891EF} Description=Contains a
 List a ValueItem objects. Version=1.1
   ProgId Id=GridEX20.JSValueList Description=Contains a List a
 ValueItem objects. /
 /Class
 
 To solve 1, I added the attribute Context=InprocServer32 into the Class
 element:
 To solve 2, I added the attribute Server=NameOfDll.dll into the Class
 element:
 
 Class Id={479066AE-099A-41CB-80F2-A54BD8E891EF}
 Context=InprocServer32 Server=GridEX20.ocx Description=Contains a
 List a ValueItem objects. Version=1.1
   ProgId Id=GridEX20.JSValueList Description=Contains a List a
 ValueItem objects. /
 /Class
 
 After doing all that, I ran into one more problem that involved ActiveX
 DLLs.  The error I got was a couple of times for the various ActiveX DLLs
 and was produced by light:
 
 RequiredFiles.wxs(500) : error LGHT0130 : The primary key
 regB69CCE91B63112D0023E330FD9CCE948.B05A
 204B_CEB8_4A82_B515_ADFB4AE6965C' is duplicated in table 'Registry'. 
 Please remove one of the entries or rename a part of the primary key to
 avoid the collision.
 
 I didn't quite understand this.   The line it referred to was this:
 
 Class Id={D5DE8D20-5BB8-11D1-A1E3-00A0C90F2731}
 Context=InprocServer32 Server=GridEX20.ocx Description=VBPropertyBag
 ThreadingModel=apartment /
 
 I commented the line out and error was gone, but I have to admit I don't
 know what I did!!  Can someone please shed some light on this?  I really
 don't want to use SelfRegCost and take the easy way out ;)
 

I've been reading more about heat, vb6 and vista.  I'm now starting to get
worried that there's a potential difference between running Heat on Vista
versus XP.  And yes, you do need to run as Admin, and elevated for Heat to
actually extract anything.  Also, Should I be deleting all the registry
entries that refer to the VB Virtual Machine Runtime DLL...I forget the
exact key, but it references c:\windows\system32 ... MSVBRuntime(forgot
name).dll.

Perhaps there's a list of things that should be deleted..as in, after heat
produces the output, we need to do the following steps:

1.  Ignore ICE82
2.  Delete anything related to the VB Runtime DLL, etc.
3.  Run Smoke, ORCA, etc..

Any help would be appreciated as our migration to Vista is proving to be
painstakingly difficult.  I'm almost there, I'd just like to this clean up
now while I'm in development, rather than later when the product goes out
for testing.

Roy


-- 
View this message in context: 
http://www.nabble.com/WiX-v3%3A-COM-on-Vista.--I-have-some-success%2C-but-worried-about-heat%27s-erroneous-output.-tf4510373.html#a12872113
Sent from the wix-users mailing list archive at Nabble.com.


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users