VirtualBox

Changeset 28546 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
Apr 21, 2010 8:30:20 AM (15 years ago)
Author:
vboxsync
Message:

VBoxService: Delete stale installation directory + version/rev entries if none found (anymore).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceVMInfo.cpp

    r27552 r28546  
    181181        RTStrFree(pszAddRev);
    182182    }
     183    else /* If not found delete stale entries. */
     184    {
     185                rc = VBoxServiceWritePropF(g_VMInfoGuestPropSvcClientID, "/VirtualBox/GuestAdd/Version", NULL);
     186                rc = VBoxServiceWritePropF(g_VMInfoGuestPropSvcClientID, "/VirtualBox/GuestAdd/Revision", NULL);
     187        }
    183188
    184189#ifdef RT_OS_WINDOWS
     
    193198        RTStrFree(pszInstDir);
    194199    }
     200    else /* If not found delete stale entry. */
     201    {
     202                rc = VBoxServiceWritePropF(g_VMInfoGuestPropSvcClientID, "/VirtualBox/GuestAdd/InstallDir", NULL);
     203        }               
    195204    VBoxServiceWinGetComponentVersions(g_VMInfoGuestPropSvcClientID);
    196205#endif
     206
     207        /* return rc; */
    197208}
    198209
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette