Is it possible to get this setup with the MPE1 installer?
I`am working on that. But there is a problem with the fonts. They do not installs correctly on my win7 testsystem...
Maybe dukus can help?UAC is off. The fonts are copy to windows/fonts. But they are not registered.
Maybe it is exist a more safe way to register a font file, but i don't know about it ....[DllImport("gdi32")]
public static extern int AddFontResource(string lpFileName);
Ret = FontInstall.AddFontResource(FontPath);
Res = FontInstall.SendMessage(HWND_BROADCAST, WM_FONTCHANGE, 0, 0);
Ret = FontInstall.WriteProfileString("fonts", FontName + " (TrueType)", FontFileName);
[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);
const int WM_FONTCHANGE = 0x001D;
const int HWND_BROADCAST = 0xffff;