
Rewording of above problem
Quote:
>> ok, I want my install program to fix in all the rest of my exe files
> some
>> kind of a PC -specific information. Such that, once the EXE files ar
>e copied
>> to another PC (without my installation routine) using a floopy disk
>(assuming
>> somoen makes illegal copies). then.. the exe files wont run as they
>have info
>> of the original PC.
>> I'm looking for some such PC-specific environment variable which Qui
>ckbasic
>> can access ? i tried Environ$ but can't get any clues about what spe
>icifc
>> info to look out on a PC>. ( can any two PC's be identical ?).
>> this is the only "Soft" way of avoiding illegal copies of your EXE f
>iles
>> being made via DOS copy . I don't want to use a hardware lock. Is th
>ere any
>> other way of avodiing multiple copies being made ??
>> thanks
>> alok
>> --
>> ------------------------------------
>> Very funny Scotty !
>> Now Beam down my clothes !
>> Capt.James T.Kirk
>> ------------------------------------
>Curious problem.
>I have seen programs that do exactly that and I'm not sure how but I s
>uspect
>they do something along these lines.
>On the original floppy disk is a file that was originally say 200 byte
>s long
>with the last byte or two (or more) holding install info.(say AA & 55)
>Prior to distributing the floppy you modify the directory entry for th
>at file
>and change the file size to say it's only 198 bytes long.
>Now if someone trys to just copy the file the copy process only copies
> the
>first 198 bytes. (They don't get the AA & 55 bytes)
>When your install program runs it changes the size of that file back t
>o 200
>bytes then checks those two bytes for the proper values and if correct
> proceeds
>with the install process. When the install is complete it changes the
>AA & 55
>to say A5 & 5A to indicate that the program has already been installed
> once.
>The next time someone trys to install the program either from the orig
>inal
>floppy or a copy the install program can again check those two bytes a
>nd
>refuse to complete the process if they are not the correct values.
>You would also need an uninstall program to reverse the process if som
>eone
>wanted to move the program to another machine.
>The trick is, how does one modify the directory entry for a file?
>I don't have the answer to that. Maybe someone else does.
>Like I said I've seen programs that do what you want and have copied t
>he
>original floppy then ran the install then compared the original files
>to
>the copies and nothing appeared to have changed...but something had to
>.
>So my only guess is that they are writing beyond the end of a file or
>are
>doing some kind of absolute sector write to the disk.
>I hope you followed all that...I think I did.
>Not a solution...but food for thought.
>--
>Bangor, Pa. USA
This is one scheme that is certianly valid, however in most cases there
is a slight modification to an area of the DISK whick MS-DOS does not
format. There is about 300K of unused or unseen space on each 1.44 M
disk. Special programs (FDFORMAT.EXE) allow a 1.44 M to be formatted
to 1.7 M but MS-DOS is NOT capable of looking at anything above 1.44 M
...The INSTALL or SETUP program can look at this area to check for
the validity of the DISK.
Beau Schwabe
The idea of changing the END of the file can be modified by using
Norton-Utilities.
Beau Schwabe