thanks for the info on the msm's mike.  yes, this was an example because the
file is freely available and if you wanted to recreate what i sent it would
be easy.  i have this problem with any dll/ocx i am registering.  it always
add's the quotes to InProcServer32 when the wxs is compiled to msi, and when
the file is self-registered, it does not add the quotes.

so the question is, is this a bug or is this by design.  bob had mentioned
that this was something that should not be in this version and was already
remedied.

i test weather i captured all the correct registry information by installing
the msi, then using the freeware utility regshot to capture the registry,
self register the file, and use regshot to take another shot for
comparison.  the only changes all my files make to the registry upon
self-registration is to remove the quotes from the inprocserver32

btw, i am repackaing applications for internal distribution in a corporate
environment, not for public distribution.  since the only apps that
technically are repackaged are setup-based, there really aren't any
component GUID's on some of the third party control files.  i had been
teaching myself WiX using the MS redistributables, but make sure i adhere to
the component rules as often as possible.  (though i know i cannot say the
same for my co-workers...)

and i didn't stick a GUID in there anywhere, did i? <g>


On 5/2/07, Mike Dimmick <[EMAIL PROTECTED]> wrote:

 As always, if you didn't write the component you should only distribute
it in the way directed by the author of the component. In this case, for
mscomctl.ocx, you should use the mscomctl.msm from
http://www.microsoft.com/downloads/details.aspx?FamilyID=f9d19334-61ec-48cf-bb4e-3aec65edd50b&DisplayLang=en.
Please note that there are known bugs in these merge modules which can be
found at http://www.installsite.org/pages/en/bugs_msi.htm#wimsm (scroll
down past the myriad errors in the deprecated MSDE Merge Modules).



Using different component GUIDs for third-party libraries breaks component
rules. This can cause software to be removed prematurely or not to be
removed when it should be. For compatibility, Windows Installer does
increment the shared DLL reference count for files installed in certain
system folders, but you should not rely on this behaviour.



If I'm misunderstanding you, and this was just an example, not a file
you're actually installing, I apologize.



