I have a small app that checks the dotnet framework, if it is not installed it will install it
Now when the application starts i want to popup a gif image with something like loading and in background check the framework and install. the catch here is that it can not have any prerequisite to run the application
here is what i have till now
1 2 3 4 5 6 7 8 9 10 11 12 13 14
int APIENTRY wWinMain(_In_ HINSTANCE hInstance,
_In_opt_ HINSTANCE hPrevInstance,
_In_ LPWSTR lpCmdLine,
_In_ int nCmdShow)
{
int exitCode = -1;
showPic(hInstance);
MessageBox(0L, L"Dotnet will installed", L"Alert", 0);
auto fut = std::async(std::launch::async, DoWork, hInstance, lpCmdLine);
fut.wait();
exitCode = fut.get();
return exitCode;
}
Now what is happening here is that the if i dont show the messagebox the picture does not load in the window, and still the window goes into not responding mode also i could not get it work with gif, only with bmp images
any help is appriciated