Discussion Locked

NT 4 Registry

0 helpful
17 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I'm looking for a switch that I can use to run an executable with that is situated in HKLM\Software.\..\.CurrentVersion\Run so that the successfull execution notification dialogue box does not appear after the user logs on. By using this switch, the execution of the program is transparent to the user, as no message would appear. Note that I'm not looking for any switches thats associated with the regedit.exe command itself, but instead a switch that I can use as part of the Value Data.

17 replies

by nicko

As this switch is particular for the exe you are trying to run, please specify what piece of software it is.

by swlabhot

It doesn't matter what .exe I place in the Run key as any program placed here will run. All I'm trying to find out is the switch that I could use together with the .exe (ie. the value data within the Run key - c:\winnt\epson.exe /); that would not give me the notification dialogue after logon.

by _degan_

I'm assuming that you cannot rewrite the executable to accept a command line parameter which would run in an unattended fashion (no dialogue box.) You mention REGEDIT.EXE, is that the program you are launching? If so, it might be easier to use more automated registry editing software (such as WIL [WinBatch]), and not have any dialogue box. If this is other software, again you can you other automation tools to launch the application in hidden mode, and then clean-up the un-seeable dialogue box. Hope this helps.

by swlabhot

I'm not trying to launch Regedit.exe; but I only mentioned this as there is another way that I found round the problem by using the switch associated with Regedit.exe to stop the notification dialogue. This however is not much good for the user withnormal privileges as it will only work with a user with admin rights. As a result of this I'm trying to find the correct switch that I can use in the Value Data within the Key itself, instead which does not require for the user to have admin rights to run. Any ideas?

by it-sage (bschirf)

The value in CurrentVersion\Run will be the same as executed from a command prompt.

By this I mean, if you can run this EXE from a command line with a switch that supresses the notification, then that same switch will supress the notification from the Run entry in the registry.

For instance, I create SMS Installer EXE's. With these, I can use the /s switch to run the EXE in silent mode. Thus, the user is not prompted to click NEXT, NEXT, enter a path, and then click FINISH when the app is installed.

Thus, if I wanted to run this from CurrentVersion/Run I would simply enter:
MYAPP.EXE /S
in the registry...

If your app uses a different switch, then you will use that switch. Unfortunately there isn't a universal switch that works for all applications with non-admin users.

Sorry... HTH...

by swlabhot

I had already tried the /s switch. It works perfectly fine from the command line but applying the same switch in the \..\Run key has no effect whatsoever as the notification still appears.

by schitzoid

I had a flat tire the other day and I had to use the spare in the trunk. Can you tell me what size tire my car uses? Sorry, if we don't know the program, we don't know the command line switches for it. Have you tried /? to see it it has help?

by estebandelatorre

It's all depends on what the programer was thinking when developint the aplication. Not all programs can be instaled like windows NT with the unatendant.txt file.
Try first to see what parameters does the setup program accept using setup /? or setup help or any other documented switch.
If no switches availables, sorry it won't work as you wish.

by tjc

Did you contact the specific program's creater to see if he allowed such things to take place?

This discussion is closed to new replies.