Click here to Skip to main content
15,896,063 members
Please Sign up or sign in to vote.
1.44/5 (2 votes)
See more:
Hi! I'm always thank you for your help.

Well, I wanna make a program which can work only few days! So, I've searched method of making trial programs on Internet and have made it.

Trial Information which contain limited using days is written on MBR's code area(Of course error message area in MBR's code area).

With this, program can keep it's trial information after it has been re-installed. It's well done, I think. But it has a problem!

When user reinstall Windows, trial information in MBR's code area is erased and users can use program when it's date is expired!

It's very serious for me! Please help me.

Could anybody know how to keep trial information after windows has been reinstalled?
Hope your answers.
Posted
Comments
Mehdi Gholam 29-Aug-14 4:21am    
Messing with the MBR is *not recommended*
WuRunZhe 29-Aug-14 4:23am    
Yes, you're right. Messing with MBR is very dangerous.
However, when user reinstall Windows, MBR code area is reinstalled also. So trial information on it has been removed.
Mehdi Gholam 29-Aug-14 4:35am    
By definition if someone has installed a product on one machine then they have the right to reinstall and use it on that same machine regardless of reformatting that computer.

1 solution

Don't even try: writing anything to the MBR is a poor idea as it is very likely to get you tagged as a virus.

And the MBR is not "Protectable" over operating system installs - any OS install will overwrite the MBR as it does not know what the previous OS was - and it doesn't care.

If you want a "fool proof" system (or close to, any protection can be defeated) you are looking at connecting to a computer under your control and yours only: connection to a server via the internet and approve / disapprove there.

But frankly, I wouldn't spend too much time on this: compare the value of your time with the amount of sales you won't get if there is no protection and it doesn't take long before you are costing yourself money to add it!

And remember: if your app is "Popular" or "expensive" then it's more of a target for hackers: Adobe spend a lot of money easy year protecting Photoshop - and "cracked" version appear on the torrent sites pretty much the same day as they release a new version...
 
Share this answer
 
Comments
WuRunZhe 29-Aug-14 4:34am    
Thank you for advice!
I also know online approve is the best way. But my program is used in offline states so it's not fix answers. Thank you.
WuRunZhe 29-Aug-14 4:46am    
Well, What about Storing trial information on the last raw sector on Hard Disk?
OriginalGriff 29-Aug-14 4:53am    
1) A format will destroy it.
2) How do you know it isn't in use?
WuRunZhe 29-Aug-14 4:58am    
Well, original format didn't erase every sectors, it only rewrite FAT table.

"What about Storing trial information on the last raw sector on Hard Disk", last raw sector means the final sector of the hard disk.

I think it could be written before user store data full of hard disk.
OriginalGriff 29-Aug-14 5:01am    
A "Quick format" only re-writes the FAT.
A full format checks eveything.

And a defrag can move data around...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900