We encountered the issue with TRIM 7 and .eml and found the fix in another post here.
However, now that I have associated my Outlook 2007 with .eml, how do I add .eml to the TRIM Rich Client so TRIM knows to open .eml with Outlook and not the TRIM Viewer?
I can save .eml to the TRIM Global Settings - however, only new TRIM users will GetGlobal.
Or how do I script GetGlobal but only to get the "Viewers to use when displaying electronic documents" and not all Global settings? (I do not want to remove any settings the user might have already created for himself.)
I tried editing the Windows 7 Registry to add eml to the BypassFor key
I tested adding the space after the eml in the Windows Registry and restarting the computer but the TRIM Rich Client still did not associate the eml with Outlook.
I am now wondering if I can manually add it to the TRIM table on the backend - I notice when I manually remove the eml association from Options-->Viewer within my TRIM Client that this removal is reflected on the TRIM Client on my other computer as well. If it is not being written to the Windows Registry, it must be written to a TRIM table.
You're right in that the viewer bypass settings are now stored in the database as XML. Here's an example of the SQL issued when you add the eml file type to the viewer bypass options in a TRIM client:
DELETE FROM TSXMLDATA WHERE ( xpForUserUri = 1169 AND xpConfigItemType = 6 AND xpObjectType = 0 )
INSERT INTO TSXMLDATA (uri,xpForUserUri,xpConfigItemType,xpObjectType,xpTextChunk,xpText,xpLength,xpLastUpdated) VALUES (2811,1169,6,0,0,N'<?xml version="1.0"?> <!--Viewer--> <UserOptions Id="6" Name="viewer"><PropertyOrFieldList><Property Id="8073" Caption="When viewing mail messages and a native mail rendition exists, launch the associated application">Yes</Property><Property Id="8070" Caption="File Types to view by launching associated application">lnk;url;hlp;mpg;mpeg;msg;pdf;jp2;eml</Property></PropertyOrFieldList></UserOptions> ',404,'201402190520101')
Perhaps it'd be easier to roll it out via global settings?
Note: Any posts I make on this forum are my own personal opinion and (unless explicitly stated) do not constitute a formal commitment on behalf of HPE.
(Please state the version of CM you're using in all posts.
HPE Software Support Online (SSO): https://softwaresupport.hpe.com/
to the user's computer - the user is the one I want to "automatically" add the eml association to their TRIM Client.
I tested this on 1 user and it seems to work ie the eml is added to their TRIM Client. If this works, I can script the copying of the viewer.cfg file to each user. The risk is I could potentially remove other File Type associations that the user may have added themselves.
I will do more testing.
PS. I am probably spending too much time on this - could have finished manually updating the TRIM Client on all my users' computers by now!