New Installer? (1 Viewer)

jameson_uk

Retired Team Member
  • Premium Supporter
  • January 27, 2005
    7,257
    2,533
    Birmingham
    Home Country
    United Kingdom United Kingdom
    Is it possible to get this setup with the MPE1 installer?
     

    ncoH

    Retired Team Member
  • Premium Supporter
  • January 27, 2007
    925
    1,569
    Hannover
    Home Country
    Germany Germany
    AW: New Installer?

    I`am working on that. But there is a problem with the fonts. They do not installs correctly on my win7 testsystem...
     

    ncoH

    Retired Team Member
  • Premium Supporter
  • January 27, 2007
    925
    1,569
    Hannover
    Home Country
    Germany Germany
    AW: Re: AW: New Installer?

    UAC is off. The fonts are copy to windows/fonts. But they are not registered.
     

    dukus

    Portal Pro
    January 20, 2006
    783
    748
    46
    Usa
    Home Country
    Argentina Argentina
    I can't reproduce this error, but i get more reports about it, i think it is w7 or vista related.
    I use for register font :
    [DllImport("gdi32")]
    public static extern int AddFontResource(string lpFileName);
    Maybe it is exist a more safe way to register a font file, but i don't know about it ....
     

    Paranoid Delusion

    Moderation Manager
  • Premium Supporter
  • June 13, 2005
    13,052
    2,978
    Cheshire
    Home Country
    United Kingdom United Kingdom
    Anyone else notice that if the fonts are in a compressed state, they will not register if trying to unpack there directly, I know they are unpacked to a temp folder before being moved by some of the installers, but the only way I have found to get fonts registered correctly is unpack to desktop prior to moving to the fonts folder, and thats using a full admin account :confused:
     

    jameson_uk

    Retired Team Member
  • Premium Supporter
  • January 27, 2005
    7,257
    2,533
    Birmingham
    Home Country
    United Kingdom United Kingdom
    As the fonts are available as a separate download (and not likely to change). Is it possible to create a new installer. This makes updating a lot easier.... Not ideal I know and we need to look at sorting out the fonts via installer but would still be good....
     

    chemelli

    Retired Team Member
  • Premium Supporter
  • September 28, 2006
    6,159
    2,264
    52
    Milano, Italy
    Home Country
    Italy Italy
    Dukus, I think you should also do a call to "SendMessage" to notify the OS that a new font is installed.
    Sample code:

    Code:
    Ret = FontInstall.AddFontResource(FontPath); 
    Res = FontInstall.SendMessage(HWND_BROADCAST, WM_FONTCHANGE, 0, 0); 
    Ret = FontInstall.WriteProfileString("fonts", FontName + " (TrueType)", FontFileName);

    function definition:

    Code:
    [DllImport("kernel32.dll", SetLastError=true)]
    static extern int WriteProfileString( string lpszSection, string lpszKeyName, string lpszString) ; 
    
    [DllImport("user32.dll")] 
    public static extern int SendMessage(int hWnd, // handle to destination window 
    uint Msg, // message 
    int wParam, // first message parameter 
    int lParam // second message parameter 
    ); 
    
    [DllImport("gdi32")] 
    public static extern int AddFontResource(string lpFileName);

    Simone

    EDIT: Const definition:

    Code:
    const int WM_FONTCHANGE = 0x001D; 
    const int HWND_BROADCAST = 0xffff;
     

    Users who are viewing this thread

    Similar threads

    MP1 MP2 [solved] x86 1.39 won't install DE
    Try to install this package and see if it helps: Latest Visual C++ Redistributable Runtimes All-in-One Jun 2026 Download
    Try to install this package and see if it helps: Latest Visual C++ Redistributable Runtimes All-in-One Jun 2026 Download
    Complains MS Visual C++ 2008 SP1 is not installed, yet the installer shows a green tick to say it is. I'm upgrading from 1.37.
    Replies
    1
    Views
    1K
    MP1 MP2 1.39 x86 1.39 won't install DE
    That did it, thanks.
    That did it, thanks.
    Before you create this bug report: Make sure that your system (windows, codecs and drivers) is up to date, matching the...
    Replies
    2
    Views
    466
    • Sticky
    Many many years ago, I opened a bug report after I got that same message but I never got a reply. The reason was I had unchecked the Windows Media Player item in Windows 10 Control Panel > Program and Features > Turn Windows features on or off as I didn't need it, without thinking that it was needed by MediaPortal. I kept the "Media...
    Many many years ago, I opened a bug report after I got that same message but I never got a reply. The reason was I had unchecked...
    We have just released MediaPortal 1.39 - Endurance x86 and x64 version. Highlights of this release Bugfixes: [MP1-5257] - Skin...
    Replies
    13
    Views
    1K
    Beginning to get my thoughts into code. Using parts of the Horizon Up theme from the PurevisionHD 1080 skin. It's just a layout idea for my OldEyes-Stack theme, I haven't figured out displaying the actual sub-menu or functions yet, like proper visability. I'm still deciphering catavolt's code.
    Beginning to get my thoughts into code. Using parts of the Horizon Up theme from the PurevisionHD 1080 skin. It's just a layout...
    I'm looking at messing with the Old Eyes theme for DefaultWideHD. I'd like to create a new Layout in the skin editor, maybe called...
    Replies
    2
    Views
    186
    Thanks for the update on this. I should have searched before posting, always assume it is something I have done wrong.
    Thanks for the update on this. I should have searched before posting, always assume it is something I have done wrong.
    Hi All, I have a strange one. I recently added 2 new TV series to my setup and they are not being correctly identified in the...
    Replies
    2
    Views
    615
    Top Bottom