That sounds like this rather strange procedure: 

http://msdn.microsoft.com/en-us/library/aa368277(VS.85).aspx 

"To determine the code page of a database, call MsiDatabaseExport with 
hDatabase set to the handle of the database and szTableName set to 
_ForceCodepage. This exports a text file with an .idt extension. The first two 
lines of this file are blank. The third line is the ANSI code page number, 
followed by a tab, followed by the name _ForceCodepage." 

Yech. 

Phil Wilson 


-----Original Message-----
From: Blair [mailto:os...@live.com] 
Sent: Friday, May 28, 2010 11:20 AM
To: 'General discussion for Windows Installer XML toolset.'
Subject: Re: [WiX-users] How to detect MSI database codepage at runtime?

There are two codepages in an MSI database: the database codepage, and the
summary info codepage. They can be different, and there are circumstances
where the valid values for each are different as well.

The functions that Phil mentions retrieve the summary info codepage, not the
database codepage. See http://msdn.microsoft.com/library/aa367864.aspx.

Microsoft didn't document anywhere I have found yet where/how they encode
the database codepage within the MSI file. Nor does it appear that they
supplied an API to retrieve it. Why do you need it? The "Unicode" APIs will
always return the strings in 16-bit Unicode, and the "ANSI" APIs will always
convert strings to the thread's current codepage (as best as it can).

-----Original Message-----
From: Wilson, Phil [mailto:phil.wil...@invensys.com] 
Sent: Friday, May 28, 2010 9:48 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] How to detect MSI database codepage at runtime?

Unless I'm missing something, that's MsiGetSummaryInformation() and
MsiGetSummaryInfoGetProperty() and associated Win32 functions, or the
scripting Installer.SummaryInfo etc 

Phil Wilson 

-----Original Message-----
From: Yan Sklyarenko [mailto:y...@sitecore.net] 
Sent: Friday, May 28, 2010 2:13 AM
To: General discussion for Windows Installer XML toolset.
Subject: [WiX-users] How to detect MSI database codepage at runtime?

Hi WiX Community,

Does anyone know if it is at all possible to get the MSI database
codepage at runtime?
The session.Database.CodePage throws exception... The MSDN says you
should export tables (wtf???) in order to determine the codepage -
that's probably why session.Database.CodePage fails from CA...

But when language transform is applied, it changes the code page
somehow, right? And it is at runtime, so there must be an option to get
it at runtime as well...

Any ideas?

Thank you!

-- Yan


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

_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


*** Confidentiality Notice: This e-mail, including any associated or
attached files, is intended solely for the individual or entity to which it
is addressed. This e-mail is confidential and may well also be legally
privileged. If you have received it in error, you are on notice of its
status. Please notify the sender immediately by reply e-mail and then delete
this message from your system. Please do not copy it or use it for any
purposes, or disclose its contents to any other person. This email comes
from a division of the Invensys Group, owned by Invensys plc, which is a
company registered in England and Wales with its registered office at
Portland House, Bressenden Place, London, SW1E 5BF (Registered number
166023). For a list of European legal entities within the Invensys Group,
please go to
http://www.invensys.com/legal/default.asp?top_nav_id=77&nav_id=80&prev_id=77
. You may contact Invensys plc on +44 (0)20 7821 3848 or e-mail
inet.hqhelpd...@invensys.com. This e-mail and any attachments thereto may be
subject to the terms of any agreements between Invensys (and/or its
subsidiaries and affiliates) and the recipient (and/or its subsidiaries and
affiliates).



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

_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


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

_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


*** Confidentiality Notice: This e-mail, including any associated or attached 
files, is intended solely for the individual or entity to which it is 
addressed. This e-mail is confidential and may well also be legally privileged. 
If you have received it in error, you are on notice of its status. Please 
notify the sender immediately by reply e-mail and then delete this message from 
your system. Please do not copy it or use it for any purposes, or disclose its 
contents to any other person. This email comes from a division of the Invensys 
Group, owned by Invensys plc, which is a company registered in England and 
Wales with its registered office at Portland House, Bressenden Place, London, 
SW1E 5BF (Registered number 166023). For a list of European legal entities 
within the Invensys Group, please go to 
http://www.invensys.com/legal/default.asp?top_nav_id=77&nav_id=80&prev_id=77. 
You may contact Invensys plc on +44 (0)20 7821 3848 or e-mail 
inet.hqhelpd...@invensys.com. This e-mail and any attachments thereto may be 
subject to the terms of any agreements between Invensys (and/or its 
subsidiaries and affiliates) and the recipient (and/or its subsidiaries and 
affiliates).



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

_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to