Solved

Setup Win 98 Question..

Posted on 2000-03-18
11
180 Views
Last Modified: 2013-12-28
I wanted to know, how the Win98 Setup Program checks the Install key... Does it check what YOU enter with a file on the CD or your Hard Drive and either way, how can I find out, how it decides which code are good and which are bad??

I want to know this because I plan on using it in my own program setup....
0
Comment
Question by:jasinski
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
  • 2
  • +2
11 Comments
 

Expert Comment

by:bashley
ID: 2632416
There is no reference to the CD; You can install from a copy on the hard disk after removing the CD.  Also various keys can be used with one CD.

The product key is coded to indicate the type of license purchased.  The setup.exe file is different for upgrade versus full install versions.  The key is validated with some sort of check-sum algorithm and in the case of upgrades validation requires the presence of certain files such as win.com.
0
 

Expert Comment

by:Kilo5
ID: 2632787
wait a tick bashley, you mean that you could theoretically make a "upgrade" version a "full" version mearly by entering a CD key of a "full" version or vice versa?
0
 

Expert Comment

by:lgadi
ID: 2632920
Hi
 
  As far as I know, there's a checksum test on the number you entered. Mostly you won't be able to use an upgrade version for a full install merely by entering the right serial number, because it's a different program all together (usually, it won't even have all the necessary files for a full install).
However, on a Win 2000 installation, for example, the remote install disk, which is run as an upgrade, and the full install, are on the same disk, and simply run from a different location.

0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 54

Expert Comment

by:nico5038
ID: 2633415
I think the above comments are correct about the chechsum.

For your application this means that you have to create an algorithm like:

First character times 9
Second character times 8
...
Nineth character times 2

Sum these up and take remainder of sum divided by 11.

This should be the value of the tenth character.

This algoritm can be used in one function to perform both tasks:
1) To check
2) To generate new numbers
The function just calculates the number "to be" by updating the tenth character. When the offered number is to be checked, the result would have to be equal the input value otherwise it's wrong!
0
 

Expert Comment

by:bashley
ID: 2633963
The upgrade CD has all the files for a full install, at least in the cases I've tried.
0
 

Author Comment

by:jasinski
ID: 2635440


--=+ Thanks for your help but, +=--

How can I view this file and find out
how it decodes and encodes...........
0
 

Expert Comment

by:Kilo5
ID: 2635479
Hey I've had a problem that I hate the bundled software that comes with my Aptiva, I purchased the Win98SE hoping to be able to do a full install without having to first install the bundled software (Win98 was bundled with it).

I called up IBM and they quite frankly told me I couldn't install just my OS without putting in all the rest of the software.  So what right? I'll just install it all and then uninstall that which I do not need right?

Well turns out my purchsed CD-R and software and my bundled sound card software, didn't like each other and would often crash.  I was told that I could just put in the Win98SE CD and then at a certain part of the setup it would ask for the old Win98 CD.  Didn't happen.

How did I solve my problem?  I deleted every folder in the root directory of my startup disk besides the Windows folder.  Then took my Win98SE CD and reinstalled the OS and all my other programs.  So far.... no problems.

However, (back to the part related ot the origional question) could I just the OS on a formated drive if I used the CD Key of a CD that is the "full" install?  (As opposed to the "update")

Part of the origional question was "how does it decide" (we answered that with the checksum part)

Still the question remains, "how the Win98 Setup Program checks the Install key... Does it check what YOU enter with a file on the CD or your Hard Drive?"

To answer that question: I believe it would have to be a file on the CD or a file your CD copied to the hard drive (or RAM disk).  If it didn't come from there it would have to come from either DOS or your Boot Disk, so I'm beting on that it checks the CD to see if the number you gave matches with their algorithm.  (Once my little brothers didn't know where to find their CD Key for a game and so they just entered in 1234567890 and it worked)  Sorry for the novel size writing
0
 

Expert Comment

by:Kilo5
ID: 2635493
Boy I just read what I wrote and except for the last part it doesn't make much sense but as to being able to "view" the file, that is probably buried inside the setup.exe executable.  Unless you can do some backwards enginering or something hacking related i'm fairly sure you can't view it at all.  (Besides, if you could so easily piracy would run rampant)
0
 
LVL 54

Accepted Solution

by:
nico5038 earned 25 total points
ID: 2636785
Sorry jasinski, but you'll have to code probably your own routine as I mentioned above. Perhaps a web-search might hit a key generator.

Just try a search with modulo-11 and you'll hit probably some banknumber check routines, which could also do the trick for you.
0
 

Author Comment

by:jasinski
ID: 2638967
I don't know what modulo-11 is but anyway..
0
 
LVL 54

Expert Comment

by:nico5038
ID: 2639062
It's together with other modulo-"numbers" a checking algorithm for numbers like that for a bank-account.

Normally the last digit of a bank accountnumber is calculated and checked for transactions.
0

Featured Post

Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is a collection of issues that people face from time to time and possible solutions to those issues. I hope you enjoy reading it.
This article provides a convenient collection of links to Microsoft provided Security Patches for operating systems that have reached their End of Life support cycle. Included operating systems covered by this article are Windows XP,  Windows Server…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question