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
    51
    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

    100% my bad - as expected :) So, I had disabled the Windows Update service. Not a wise move, until MP all installed and working nicely. The reason it failed is because DotNetFrameworkChecker.cs looks in Registry HKLM SOFTWARE\\Microsoft\\NET Framework Setup\\NDP for v4/v4.0 AND v3.5. W10 has V4.0 but not 3.5. MP installer...
    100% my bad - as expected :) So, I had disabled the Windows Update service. Not a wise move, until MP all installed and working...
    Just tried a new Client-only install on a clean Win10 Pro box. Installer doesnt realise .NET 4 Framework already 'installed' (part...
    Replies
    3
    Views
    887
    I see no reason in Windows XP or 7, in my experience, on ancient Atom, Windows 10 worked faster than XP or 7...
    I see no reason in Windows XP or 7, in my experience, on ancient Atom, Windows 10 worked faster than XP or 7...
    Hi all, I'm new to MediaPortal and looking forward to using it. Just one catch and I apologize if it sounds silly - I want to run...
    Replies
    3
    Views
    1K
    • Sticky
    yes that is indeed what I did in that ticket. It may already be working without updating those plugins because most of it was not relevant to the plugin itself (test, some leftover unused parts etc).
    yes that is indeed what I did in that ticket. It may already be working without updating those plugins because most of it was not...
    We have just released MediaPortal 1.38 - Tatiana & Leo x86 and x64 version. Highlights of this release Bugfixes: New...
    Replies
    37
    Views
    6K
    MP 1.37 Final (Willow) Bugfix II released, download links updated...
    MP 1.37 Final (Willow) Bugfix II released, download links updated...
    We have just released MediaPortal 1.37 - Willow x86 and x64 version. Highlights of this release Bugfixes: [MP1-5232] - GPU...
    Replies
    4
    Views
    2K
    Thank you both for your good and very detailed advice. I think I will try to go for the x86 install.
    Thank you both for your good and very detailed advice. I think I will try to go for the x86 install.
    Hello great people ! I have an old Win7 setup running the 1.29 build and I'm making a new htpc on Win11. I have made a backup and...
    Replies
    3
    Views
    936
    Top Bottom