Perhaps a first installer version of Pelles C
code for testing many Pelles C versions and remove registry setting:#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#define NOCRT
#ifdef NOCRT
#pragma nodefaultlib
void __cdecl WinMainCRTStartup(void)
#else
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpszCmdLine, int nCmdShow)
#endif
{
HKEY hKey;
DWORD dwRC;
dwRC = MessageBox(0, "Remove PellesC reg settings ?", "POCDelRegKey", MB_OKCANCEL);
if (dwRC == MB_OK)
{
hKey = 0;
if (!RegOpenKey(HKEY_CURRENT_USER, "Software\\Pelle Orinius", &hKey))
{
RegDeleteKey(hKey, "PellesC");
RegCloseKey(hKey);
}
}
#ifdef NOCRT
ExitProcess(0); //return;
#else
return 0;
#endif
}