Page 1 of 1
Making self-deleting program
Posted: Sat Jun 19, 2010 6:43 pm
by alemrantareq
Hi everybody, I just want to know is it possible with rev to make a self-deleting program? I need it for uninstallation purpose. Replies are most appreciated

Re: Making self-deleting program
Posted: Sun Jun 20, 2010 3:49 pm
by Mark
alemrantareq,
This is not really possible, but you can copy a minimal standalone application to a temporary directory and have that application delete all the other files. This is what the uninstaller of the
Installer Maker plugin does.
Best,
Mark
Re: Making self-deleting program
Posted: Sun Jun 20, 2010 5:49 pm
by alemrantareq
It can be possible by creating a batch file. To do this, at first a batch file have to be opened and then write the following -
Code: Select all
PING 1.1.1.1 -n 3 -w 60000 >NUL
del (name of rev app)
del (batch file name)
Close the batch file and close your rev app. "on CloseStack" have to be used to launch the batch file. The batch file will now wait for 3 secs and then will delete the rev app as well as it'll delete itself. I prefer to give it a waiting time so that the rev app can get enough time to be closed.
Note: To change the waiting time, you have to replace "3" with your desired waiting secs after "-n".
Thanks
Mark for replying, but the plug-in needs registration.

Re: Making self-deleting program
Posted: Sun Jun 20, 2010 5:55 pm
by Mark
Hi alemrantareq,
Yes, you can do this with a batch file, but I'm not sure that it will work on all versions of Windows and obviously it is a windows-only solution (I didn't know you need it for Windows).
The Installer Maker plugin isn't free.
Best,
Mark
Re: Making self-deleting program
Posted: Sun Jun 20, 2010 6:03 pm
by alemrantareq
Mark wrote:Hi alemrantareq,
Yes, you can do this with a batch file, but I'm not sure that it will work on all versions of Windows and obviously it is a windows-only solution (I didn't know you need it for Windows).
The Installer Maker plugin isn't free.
Best,
Mark
Yes, I use Windows XP & I made my app only for XP purpose. So I think its good for me