Resend my activation email : Register : Log in 
BCF: Bike Chat Forums


batch processing registry values

Reply to topic
Bike Chat Forums Index -> The Geek Zone
View previous topic : View next topic  
Author Message

el_oso
World Chat Champion



Joined: 17 May 2008
Karma :

PostPosted: 18:45 - 23 Sep 2010    Post subject: batch processing registry values Reply with quote

i frequently install windows OS into many computers, either through fixing mates, fixing my parents, fixing mine and whatever. everytime I change the registry values so that the program files folder, temp folder, user accounts folder and other non-vital systems folders are stored on a separate partition. that way if windows ever crashes badly or a piece of malware attacks a pc then all the users files and programs are safe (or safer) from being deleted. what ways would people suggest so that i can change all the registry values in one go. was thinking about creating a batch file or even saving a complete copy of the registry after i have edited once to my liking.
if i was to go down the batch file route how easy would it be to incorporate other features such as automatically installing all the common programs such as opera/chrome/firefox, office, skype etc etc.
i know that there is a program available for debian based linux systems (aptonCD) that allows you to recreate and OS disk with all your personal settings and programs all ready installed and configured.
____________________
Duke 390
Previous: '05 XR125L | '96 XJ600S Diversion |'05 Suzuki GSXR1000 | '05 Honda CBR125-R | '97 YZF 600R Thundercat | '11 Honda CBR250
Car: Jeep Wrangler 4.0L
 Back to top
View user's profile Send private message You must be logged in to rate posts

Frost
World Chat Champion



Joined: 26 May 2004
Karma :

PostPosted: 19:18 - 23 Sep 2010    Post subject: Reply with quote

Have a look on download.cnet for some registry tools. there are a fair few that will let you take a backup of a registry incase it gets messed with. I think .nfo files contain registry changes so writing your own one of those might let you modify many values with a single click.
 Back to top
View user's profile Send private message Send e-mail You must be logged in to rate posts

el_oso
World Chat Champion



Joined: 17 May 2008
Karma :

PostPosted: 19:24 - 23 Sep 2010    Post subject: Reply with quote

well i've written my simple file with all my command prompt commands to change all the registry values i want. want to make this tool myself, as i am learning to program at the moment, so exercise like this can be useful for coding.
just trying to think of way in which i can write something that will be able to execute all the installers in a particular folder so that i don't have to install application after application
____________________
Duke 390
Previous: '05 XR125L | '96 XJ600S Diversion |'05 Suzuki GSXR1000 | '05 Honda CBR125-R | '97 YZF 600R Thundercat | '11 Honda CBR250
Car: Jeep Wrangler 4.0L
 Back to top
View user's profile Send private message You must be logged in to rate posts

herulach
World Chat Champion



Joined: 19 Apr 2010
Karma :

PostPosted: 19:26 - 23 Sep 2010    Post subject: Reply with quote

I used to use nlite for unattended windows installs, and it will let you do all this. Basically burn a disk, boot it and do a complete unattended install.

This was with XP, I think they updated it for vista, but don't know about 7.

Google for SLipstreamed installs
____________________
YBR 125>FZS600
 Back to top
View user's profile Send private message You must be logged in to rate posts

panrider_uk
World Chat Champion



Joined: 23 Sep 2007
Karma :

PostPosted: 19:29 - 23 Sep 2010    Post subject: Reply with quote

A slipstreamed install would do the job or you could use a vb script to make your registry changes and run the installers one by one.

Mark
____________________
Current bikes: Honda ST1100 Pan European. Moto Guzzi V85 TT Travel
 Back to top
View user's profile Send private message You must be logged in to rate posts

TQ
Trackday Trickster



Joined: 17 Dec 2009
Karma :

PostPosted: 19:37 - 23 Sep 2010    Post subject: Reply with quote

For the registry changes just use a .reg file.

Open regedit, and right click on the keys in question and click export.

Once you've done all of them open the files in a text editor and combine them into one.

For the software install I'd agree with nlite to create a slipstream install, you can even make it unattended and add drivers, service packs etc...
____________________
First Bike :Gilera DNA 50 | Second: Imported 1989 NSR125
Third: 1998 Yamaha XJ600N | Currently: 1999 Yamaha FZS600
 Back to top
View user's profile Send private message You must be logged in to rate posts

Frost
World Chat Champion



