self deleting exe

This forum contains short topics that require short answers. Developers arround the world are welcomed to help the community, or to post their own questions.
[C++ development]

Moderators: Teksoft, admin

self deleting exe

Postby crack » Thu Aug 03, 2006 6:18 pm

can a exe be self deleting i.e .it delets once it is closed :oops:
crack
Firebird
Firebird
 
Posts: 54
Joined: Sat May 06, 2006 10:32 am

Postby sad_ghost » Thu Aug 03, 2006 6:20 pm

If its part of a one exe file cab you could call the uninstall process at exit and have your file removed.
Just a tought :)

Cheers,
Raul
sad_ghost
TEK-Giant
TEK-Giant
 
Posts: 269
Joined: Thu Apr 06, 2006 11:04 am

Postby crack » Thu Aug 03, 2006 6:45 pm

do u mean to create a cab file for the deletion?
but there are no deletionkeys in the .inf file
crack
Firebird
Firebird
 
Posts: 54
Joined: Sat May 06, 2006 10:32 am

Postby sad_ghost » Thu Aug 03, 2006 6:55 pm

I ment that your exe file has to get somehow on the device (surely trough a cab).
So if you want to delete this file at exit why not call the uninstall process at exit so the uninstall process will take care of deleting the file.
It can be done from setup.dll also (if you want to make sure that the exe file has no active instance).
Cheers,
Raul Tinca
sad_ghost
TEK-Giant
TEK-Giant
 
Posts: 269
Joined: Thu Apr 06, 2006 11:04 am


Return to Pocketpc

Who is online

Users browsing this forum: No registered users and 1 guest


cron