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. Unistaller

Unistaller

Scheduled Pinned Locked Moved C / C++ / MFC
windows-admintoolshelpquestion
4 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.
  • U Offline
    U Offline
    u6ik
    wrote on last edited by
    #1

    Hi All I have written an uninstall program to compliment an install program I have produced. However, how do you get around the problem of removing the uninstall program? It won't delete itself when running. How is uninstall usually done? I do note that my current install program does not inform the Windows Add/Remove Programs utility - which means I can't use that. It does use the registry but what settings are needed to use the Windows Add/Remove utility? Is there a way of informing Windows of the program so that I can use the Add/Remove functionality? Many thanks u6ik

    D A 2 Replies Last reply
    0
    • U u6ik

      Hi All I have written an uninstall program to compliment an install program I have produced. However, how do you get around the problem of removing the uninstall program? It won't delete itself when running. How is uninstall usually done? I do note that my current install program does not inform the Windows Add/Remove Programs utility - which means I can't use that. It does use the registry but what settings are needed to use the Windows Add/Remove utility? Is there a way of informing Windows of the program so that I can use the Add/Remove functionality? Many thanks u6ik

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      u6ik wrote: However, how do you get around the problem of removing the uninstall program? It won't delete itself when running. One way is with MoveFileEx(..., MOVEFILE_DELAY_UNTIL_REBOOT). If you need this functionality on Windows 95, you'll need to use the wininit.ini file. See here for more.


      "Ideas are a dime a dozen. People who put them into action are priceless." - Unknown

      U 1 Reply Last reply
      0
      • D David Crow

        u6ik wrote: However, how do you get around the problem of removing the uninstall program? It won't delete itself when running. One way is with MoveFileEx(..., MOVEFILE_DELAY_UNTIL_REBOOT). If you need this functionality on Windows 95, you'll need to use the wininit.ini file. See here for more.


        "Ideas are a dime a dozen. People who put them into action are priceless." - Unknown

        U Offline
        U Offline
        u6ik
        wrote on last edited by
        #3

        Outstanding. Cheers Dave. u6ik

        1 Reply Last reply
        0
        • U u6ik

          Hi All I have written an uninstall program to compliment an install program I have produced. However, how do you get around the problem of removing the uninstall program? It won't delete itself when running. How is uninstall usually done? I do note that my current install program does not inform the Windows Add/Remove Programs utility - which means I can't use that. It does use the registry but what settings are needed to use the Windows Add/Remove utility? Is there a way of informing Windows of the program so that I can use the Add/Remove functionality? Many thanks u6ik

          A Offline
          A Offline
          Alexander M
          wrote on last edited by
          #4

          You can use a .cmd file for it... There is a tutorial about that... but I don't remember where I found it... try google. Don't try it, just do it! ;-)

          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