iceberg Posted July 11, 2006 Share Posted July 11, 2006 Hi, Just wondering if it is possible to write a program using AU3 which can only be launched/executed once...meaning that once it has been launched, even if the user brings the program to another PC, it should NOT launch again. thanks. mouse not found....scroll any mouse to continue. Link to comment Share on other sites More sharing options...
evilertoaster Posted July 11, 2006 Share Posted July 11, 2006 why not just delete the file then after it runs? Link to comment Share on other sites More sharing options...
Briegel Posted July 12, 2006 Share Posted July 12, 2006 If you want to know how to delete your program have a look here. Link to comment Share on other sites More sharing options...
/dev/null Posted July 12, 2006 Share Posted July 12, 2006 once...meaning that once it has been launched, even if the user brings the program to another PC, it should NOT launch again.help file: _Singleton()CheersKurt __________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf * Link to comment Share on other sites More sharing options...
iceberg Posted July 12, 2006 Author Share Posted July 12, 2006 hi, thanks for the replies. i can't delete the file cos its gonna be distributed via a cd media. pls asisst. thanks. mouse not found....scroll any mouse to continue. Link to comment Share on other sites More sharing options...
/dev/null Posted July 12, 2006 Share Posted July 12, 2006 (edited) pls asisst. thanks.O.K. AGAIN: beta help file: _Singleton()CheersKurt Edited July 12, 2006 by /dev/null __________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf * Link to comment Share on other sites More sharing options...
iceberg Posted July 12, 2006 Author Share Posted July 12, 2006 hi kurt, thanks again for the reply. what i actually meant was a way to "protect" the file. meaning the program will have some kind of a protection method which will prevent the user from running the program twice. eg...user runs the program on monday at 7pm. shuts down the pc and turns it on wed at 3pm. when he launches the program, it should prompt him that the program has "extinct". meaning he can't use the program ever again. he won't be able to open the program even if he runs it on a diff pc. how? mouse not found....scroll any mouse to continue. Link to comment Share on other sites More sharing options...
/dev/null Posted July 12, 2006 Share Posted July 12, 2006 (edited) eg...user runs the program on monday at 7pm. shuts down the pc and turns it on wed at 3pm. when he launches the program, it should prompt him that the program has "extinct". meaning he can't use the program ever again. he won't be able to open the program even if he runs it on a diff pc.how?Ah, O.K. There have been several discussions about this. Search the forum for something like "+run +once" or "+code +protect".Basically this is what you can do:Create a registry entry when the tool is run the first time. Then check that entry every time the tool startsInstead of the registry write a kind of log fileProblem: It is easy to reverse engineer those methods and to delete the entries in the file or registry.Create a uniqe ID for the computer that runs the tool and send that information to your server on the internet. The server can then check if the tool was already started earlier. If the tool has expired it will return an appropriate message to your tool, which then exits. You can use the TCP functions to acomplish this.EDIT: Reading your first post again, only the later method will work, especially if you distribute the tool via a CD!CheersKurt Edited July 12, 2006 by /dev/null __________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf * Link to comment Share on other sites More sharing options...
iceberg Posted July 12, 2006 Author Share Posted July 12, 2006 thanks alot for the info Kurt! mouse not found....scroll any mouse to continue. Link to comment Share on other sites More sharing options...
Iznogoud Posted July 12, 2006 Share Posted July 12, 2006 Ah, O.K. There have been several discussions about this. Search the forum for something like "+run +once" or "+code +protect".Basically this is what you can do:Create a registry entry when the tool is run the first time. Then check that entry every time the tool startsInstead of the registry write a kind of log fileProblem: It is easy to reverse engineer those methods and to delete the entries in the file or registry.Create a uniqe ID for the computer that runs the tool and send that information to your server on the internet. The server can then check if the tool was already started earlier. If the tool has expired it will return an appropriate message to your tool, which then exits. You can use the TCP functions to acomplish this.EDIT: Reading your first post again, only the later method will work, especially if you distribute the tool via a CD!CheersKurtThen you got a problem with most people who are running a good firewall. If you use the last method you got the next problems:FirewallSimple disable your internet connectionSome people wich still doesn't have permanent internet connection Link to comment Share on other sites More sharing options...
/dev/null Posted July 12, 2006 Share Posted July 12, 2006 Then you got a problem with most people who are running a good firewall. If you use the last method you got the next problems:FirewallSimple disable your internet connectionSome people wich still doesn't have permanent internet connectionwell, you could use TCP/80 which is open on most of the firewalls for home use. Otherwise you are right. People without internet connection won't be able to use the tool. It's a tradeoff between protecting the tool and having a lot of happy "customers".CheersKurt __________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf * Link to comment Share on other sites More sharing options...
iceberg Posted July 12, 2006 Author Share Posted July 12, 2006 hhmm...thanks for highlighting potential problems.... mouse not found....scroll any mouse to continue. Link to comment Share on other sites More sharing options...
MHz Posted July 12, 2006 Share Posted July 12, 2006 @iceberg,Take a look at Larry's function here which can write to the tail of exe itself so it can run a second time with the knowledge of the change. No good if used on read only media.@Kurt,Nice to see you back Link to comment Share on other sites More sharing options...
/dev/null Posted July 12, 2006 Share Posted July 12, 2006 @Kurt,Nice to see you back Thanks ...CheersKurt __________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf * Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now