Not quoting the path would be correct as the string in InProcServer32 is
passed to LoadLibrary, which does not parse for arguments (it's expecting a
DLL – DLLs don't have arguments) and therefore isn't fooled by spaces in
paths.



--

Mike Dimmick


 ------------------------------

*From:* [EMAIL PROTECTED] [mailto:
[EMAIL PROTECTED] *On Behalf Of *koawmfot
*Sent:* 02 May 2007 16:49
*To:* Bob Arnson
*Cc:* wix-users@lists.sourceforge.net
*Subject:* Re: [WiX-users] wixlib and extensions and msm's



sure...

the file in this example is mscomctl.ocx (i figured if you wanted to
reproduce, it would be an easy file to get...)



this is the snippet of code:



 <File Id='mscomctl.ocx' Name='mscomctl.ocx' KeyPath='yes'
Source='.\windows\system32\mscomctl.ocx'>

<TypeLib Id='{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}' Language='0'
Description='Microsoft Windows Common Controls 6.0 (SP6)' MajorVersion='2'
MinorVersion='0'>
      <Class Id='{1EFB6596-857C-11D1-B16A-00C0F0283628}'
Context='InprocServer32' Description='Microsoft TabStrip Control 6.0(SP6)' 
Control='yes' ThreadingModel='apartment' Programmable='yes' Version='
2.0'>
       <ProgId Id='MSComctlLib.TabStrip.2' Description='Microsoft TabStrip
Control 6.0 (SP6)'>
        <ProgId Id='MSComctlLib.TabStrip' Description='Microsoft TabStrip
Control 6.0 (SP6)' />
       </ProgId>
      </Class>
     </TypeLib>

</File>

<RegistryKey Root='HKCR'
Key='CLSID\{1EFB6596-857C-11D1-B16A-00C0F0283628}'
Action='createAndRemoveOnUninstall'>
     <RegistryKey Key='Implemented
Categories\{0DE86A52-2BAA-11CF-A229-00AA003D7352}'
Action='createAndRemoveOnUninstall' />
     <RegistryKey Key='Implemented
Categories\{0DE86A53-2BAA-11CF-A229-00AA003D7352}'
Action='createAndRemoveOnUninstall' />
     <RegistryKey Key='Implemented
Categories\{0DE86A57-2BAA-11CF-A229-00AA003D7352}'
Action='createAndRemoveOnUninstall' />
     <RegistryKey Key='Implemented
Categories\{40FC6ED4-2438-11CF-A3DB-080036F12502}'
Action='createAndRemoveOnUninstall' />
     <RegistryKey Key='Implemented
Categories\{40FC6ED5-2438-11CF-A3DB-080036F12502}'
Action='createAndRemoveOnUninstall' />
     <RegistryKey Key='Implemented
Categories\{7DD95801-9882-11CF-9FA9-00AA006C42C4}'
Action='createAndRemoveOnUninstall' />
     <RegistryKey Key='Implemented
Categories\{7DD95802-9882-11CF-9FA9-00AA006C42C4}'
Action='createAndRemoveOnUninstall' />
     <RegistryValue Key='MiscStatus' Value='0' Type='string' />
     <RegistryValue Key='MiscStatus\1' Value='131473' Type='string' />
     <RegistryValue Key='ToolboxBitmap32' Value='[#mscomctl.ocx], 10'
Type='string' />
</RegistryKey>



and that gives me this, taken from the reg table in ORCA.  i could attach
a file if it would be neater.  the bolded entry is the offending one.



reg672AD8E870DEF700CE6394D6D4494E9F 0 
CLSID\{1EFB6596-857C-11D1-B16A-00C0F0283628}  Microsoft
TabStrip Control 6.0 (SP6) mscomctl.ocx

reg63BA47860515F82290B29892DC71EBE4 0 
CLSID\{1EFB6596-857C-11D1-B16A-00C0F0283628} *
mscomctl.ocx
regCA4AF5D5AD8C376C3135CA50FE12360F 0 
CLSID\{1EFB6596-857C-11D1-B16A-00C0F0283628}\Control *
mscomctl.ocx
reg22123D88484DCCAEBA376FEF9314E720 0 
CLSID\{1EFB6596-857C-11D1-B16A-00C0F0283628}\Implemented
Categories\{0DE86A52-2BAA-11CF-A229-00AA003D7352} *  mscomctl.ocx
regEB22AA9FEF67CDC66816D17A723656C9 0 
CLSID\{1EFB6596-857C-11D1-B16A-00C0F0283628}\Implemented
Categories\{0DE86A53-2BAA-11CF-A229-00AA003D7352} *   mscomctl.ocx
regDB7692623C1DC342F645C144118C28CB 0 
CLSID\{1EFB6596-857C-11D1-B16A-00C0F0283628}\Implemented
Categories\{0DE86A57-2BAA-11CF-A229-00AA003D7352} *  mscomctl.ocx
regBF54EDAF52A18A9A09EA09E2FCF201CF 0 
CLSID\{1EFB6596-857C-11D1-B16A-00C0F0283628}\Implemented
Categories\{40FC6ED4-2438-11CF-A3DB-080036F12502} *   mscomctl.ocx
reg21B7FBE0E7F475E6251BDCC314797F4A 0 
CLSID\{1EFB6596-857C-11D1-B16A-00C0F0283628}\Implemented
Categories\{40FC6ED5-2438-11CF-A3DB-080036F12502} *  mscomctl.ocx
regF8613163B90EFB04BAD9EB99DCF26958 0 
CLSID\{1EFB6596-857C-11D1-B16A-00C0F0283628}\Implemented
Categories\{7DD95801-9882-11CF-9FA9-00AA006C42C4} *   mscomctl.ocx
reg6374E2D571345973FCE88D1A7B2DC965 0 
CLSID\{1EFB6596-857C-11D1-B16A-00C0F0283628}\Implemented
Categories\{7DD95802-9882-11CF-9FA9-00AA006C42C4} *  mscomctl.ocx
*reg77CF7165CDE2952817A62A40AF0653F1 0 
CLSID\{1EFB6596-857C-11D1-B16A-00C0F0283628}\InprocServer32  "[#mscomctl.ocx]"
* mscomctl.ocx

reg2597306361F553E672A35E1E1A56B313 0 
CLSID\{1EFB6596-857C-11D1-B16A-00C0F0283628}\InprocServer32 ThreadingModel 
Apartment
mscomctl.ocx
reg4794687DB0E4AEA3250E5A282A1D5DA4 0 
CLSID\{1EFB6596-857C-11D1-B16A-00C0F0283628}\MiscStatus  0
mscomctl.ocx

reg32D96DA8BCCCEDC1754CB3E41EFB2DD6 0 
CLSID\{1EFB6596-857C-11D1-B16A-00C0F0283628}\MiscStatus\1  131473
mscomctl.ocx
reg0DEA68C23B00DEAE390850130EE3317F 0 
CLSID\{1EFB6596-857C-11D1-B16A-00C0F0283628}\ProgID
MSComctlLib.TabStrip.2 mscomctl.ocx

regB7A044A658FBFF95E84A2A490C67C0FF 0 
CLSID\{1EFB6596-857C-11D1-B16A-00C0F0283628}\Programmable *
mscomctl.ocx
regA817C34818CFECE2ED70CD2C331EF878 0 
CLSID\{1EFB6596-857C-11D1-B16A-00C0F0283628}\ToolboxBitmap32  [#mscomctl.ocx],
10  mscomctl.ocx

reg1C3085EAE655531BD64AFEDB8FBCCC63 0 
CLSID\{1EFB6596-857C-11D1-B16A-00C0F0283628}\TypeLib  
{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}
mscomctl.ocx
regC08894CAE527D22152DFE4648455423C 0 
CLSID\{1EFB6596-857C-11D1-B16A-00C0F0283628}\Version
2.0 mscomctl.ocx

regA880A414284125A06201F7DBCBAAA4E4 0 
CLSID\{1EFB6596-857C-11D1-B16A-00C0F0283628}\VersionIndependentProgID
MSComctlLib.TabStrip mscomctl.ocx





On 5/2/07, *Bob Arnson* <[EMAIL PROTECTED]> wrote:

koawmfot wrote:

 Which version of WiX are you using? I believe that was changed sometime
recently to not quote.



I am using v3.00.2813.  i believe that is the last release.


Hmmm...Can you post the WiX authoring and the resulting Registry rows?

--

sig://boB

http://joyofsetup.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

Reply via email to