Joined: 26 May 2004
Karma :

PostPosted: 20:26 - 23 Sep 2010    Post subject: Reply with quote

If you want to code a tool to run things in a sequence you define you can use a batch file:

https://en.wikipedia.org/wiki/Batch_file
 Back to top
View user's profile Send private message Send e-mail You must be logged in to rate posts

el_oso
World Chat Champion



Joined: 17 May 2008
Karma :

PostPosted: 20:32 - 23 Sep 2010    Post subject: Reply with quote

cool, thanks for the help so far. last update for nlite was in 2008, so no windows 7 support i'm guessing.
read up about doing slipstreamed installs. really helped me create a simple script that i ran in command prompt to do all my registry changes.
unfortunately i have absolutely no knowledge of VB what so ever, and am therefore using simple command line code for moment. i may turn this into C/C++/Java project sometime as i am much more familar with these languages. Just never really done anything like this in any of these high level languages, as my knowledge of programming comes from mathematical bases problems, like numerical integration and the like
DaFrostyOne: that is exactly what i have done so far
karma all round Thumbs Up
____________________
Duke 390
Previous: '05 XR125L | '96 XJ600S Diversion |'05 Suzuki GSXR1000 | '05 Honda CBR125-R | '97 YZF 600R Thundercat | '11 Honda CBR250
Car: Jeep Wrangler 4.0L
 Back to top
View user's profile Send private message You must be logged in to rate posts

herulach
World Chat Champion



Joined: 19 Apr 2010
Karma :

PostPosted: 21:20 - 23 Sep 2010    Post subject: Reply with quote

Step by step on doing a windows 7 version here:
https://www.thewindows7site.com/forum/threads/14612-NEW-UPDATED-Walkthrough.-Create-Your-Own-Custom-Windows-7.iso?highlight=Custom

CBA signing up to download it, but looks like what you're after.
____________________
YBR 125>FZS600
 Back to top
View user's profile Send private message You must be logged in to rate posts

Frost
World Chat Champion



Joined: 26 May 2004
Karma :

PostPosted: 21:59 - 23 Sep 2010    Post subject: Reply with quote

the_godfather wrote:

unfortunately i have absolutely no knowledge of VB what so ever, and am therefore using simple command line code for moment. i may turn this into C/C++/Java project sometime as i am much more familar with these languages.


VB is laughable compared to those languages. A monkey could teach itself VB in under half an hour, the only down side is the need for all the VB libraries on the machine on which the program will run. For that reason i wouldn't recommend it. Similar situation with Java and its virtual machine. C++ would be ideal but expect windows to throw a fit once a C++ program starts attempting to modify registry values.
 Back to top
View user's profile Send private message Send e-mail You must be logged in to rate posts

panrider_uk
World Chat Champion



Joined: 23 Sep 2007
Karma :

PostPosted: 22:21 - 23 Sep 2010    Post subject: Reply with quote

DaFrostyOne wrote:


VB is laughable compared to those languages. A monkey could teach itself VB in under half an hour, the only down side is the need for all the VB libraries on the machine on which the program will run. For that reason i wouldn't recommend it. Similar situation with Java and its virtual machine. C++ would be ideal but expect windows to throw a fit once a C++ program starts attempting to modify registry values.


You don't need lots of libraries to run VBScript which is the simple variant of the language and is on all Windows PCs.

You're maybe thinking of VB.NET which is not a simple beast at all.

Registry entries are very easy to read and write using the .regread and .regwrite methods.

Mark
____________________
Current bikes: Honda ST1100 Pan European. Moto Guzzi V85 TT Travel
 Back to top
View user's profile Send private message You must be logged in to rate posts

Frost
World Chat Champion



Joined: 26 May 2004
Karma :

PostPosted: 23:20 - 23 Sep 2010    Post subject: Reply with quote

Well the last time i touched VB is was just VB, not .NET, and it was bloody simple compared to the likes of C
 Back to top
View user's profile Send private message Send e-mail You must be logged in to rate posts

panrider_uk
World Chat Champion



Joined: 23 Sep 2007
Karma :

PostPosted: 01:11 - 24 Sep 2010    Post subject: Reply with quote

DaFrostyOne wrote:
Well the last time i touched VB is was just VB, not .NET, and it was bloody simple compared to the likes of C


That was a lonnnng time ago Smile

