What is the best way to use Runonce when deploying software?
Any best practices to follow here? thank u in advance
0 Comments
[ + ] Show comments
Answers (3)
Answer Summary:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce] "setup"="C:\\Drivers\\Scripts\\install3.cmd"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce] "setup"="C:\\Drivers\\Scripts\\install3.cmd"
Please log in to answer
Posted by:
dugullett
12 years ago
Posted by:
piyushnasa
12 years ago
Why do you want to use RunOnce in deploying software? If you can tell the reason we can give you better options..
RunOnce is not at all a good option.
Comments:
-
Correct.. - jagadeish 12 years ago
Posted by:
SMal.tmcc
12 years ago
The gotcha of doing this is, whatever you call from the run once is subject to the user rights on that machine.
Comments:
-
If the person is an admin it can be very useful
This run once line ran gpupdate, displayed the user info, restarted the machine in 5 min, ran a program and a batch file in one line.
start /wait reg.exe add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce" /v RunGPUpdate /d "cmd.exe /k \"gpupdate /force\"&&whoami&&shutdown -r -f -t 305&&\\dr-acad\programs\installs\w2d\closeie.exe&&\\dr-acad\programs\fixip.bat" - SMal.tmcc 12 years ago