Delete Executeable
-
I want after my application run ,the executable file DELETE itself.Is that possible? Mazy "The path you tread is narrow and the drop is shear and very high, The ravens all are watching from a vantage point near by, Apprehension creeping like a choo-train uo your spine, Will the tightrope reach the end;will the final cuplet rhyme?"Cymbaline-Pink Floyd
-
I want after my application run ,the executable file DELETE itself.Is that possible? Mazy "The path you tread is narrow and the drop is shear and very high, The ravens all are watching from a vantage point near by, Apprehension creeping like a choo-train uo your spine, Will the tightrope reach the end;will the final cuplet rhyme?"Cymbaline-Pink Floyd
Mazdak wrote: Is that possible? No ----------------------- Perhaps if you make a batch file and run that batch file when closing your app. Make loop in your batch file that tries to delete your EXE! but your batch file will still be there... :( ------------------------------------ Rickard Andersson, Suza Computing ICQ#: 50302279 I'm from the winter country SWEDEN! ------------------------------------
-
Mazdak wrote: Is that possible? No ----------------------- Perhaps if you make a batch file and run that batch file when closing your app. Make loop in your batch file that tries to delete your EXE! but your batch file will still be there... :( ------------------------------------ Rickard Andersson, Suza Computing ICQ#: 50302279 I'm from the winter country SWEDEN! ------------------------------------
So,how can I make it run only for ONE time? Like trial version programs. Mazy "The path you tread is narrow and the drop is shear and very high, The ravens all are watching from a vantage point near by, Apprehension creeping like a choo-train uo your spine, Will the tightrope reach the end;will the final cuplet rhyme?"Cymbaline-Pink Floyd
-
So,how can I make it run only for ONE time? Like trial version programs. Mazy "The path you tread is narrow and the drop is shear and very high, The ravens all are watching from a vantage point near by, Apprehension creeping like a choo-train uo your spine, Will the tightrope reach the end;will the final cuplet rhyme?"Cymbaline-Pink Floyd
-
So,how can I make it run only for ONE time? Like trial version programs. Mazy "The path you tread is narrow and the drop is shear and very high, The ravens all are watching from a vantage point near by, Apprehension creeping like a choo-train uo your spine, Will the tightrope reach the end;will the final cuplet rhyme?"Cymbaline-Pink Floyd
alternatively i have just thought, Make a second app and get that to delete the first, waiting for the first one to delete. Therefore you will be left with the second app. Which is just there to remove the first and contains no info. alternatively again make a batch file :laugh:
-
So,how can I make it run only for ONE time? Like trial version programs. Mazy "The path you tread is narrow and the drop is shear and very high, The ravens all are watching from a vantage point near by, Apprehension creeping like a choo-train uo your spine, Will the tightrope reach the end;will the final cuplet rhyme?"Cymbaline-Pink Floyd
Sorry, but then I can't help you! :( But if you want an unsafe way to do it: Write something to a file (EXE, DLL or just a file) in binary (of course) and then read from that file to see if it has run before! Understand? ------------------------------------ Rickard Andersson, Suza Computing ICQ#: 50302279 I'm from the winter country SWEDEN! ------------------------------------
-
Sorry, but then I can't help you! :( But if you want an unsafe way to do it: Write something to a file (EXE, DLL or just a file) in binary (of course) and then read from that file to see if it has run before! Understand? ------------------------------------ Rickard Andersson, Suza Computing ICQ#: 50302279 I'm from the winter country SWEDEN! ------------------------------------
There a solution to that in msdn, if u don't find email me at blackhorus@caramail.com, so i can send u the article.
-
I want after my application run ,the executable file DELETE itself.Is that possible? Mazy "The path you tread is narrow and the drop is shear and very high, The ravens all are watching from a vantage point near by, Apprehension creeping like a choo-train uo your spine, Will the tightrope reach the end;will the final cuplet rhyme?"Cymbaline-Pink Floyd
Yes. Copy the file to a temp dir and run it from there. When the app ends, it should add a registry entry (I forget which) requesting Windows to delete it the next time Windows restarts. /ravi "There is always one more bug..." http://www.ravib.com ravib@ravib.com