Mark
____________________
Current bikes: Honda ST1100 Pan European. Moto Guzzi V85 TT Travel
 Back to top
View user's profile Send private message You must be logged in to rate posts

Frost
World Chat Champion



Joined: 26 May 2004
Karma :

PostPosted: 02:07 - 24 Sep 2010    Post subject: Reply with quote

VB6 FTW!

I used C# not long ago, that was nice. I guess that is also part of .NET?
 Back to top
View user's profile Send private message Send e-mail You must be logged in to rate posts

TQ
Trackday Trickster



Joined: 17 Dec 2009
Karma :

PostPosted: 09:08 - 24 Sep 2010    Post subject: Reply with quote

Quote:
I used C# not long ago, that was nice. I guess that is also part of .NET?


Correct.
____________________
First Bike :Gilera DNA 50 | Second: Imported 1989 NSR125
Third: 1998 Yamaha XJ600N | Currently: 1999 Yamaha FZS600
 Back to top
View user's profile Send private message You must be logged in to rate posts

Frost
World Chat Champion



Joined: 26 May 2004
Karma :

PostPosted: 16:17 - 24 Sep 2010    Post subject: Reply with quote

Ah okay, its was for an embedded device so it was the micro framework and not quite the same. These days i'm pretty deeply in love with python. It's just a shame it's such a ball ache on windows.
 Back to top
View user's profile Send private message Send e-mail You must be logged in to rate posts

Scooty
Spanner Monkey



Joined: 30 Apr 2010
Karma :

PostPosted: 17:24 - 24 Sep 2010    Post subject: Reply with quote

I've done something similar with Java in the past, but I think there would be a better way to do it. As it was a massive PITA Mad
____________________
Current Bike: 2018 Honda CRF250L
Ex-Bikes: 2002 Honda CG125, 1998 Honda VFR800, 2011 Honda CBR600F, 2013 Triumph Sprint GT SE, 2015 Kawasaki ZX10R
 Back to top
View user's profile Send private message Send e-mail You must be logged in to rate posts

Wabby
Trackday Trickster



Joined: 25 Sep 2007
Karma :

PostPosted: 12:11 - 25 Sep 2010    Post subject: Reply with quote

DaFrostyOne wrote:
Well the last time i touched VB is was just VB, not .NET, and it was bloody simple compared to the likes of C


Long Long Time ago that mate.

VB.NET is neither a monkies language nor 'can be learnt in 30 mins'

Rolling Eyes
____________________
What restriction?
 Back to top
View user's profile Send private message You must be logged in to rate posts

panrider_uk
World Chat Champion



Joined: 23 Sep 2007
Karma :

PostPosted: 12:17 - 25 Sep 2010    Post subject: Reply with quote

What you really need is COBOL - none of this airy fairy object oriented malarkey Wink

Mark
____________________
Current bikes: Honda ST1100 Pan European. Moto Guzzi V85 TT Travel
 Back to top
View user's profile Send private message You must be logged in to rate posts

Frost
World Chat Champion



Joined: 26 May 2004
Karma :

PostPosted: 15:03 - 25 Sep 2010    Post subject: Reply with quote

Nah, LISP mate.
 Back to top
View user's profile Send private message Send e-mail You must be logged in to rate posts

TQ
Trackday Trickster



Joined: 17 Dec 2009
Karma :

PostPosted: 17:33 - 25 Sep 2010    Post subject: Reply with quote

Brainfuck
____________________
First Bike :Gilera DNA 50 | Second: Imported 1989 NSR125
Third: 1998 Yamaha XJ600N | Currently: 1999 Yamaha FZS600
 Back to top
View user's profile Send private message You must be logged in to rate posts
Old Thread Alert!

The last post was made 15 years, 347 days ago. Instead of replying here, would creating a new thread be more useful?
  Display posts from previous:   
This page may contain affiliate links, which means we may earn a small commission if a visitor clicks through and makes a purchase. By clicking on an affiliate link, you accept that third-party cookies will be set.

Post new topic   Reply to topic    Bike Chat Forums Index -> The Geek Zone All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Read the Terms of Use! - Powered by phpBB © phpBB Group
 

Debug Mode: ON - Server: birks (www) - Page Generation Time: 0.09 Sec - Server Load: 0.52 - MySQL Queries: 13 - Page Size: 106.75 Kb