Results 1 to 2 of 2

Thread: How Delete Application Itself?

  1. #1
    Join Date
    Oct 2010
    Posts
    1
    Qt products
    Qt3 Qt4 Qt/Embedded Qt Jambi PyQt3 PyQt4
    Platforms
    MacOS X Unix/X11 Windows

    Default How Delete Application Itself?

    Hi everyone,

    I'm programming an cross-platform installer with qt. When run "uninstall.exe" file, other files can delete and uninstall.exe itself can't delete.

    How to delete the uninstall.exe file?

  2. #2
    Join Date
    Oct 2010
    Posts
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How Delete Application Itself?

    Hi!
    Actually I'm not an expert in QT, but, I think I can give you a thought how to make that; you can make "uninstall.exe" rely on the "command prompt" to delete the files, but, be sure to place the deletion code in the end of the program's code to ensure that the "uninstall.exe' would be terminated and then "command prompt" would delete it.
    *May the above thought is not clear to be done, but, any program removing operation flows the same way; make a system component delete the running 'exe' after terminates it.

    Sorry for prolixity, and hope to have useful of my post.
    BEING ALONE IS BETTER THAN...
    BEING ROUNDED BY IDIOTS...

Similar Threads

  1. Replies: 3
    Last Post: 21st July 2010, 08:40
  2. i need to know insert and delete methods in qsql for phone book application
    By gaurav purohit in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 15th September 2009, 15:04
  3. Replies: 4
    Last Post: 19th February 2009, 12:10
  4. Application that run once,and Delete itself!
    By triperzonak in forum Qt Programming
    Replies: 5
    Last Post: 18th September 2008, 12:30
  5. new e delete
    By mickey in forum General Programming
    Replies: 1
    Last Post: 17th July 2006, 15:11

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.