I have set win_sparkle_can_shutdown_callback_t functon. And this function is called, but both applications are running anyway. Updated application is running from some random temporary place. I'm expecting that main application will be shut downed and new version would be updated (overwritten) with new one. What is missing in my code?
int main(array<System::String ^> ^args)
{
// Enabling Windows XP visual effects before any controls are created
Application::EnableVisualStyles();
Application::SetCompatibleTextRenderingDefault(false);
win_sparkle_set_can_shutdown_callback( &allowShutdown);
win_sparkle_set_shutdown_request_callback( &ShutdownRequest );
win_sparkle_init();
win_sparkle_check_update_with_ui();
Application::Run(gcnew Form1());
win_sparkle_cleanup();
return 0;
}