Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How can I get Windows installation date ?

How can I get Windows installation date ?

Scheduled Pinned Locked Moved C / C++ / MFC
c++questionhelp
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    koloporanistka
    wrote on last edited by
    #1

    I look for any function that can get me date that OS Windows was installed on the PC. From command line I get this information by running systeminfo, but I need this from Visual C++. Please help. Thanks, Nina

    J R 2 Replies Last reply
    0
    • K koloporanistka

      I look for any function that can get me date that OS Windows was installed on the PC. From command line I get this information by running systeminfo, but I need this from Visual C++. Please help. Thanks, Nina

      J Offline
      J Offline
      Jun Du
      wrote on last edited by
      #2

      Can you shell execute this command within your code?

      Best, Jun

      K 1 Reply Last reply
      0
      • J Jun Du

        Can you shell execute this command within your code?

        Best, Jun

        K Offline
        K Offline
        koloporanistka
        wrote on last edited by
        #3

        No, I prefer to use API.

        1 Reply Last reply
        0
        • K koloporanistka

          I look for any function that can get me date that OS Windows was installed on the PC. From command line I get this information by running systeminfo, but I need this from Visual C++. Please help. Thanks, Nina

          R Offline
          R Offline
          RicoH
          wrote on last edited by
          #4

          I think WMI will be your thing. Take a look at 'Win32_OperatingSystem', there's an InstallDate property.

          Don't think you are, know you are... custom hardware & software - olloc.be

          J 1 Reply Last reply
          0
          • R RicoH

            I think WMI will be your thing. Take a look at 'Win32_OperatingSystem', there's an InstallDate property.

            Don't think you are, know you are... custom hardware & software - olloc.be

            J Offline
            J Offline
            Jun Du
            wrote on last edited by
            #5

            Good answer:rose: I thought about WMI, but did know Win32_OperatingSystem has a InstallDate property.

            Best, Jun

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups