Hi,
I'm looking for a way to cause a program to delete itself after a successful run.
It's an installation program that sets up a Palm universal conduit on the clients computer for some Palm apps I'll be deploying. After the conduit is created, the program is no longer needed.
Thanks,
Al.
Attached is a module that will delete an app once it has finished running.
Usage:
VB Code:
Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
DeleteAPP
End Sub
Basically what it does is in the unload event it writes a bat file and then shells it. This then loops and tries to delete the app. Once the app is no longer in existance the bat file deletes itself.
Try dropping it into a project, compile the project and run it. Close the exe and say good bye to it.