Page 1 of 1

is this even possible

PostPosted: Fri Jan 30, 2015 11:18 am
by stevec
I have a app that I have password protected. Is it possible that if the password is not correct that the app can be 'self deleted'
I have a script that allows the password to be stored into three variables and if the third on is not correct, than a popup message
is displayed. After the opup closes, I'd like to have the app deleted. Is this even possible?
Here is what I have below;

****************** begin script

SetVar "[password]" "*****"
Delay "200"
lgaDialogLogin "" "Enter your Password"
Delay "200"
If "[PwdBoxPwd]" "<>" "*****"
SetVar "[PW1]" "no"
.Else
lgaDialogLogin "" "Enter your Password"
Delay "200"
If "[PwdBoxPwd]" "<>" "*****"
SetVar "[PW2]" "no"
.Else
lgaDialogLogin "" "Enter your Password"
Delay "200"
If "[PwdBoxPwd]" "<>" "*****"
SetVar "[PW3]" "no"
If "[PW3]" "=" "no"
.AlertBox "" "you have entered the wrong password three times. |deleting application"
StickyNote "15" "73" "you have entered the wrong password three times. |deleting application" "1000"
,FileErase "[PubDir]pass.exe"
Else
EndIf
EndIf

************************************End script

Thanks;
Steve

Re: is this even possible

PostPosted: Fri Jan 30, 2015 11:21 am
by Neosoft Support
It's not something that's easy to do, but here's an article with some suggestions:

http://www.catch22.net/tuts/self-deleting-executables

Re: is this even possible

PostPosted: Fri Jan 30, 2015 11:32 am
by stevec
Thanks will read it. :P :P :P :P :P