?
Solved

Setup Win 98 Question..

Posted on 2000-03-18
11
Medium Priority
?
181 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
Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

 
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 75 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

WordPress Tutorial 3: Plugins, Themes, and Widgets

The three most common changes you will make to your website involve the look (themes), the functionality (plugins), and modular elements (widgets).

In this article we will briefly define each again, and give you directions on how to install them.

Question has a verified solution.

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

A small collection of useful tips and tricks for Windows 10 users that I decided to write as a result of recent questions that were asked and answered at Experts Exchange. Two short video tutorials included. Enjoy..
When asking a question in a forum or creating documentation, screenshots are vital tools that can convey a lot more information and save you and your reader a lot of time
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…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…
Suggested Courses

752 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