473,748 Members | 10,539 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

running *.reg-file silently

Hi,

Does anybody knows how to run a *.reg-file silently on a computer? I need
this to do automatic updates of my application without user-interaction.

So I don't want the user to be asked a confirmation before writing
everything to the registry, and I don't want a succes-or-error-message at
the end.

Any help would be really appreciated!

Thanks a lot in advance,

Pieter
Nov 20 '05 #1
7 18261
Dragu,

Why dont you write a program to update the registry values
instead of using a reg file. Take a look at the Registry class.

http://msdn.microsoft.com/library/de...classtopic.asp

Ken
----------------------
"DraguVaso" <pi**********@h otmail.com> wrote in message
news:%2******** **********@TK2M SFTNGP10.phx.gb l...
Hi,

Does anybody knows how to run a *.reg-file silently on a computer? I need
this to do automatic updates of my application without user-interaction.

So I don't want the user to be asked a confirmation before writing
everything to the registry, and I don't want a succes-or-error-message at
the end.

Any help would be really appreciated!

Thanks a lot in advance,

Pieter

Nov 20 '05 #2
DraguVaso wrote:
Does anybody knows how to run a *.reg-file silently on a computer? I need
this to do automatic updates of my application without user-interaction.

So I don't want the user to be asked a confirmation before writing
everything to the registry, and I don't want a succes-or-error-message at
the end.

Any help would be really appreciated!


Hi DraguVaso,

"regedit /S yourRegFile.reg " inserts the reg-file in "silent"-mode.

Dim p As Process = New Process
Dim ps As ProcessStartInf o = New ProcessStartInf o
ps.FileName = "regedit"
ps.Arguments = "/S C:\yourRegFile. reg"
p.StartInfo = ps
p.Start()

Cheers

Arne Janning

Nov 20 '05 #3
I don't know... but if you have the possibility to do the reg modifications
in the VB code, you can do it from there.

/Lars
"DraguVaso" <pi**********@h otmail.com> skrev i meddelandet
news:%2******** **********@TK2M SFTNGP10.phx.gb l...
Hi,

Does anybody knows how to run a *.reg-file silently on a computer? I need
this to do automatic updates of my application without user-interaction.

So I don't want the user to be asked a confirmation before writing
everything to the registry, and I don't want a succes-or-error-message at
the end.

Any help would be really appreciated!

Thanks a lot in advance,

Pieter

Nov 20 '05 #4
Hi Pieter,

Because I thought that you told once in what kind of company you are working
for i was thinking that you did wanted to help OHM with its GetRichQuick
class.

Just kidding, I do not know it, however I think that when it was my problem,
I would look how I could proces the .reg file using a VB program.

Cor
Nov 20 '05 #5
Great! That was exactly what I was looking for!!
Thansk a lot!

"Arne Janning" <sp************ *****@msn.com> wrote in message
news:Os******** ******@TK2MSFTN GP12.phx.gbl...
DraguVaso wrote:
Does anybody knows how to run a *.reg-file silently on a computer? I need this to do automatic updates of my application without user-interaction.

So I don't want the user to be asked a confirmation before writing
everything to the registry, and I don't want a succes-or-error-message at the end.

Any help would be really appreciated!


Hi DraguVaso,

"regedit /S yourRegFile.reg " inserts the reg-file in "silent"-mode.

Dim p As Process = New Process
Dim ps As ProcessStartInf o = New ProcessStartInf o
ps.FileName = "regedit"
ps.Arguments = "/S C:\yourRegFile. reg"
p.StartInfo = ps
p.Start()

Cheers

Arne Janning

Nov 20 '05 #6
Hehe,
You mean the
clsGetPieterRic h.PickOneCentFr omEveryClientTr ansaction-function? :-)

"Cor Ligthert" <no**********@p lanet.nl> wrote in message
news:eQ******** ******@TK2MSFTN GP09.phx.gbl...
Hi Pieter,

Because I thought that you told once in what kind of company you are working for i was thinking that you did wanted to help OHM with its GetRichQuick
class.

Just kidding, I do not know it, however I think that when it was my problem, I would look how I could proces the .reg file using a VB program.

Cor

Nov 20 '05 #7
>Does anybody knows how to run a *.reg-file silently on a computer? I need
this to do automatic updates of my application without user-interaction.


General Syntax:

Import (merge) a .REG file:

REGEDIT.EXE [ /L:system ¦ /R:user ] [ /S ] importfile.REG

Export to a (.REG) file:

REGEDIT.EXE [ /L:system ¦ /R:user ] /E exportfile
"registry_k ey"

Parameters:

importfile.REG .REG file to be imported (or "merged")
exportfile File name the information should be written to
"registry_k ey" Registry key to be exported
e.g. "HKEY_CLASSES\R OOT\*\shell"
/S Silent, i.e. hide confirmation box when
importing files
/E Export registry file
/L:system Specify the location of the system.dat to use
/R:user Specify the location of the user.dat to use
/C Compress [filename] (Windows 98 only)
So something like REGEDIT /S <importfile.reg > should do the trick.

Marc
=============== =============== =============== =============== ====
Marc Scheuner May The Source Be With You!
Bern, Switzerland m.scheuner(at)i nova.ch
Nov 20 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
4791
by: Alex Hunsley | last post by:
I'm making a web site that does login authentication. It all works fine, but I have a question about 'correctness'... Certain php scripts on the site should only run in the user has logged on. So, the 'private' scripts in question all includes the following php script: <? // has user authenticated? if (! $logged_in) {
5
1789
by: Henok Girma | last post by:
Hello Gurus, I wanted to have a very simple, strict regular expression validator for a phone field. the only valid format is (XXX) XXX-XXXX where X is a digit I have the following but it always evaluates to false var reg = new RegExp("^\(\d{3}\) \d{3}-\d{4}$"); alert(reg.test("(123) 221-9244")); Any help is greatly appreciated..
1
1981
by: worzel | last post by:
Hi All, I am looking for a reg ex that will match email addresses withing <a href=mailto blah > links. Actually, I already crafted my own, but with a slight problem: <a href="mailto:fred@blah.com"> emal me</a> woud be matched as expected, but so will:
1
4375
by: rock72 | last post by:
Hello Everyone, Can anyone tell me how to create a running sum in query ? Days should be from 1st record 1, then 2nd record 2 and so on...... Thanks Tim --
5
1411
by: Marty McDonald | last post by:
I'm trying to manually edit the resistry so Asp.Net can write to the app log. If my web app is named "TestApp", wouldn't I just create a key called "TestApp" under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application? Nothing seems to work!
5
1173
by: Edwin Knoppert | last post by:
I have registered and i expected some reg code, not! The balloon keeps appearing, how to get rid of that? vwd-express
5
1479
by: Shanmugasundaram Doraisamy | last post by:
Dear Group, We have a java front-end for postgresql 3.4. When we monitor the system usage using top we find couple of postmasters taking up close to 90% of the CPU time in total. I would like to know which are the queries that are currently running at this point of time. How do we do this?? Another thing that I have noticed is that when I give df -h, I find there is a partition /dev/shm which is somewhere in the range of about 128MB...
7
1257
by: cbrown | last post by:
I am looking for a method (maybe even a commercially available piece of software) to watch a program and ensure that it is always running. If it is killed in task manager, it will automatically start it up again, etc, etc.
16
1898
by: Albretch Mueller | last post by:
I need to get the name of the very code running in order to include it in a time stamped log file. .. As I remember, there is an ANSI standard way to ask a running program for its name. But I forgot the specifics of it. .. How is it that you do that? .. lbrtchx
2
2092
by: gsander | last post by:
We have a W2K / Access2K environment where recent maintenance has prevented the /X commandline switch from starting macro's. We have several "batch" processes that run at night using the task scheduler and are started via simple macro's to run the code. Is there a way I can determine if I am running "disconnected" so I can use an autoexec macro to determine if I shoud be doing "batch" things or open as usual for a user? Or, is there a...
0
8991
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9548
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9374
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9325
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6076
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4876
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3315
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2787
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2215
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.