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
Solved

Automated Windows Setup

Posted on 1998-12-10
9
148 Views
Last Modified: 2013-12-16
Ok, so I made a batch file to install Windows95 OSR2, but I still have a few questions I can't seem to get answered -

A. How (and where) do I enter a license key so it does not prompt me each install (it changed from OSR1)?

B. Where can I add registry keys to be installed upon completion?

C. Where can I add option external 3rd party software to be installed as well?

Thanks in advance.
0
Comment
Question by:mwhitworth
  • 4
  • 4
9 Comments
 
LVL 9

Expert Comment

by:rmarotta
ID: 1760147
What does your batch file do?

0
 
LVL 6

Author Comment

by:mwhitworth
ID: 1760148
It's a simple msbatch.ini style batch file which enters all the information for the user so they don't have to select anything (it sets which accessories to be installed, which network drivers to install and their ip's, skips the printer setup, and bypasses the eula).  
0
 
LVL 1

Accepted Solution

by:
WinDude earned 100 total points
ID: 1760149
A: Add this to your [Setup] section of msbatch.inf and you will not be asked for a Key:

ProductType=1

B: To add registry entries put put and AddReg section in [Install] like this:

[Setup]
Install=1

[Install]
AddReg=Myaddreg

[Myaddreg]
HKLM,Software\Microsoft\Windows\CurrentVersion,"ProductId",,"99999-OEM-9999999-99999"

C: Adding software is tricky, but if the software is packaged in InstallShield then run "Setup -s" for silent install.  The software must inlude the setup.iss file in order to run with the '-s' switch.  If it doesn't have the setup.iss file then sometimes you can make one by running 'Setup -r' to record the manual installation to \windows\setup.iss and save the .iss file.  Add this to the 'myaddreg' section from above:

HKLM,Software\Microsoft\Windows\CurrentVersion\RunOnce\Setup,"My New Program",,"C:\PathToTheSetupProgram\Setup.exe -s"

Hope this helps!
0
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.

 
LVL 6

Author Comment

by:mwhitworth
ID: 1760150
The registry key settings under the [Install] section you posted work great, and it does update the id info after you reboot, but it still asks me for the id when i am installing...
0
 
LVL 9

Expert Comment

by:rmarotta
ID: 1760151
Extract from PRECOPY2.CAB the file SETUPPP.INF, and place it in the directory where your setup & cab files reside.

Edit the file by searching for "Product Type".
Change the entry to read:
ProductType=1

Search the file LAYOUT.INF for the string "SETUPPP.INF".
Change this entry to read:
setuppp.inf=0,,4550

Leave the files in your setup directory when installing, and you won't be asked for a CD Key or Certificate number.

Regards,
Ralph
0
 
LVL 9

Expert Comment

by:rmarotta
ID: 1760152
Any luck with it?
0
 
LVL 6

Author Comment

by:mwhitworth
ID: 1760153
I found the SETUPPPP.INF file and extracted it from the CAB and I edited the SETUP.INF and changed the ProductType, but did not find anything in the LAYOUT.INF file (I also checked LAYOUT1.INF)...

All mine has is...

;LAYOUT.INF
;Disk Layout file for Windows 95 Setup
;Copyright (c) 1993-1995 Microsoft Corporation

[version]
signature="$CHICAGO$"
SetupClass=BASE

[DosAppVersion]
; Version specific files should be listed here
emm386.exe,-1,-1
himem.sys,-1,-1
ramdrive.sys,-1,-1
smartdrv.exe,-1,-1
0
 
LVL 6

Author Comment

by:mwhitworth
ID: 1760154
Even though I did not find that string, the use of the setuppp.inf works great.  Thanks.
0
 
LVL 9

Expert Comment

by:rmarotta
ID: 1760155
You didn't search for "setupp" in the layout.inf file.  Try it using Notepad's Find command.
What you posted is only part of the file's contents. (followed by many blank lines.)
Anyway, I'm glad it worked out for you.
Regards,
Ralph
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
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…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

856 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