|
Hi.
I haven't looked much at the source code yet, but as I did, I didn't find a way to reset the timer.
When I first launched the example, it said I had 30 days left. I then clicked: Continue Unregistered, and the popup box with the "Were this not a demonstration, blah blah...", and I clicked OK... Then I launched it again, and this time I did not have 30 days, left, but three hundred and something, while it told me the system clock had been changed -.-
Is this a bug? (I'm on Vista)
MulleDK13 (http://www.splintercell3.treesoft.dk)
|
|
|
|
|
Wait.. I get it...
Public RegSubKeyName As String = "HardToGuessNameHere1"
But still... it's only working the first time..
"You have 30 days remaining"
and next time
"You have 323 days remaining", and the "system clock changed" warning -.-
OH! Might have something to do with the "UK dates" reply... Guess it's the same as Denmark... I'll try
YEP! That fixed it
So, what if someone downloads my program, and doesn't live in Europe? Then they have a single run, before the trial period expires -.-
MulleDK13 (http://www.splintercell3.treesoft.dk)
modified on Tuesday, February 12, 2008 12:54 PM
|
|
|
|
|
Hi,
I'm having trouble with just getting the program to run. I've changed dates to the UK format.
Now i'm getting the warning that I have changed the system date.
I am a retired pensioner with an interest in VB, I am currently using Vista and Visual Studio 2008
I could really use a great deal of help in how to set up the program, what changes need to be changed and what to do now that the web site for registering the program no longer seems to exist.
I'm asking a lot of you I know, but I do hope you can help as it appears that Tyler is tied up with two or three projects at the moment.
Yours fraternaly
Ken
|
|
|
|
|
This program is really useful, thanks, but there is a problem when used on computers in the UK. I thought I'd post a fix for anyone with the same problem. The problem is that the program will fail for computers using the UK date system (DD/MM/YYYY rather than MM/DD/YYYY) but this can be easily fixed with a couple of minor changes:
The following code is in the Form1_Load class:
Dim OldDate As String = OldMonth & "/" & OldDay & "/" & OldYear
If DateTime.Now.Compare(DateTime.Now, OldDate) < 0 Then
unregbutton.Enabled = False
InTrial = False
oReg = Registry.LocalMachine.OpenSubKey("Software", True)
oReg = oReg.CreateSubKey(RegSubKeyName)
oReg.SetValue("Enable", "1")
oReg.Close()
End If
Must be changed to:
Dim OldDate As String = OldDay & "/" & OldMonth & "/" & OldYear
If DateTime.Now.Compare(DateTime.Now, OldDate) < 0 Then
unregbutton.Enabled = False
InTrial = False
oReg = Registry.LocalMachine.OpenSubKey("Software", True)
oReg = oReg.CreateSubKey(RegSubKeyName)
oReg.SetValue("Enable", "1")
oReg.Close()
End If
Will also need to change the function DiffDate:
Public Function DiffDate(ByVal OrigDay As String, ByVal OrigMonth As String, ByVal OrigYear As String)
Try
Dim D1 = OrigMonth & "/" & OrigDay & "/" & OrigYear
Return DateDiff(DateInterval.Day, D1, DateTime.Now)
Catch
Return 0
End Try
End Function
to
Public Function DiffDate(ByVal OrigDay As String, ByVal OrigMonth As String, ByVal OrigYear As String)
Try
Dim D1 = OrigDay & "/" & OrigMonth & "/" & OrigYear
Return DateDiff(DateInterval.Day, D1, DateTime.Now)
Catch
Return 0
End Try
End Function
There may be other instances I haven't found yet which also need to be changed but I think thats it. Unfortunately this will only work for UK system environments now, I'm sure it would be possible to change this to be more generic by checking the local system to see which format should be used, but I can't be bothered.
|
|
|
|
|
Sorry, just noticed what I posted's been asked already in a different post, should have checked more thoroughly before posting!
|
|
|
|
|
I tried to change platform to .Net Compact plateform but some functions are not supported.
Is it possible to change to mobile platform?
|
|
|
|
|
In order to port to a compact platform you'd probably be able to reuse some of the code base, but would need to rewrite some functions. The GUI would also need to be redone. Unfortunately I have no experience with mobile device applications, so I'm not sure what help I can be. If you tell me what functions are unsupported I may be able to rewrite code to avoid them.
Tyler Menezes
www.TylerM.info
|
|
|
|
|
Let me start by saying this is a great program. I installed it in my app, built the app, installed it and it was working fine. When I tried to update the app(my application) if found that it didn't want to update. I deleted the installed version and tried to reinstall and received a message that their was an error. The details explained that the HardwareMotherboardID.dll already existed which is what is causeing the error. I've tried leaving this out of the build, with no luck...does anyone have any suggestions? FYI below is the error I'm getting...
ERROR SUMMARY
Below is a summary of the errors, details of these errors are listed later in the log.
* Activation of C:\MyApp\MyApp.application resulted in exception. Following failure messages were detected:
+ Downloading file:///C:/MyApp/MyApp_1_0_0_6/HardwareMotherboardID.dll.deploy did not succeed.
+ The file 'C:\Documents and Settings\me\Local Settings\Temp\Deployment\RW8HN9KH.0AV\62D1L2EE.574\HardwareMotherboardID.dll' already exists.
COMPONENT STORE TRANSACTION FAILURE SUMMARY
No transaction error was detected.
WARNINGS
There were no warnings during this operation.
OPERATION PROGRESS STATUS
* [7/10/2007 9:37:20 AM] : Activation of C:\MyApp\MyApp.application has started.
* [7/10/2007 9:37:20 AM] : Processing of deployment manifest has successfully completed.
* [7/10/2007 9:37:20 AM] : Installation of the application has started.
* [7/10/2007 9:37:21 AM] : Processing of application manifest has successfully completed.
* [7/10/2007 9:37:23 AM] : Request of trust and detection of platform is complete.
ERROR DETAILS
Following errors were detected during this operation.
* [7/10/2007 9:37:23 AM] System.Deployment.Application.DeploymentDownloadException (Unknown subtype)
- Downloading file:///C:/MyApp/MyApp_1_0_0_6/HardwareMotherboardID.dll.deploy did not succeed.
- Source: System.Deployment
- Stack trace:
at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)
at System.Deployment.Application.SystemNetDownloader.DownloadAllFiles()
at System.Deployment.Application.FileDownloader.Download(SubscriptionState subState)
at System.Deployment.Application.DownloadManager.DownloadDependencies(SubscriptionState subState, AssemblyManifest deployManifest, AssemblyManifest appManifest, Uri sourceUriBase, String targetDirectory, String group, IDownloadNotification notification, DownloadOptions options)
at System.Deployment.Application.ApplicationActivator.DownloadApplication(SubscriptionState subState, ActivationDescription actDesc, Int64 transactionId, TempDirectory& downloadTemp)
at System.Deployment.Application.ApplicationActivator.InstallApplication(SubscriptionState subState, ActivationDescription actDesc)
at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut)
at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
--- Inner Exception ---
System.IO.IOException
- The file 'C:\Documents and Settings\me\Local Settings\Temp\Deployment\RW8HN9KH.0AV\62D1L2EE.574\HardwareMotherboardID.dll' already exists.
- Source: mscorlib
- Stack trace:
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)
Thanks!
|
|
|
|
|
A little more info (I do not understand .dll's at all so this is a learning experience) If I delete the HardwareMotherboardID.dll from my project it installs fine...Do I have to make two download sites one for a new users and one for users just updating or am I handleing the .dll file wrong?
|
|
|
|
|
Try having your updating installer (or however you're patching your program) delete this file. If you're using the default VB one, have your users uninstall their old version first (the uninstaller shouldn't erase the registration registry entries, so your users shouldn't have any problems - do test first, though).
What I'd recommend, however, is that you include an auto-update feature inside your app which downloads and replaces your app with an updated version. There are some fantastic articles here on CP about creating this feature, and it would probably make your life and the user's lifes easier.
-Tyler
(PS: May I ask what your app does? I'm interested to know what my registration code is being used for )
Tyler Menezes
www.TylerM.info
|
|
|
|
|
Once the program is registered, I have noticed that the form "form1" still opens then immediately goes away. I prefer this form not even show up if the program is registered. Is there a way for this to happen?
Thanks a ton!
Ron
|
|
|
|
|
Yes, you need to have your program launch at start, use the registration checking to see if the user is registered, and pass the user on to the registration form if not. It's about 30 minutes of modifications, I'd guess.
Also, removing some of the graphics and using simple text makes it almost unnoticable, but it's not as nice looking.
Tyler Menezes
www.TylerM.info
|
|
|
|
|
hello
thank you from your code but i need the C# code
if maybe
|
|
|
|
|
This is VB.NET. There is no C# code.
Tyler Menezes
www.TylerM.info
|
|
|
|
|
Hi Tyler,
first let me thank you for your efforts to create this nice piece of code.
I want to use your registration form within my c# application. So far I had no luck in moving your VB forms into my code. So I thought about convertig your code into C#.
Do you think this is possible from a technical view, and even more important, do you allow that I convert your code to C# and use it in my app? Of course I will keep your Usage Restrictions and copyrights.
Thanks
Dirk
|
|
|
|
|
From a technical point of view, I see no reason why it shouldn't be possible to convert it to C#.
And of course I'd allow it to be converted to C#. If you do convert it, I'd actually be appriciative if you would allow me to upload it. Of course I'd give you credit. In either case, you can change the copyright text to something more like:
'Original code in VB.NET by Tyler Menezes<br />
'Converted to C# by Dirk
Let me know as to the status of this,
Tyler Menezes
|
|
|
|
|
Through the use of any reflector programe, you can view and regenerate the source code.
Any programmer/hacker can regenerate the code.
How to block this?
How to remove the CLI Header from the compiled code.
|
|
|
|
|
Sorry about the time its taken me to reply, but I just now noticed this :P
No registration program is 100% effective, and this is certainly no exception (you can learn many techniques to breaking registration programs on hackthissite.org). I've distributed the program in a completley comprehensible version, because it's supposed to be understandable. If you'd like to ensure that it's _harder_ to break, you can run the code through an obfuscation program. This would make it hard to understand how to bypass the program, but will also slow down the program.
I'd like to point out that any program you're protecting with this code can also be decompilied and recompilied without the registration program.
Tyler Menezes
www.TylerM.info
|
|
|
|
|
There is a free program called Yoda's Protector, which literally packs the program as a .exe. It works like normal, but can't be decompiled...
MulleDK13 (http://www.splintercell3.treesoft.dk)
|
|
|
|
|
MulleDK13 wrote: There is a free program called Yoda's Protector, which literally packs the program as a .exe. It works like normal, but can't be decompiled...
MulleDK13 (http://www.splintercell3.treesoft.dk)
I just did a Google search on "Yoda's Protector" and found more cracking guides available than positive comments about it!
|
|
|
|
|
The bottom line is that no matter what you do, if a computer can understand how to check registration than a human can too with enough work.
Tyler Menezes
www.TylerM.info
|
|
|
|
|
I like to automate as much as possible. This might be a step where there has to be some user intervention. When the user purchases a license and get a registration code...well, how do I produce a registration code on the fly?
I'm guessing that either I would have to run it as a .dll on a ASP server or populate an online tabler with a ton of reg codes and then assign them to people when they buy a copy.
Your thoughts?
|
|
|
|
|
I agree, but I don't have much experience with ASP.
If you'll look at the code, you'll notice serial numbers are generated by encrypting the username (I think in MD5... I can't really remember) with a user-set key and stripping of a certain amount of numbers. If you want to look at the code in the Serial Key Generator, and adapt it to an ASP environment, you should be able to verify the user completed a transaction and then process it based on name. You could print out some information to the browser then.
If you (or anyone else) knows much about ASP, PLEASE let me know. It would be great if someone could write something based on my source code. If I ever get around to learning about ASP, I'll write it myself, otherwise...
Tyler Menezes
www.TylerM.info
|
|
|
|
|
I've made one for my system: live.goldenlightsoft.org
It's possible, only you want to change the output to Base64 once hashing is complete (so you don't have to worry about the web browser supporting that character set!)
|
|
|
|
|
Hi tyler
At first merry Xmas and happy new year.... (Never not to let pass an occasion to use the good formulas learned at the school… ;0))
I made some softs for young learners and protected them with activelock : an ocx from nelson ferraz (nslock.ocx) It works well under vb6 ! But since i try to use vs 2005 express it is not also any more good .... too bad!
So i try to find something like this on the net and find your job. Upload it and run it under vs 2005 express. I get 30 notices and 0 errors during the importation in vs 2005.
I can send you theese if you like.
The first time i ran the project it worked but the second time
when i ran the project i got an invalid cast exception...
L'exception System.InvalidCastException n'a pas été gérée
Message="La conversion de la chaîne \"12/29/2006\" en type 'Date' n'est pas valide."
Is it a problem with date in other format than english format ?
quisnam igitur sanus ?
|
|
|
|
|