I might not be clear enough in my previous post. When the PC was booted into Safe mode, the RunOnceEx entry was gone. There is only 1 program that I am trying to run. Below is the code I used to add the RunOceEx registry entry. // Code snippet to add RunOnceEx entry // // check, if RunOnceEx registry key exists { if( RegOpenKeyEx( HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\RunOnceEx", 0, KEY_ALL_ACCESS, &hRunOnceKey ) != 0 ) { // if not, attempt to create it if( RegCreateKey( HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\RunOnceEx", &hRunOnceKey) != 0) { // failed to create RunOnceEx registry key return -1; } } // create a new registry key for our application if( RegCreateKey(HKEY_LOCAL_MACHINE,"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\RunOnceEx\\1",&hRunOnceKey) != 0) { return -1; } // Set registry value Len = 512; sprintf( Path, "%s\\Install.exe -1", CurrentDir ); if( RegSetValueEx( hRunOnceKey, "!1", NULL, REG_SZ, (BYTE*)Path, Len ) != ERROR_SUCCESS ) { return 0; } RegCloseKey( hRunOnceKey );