注册表运行键不启动应用程序 [英] Registry Run key not launching application
问题描述
我的应用程序在HLKM Run中设置注册表值(HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ Run )
,如下所示:
* MYVAL " C:\ Program Files(x86)\ Common Files \ MyApp\bin \ MyToolbar.exe" / ParamID = 4657TRD / Mode = 2
注意星号前缀。
但是,当系统重新启动时,这不会启动我的应用程序。命令没有错。当我在cmd窗口中运行它时会启动正常。当我重新启动m / c时,不确定为什么它没有启动。
感谢任何帮助。
TIA,
Jy
我的应用程序在HLKM Run中设置一个注册表值,如下所示:
$
* MYVAL " C:\Program Files(x86)\ Common Files \ MyApp\bin \ MyToolbar.exe" / ParamID = 4657TRD / Mode = 2
注意星号前缀。
但是,当系统重新启动时,这不会启动我的应用程序。命令没有错。当我在cmd窗口中运行它时会启动正常。当我重新启动m / c时,不确定为什么它没有启动。
使用星号(*)强制在安全模式下执行是RunOnce,而不是Run。 请参阅
运行和运行注册表项
此外,标准用户登录会忽略这些键。 请参阅
https:/ /support.microsoft.com/en-us/help/2021405/standard-user-runonce-and-runonceex-are-not-being-executed
Hi,
My application sets a registry value in HLKM Run (HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run)
with something like this:
*MYVAL "C:\Program Files (x86)\Common Files\MyApp\bin\MyToolbar.exe" /ParamID=4657TRD /Mode=2
Note the star prefix.
However, this does not launch my application, when the system restarts. There is nothing wrong in the command. When I run it in a cmd window it launches fine. Not sure why it's not launching when I restart the m/c.
Appreciate any help.
TIA,
Jy
Hi,
My application sets a registry value in HLKM Run with something like this:
*MYVAL "C:\Program Files (x86)\Common Files\MyApp\bin\MyToolbar.exe" /ParamID=4657TRD /Mode=2
Note the star prefix.
However, this does not launch my application, when the system restarts. There is nothing wrong in the command. When I run it in a cmd window it launches fine. Not sure why it's not launching when I restart the m/c.
The use of an asterisk (*) to force execution in safe mode is for RunOnce, not Run. See Run and RunOnce Registry Keys
Also, these keys are ignored for a standard user logon. See https://support.microsoft.com/en-us/help/2021405/standard-user-runonce-and-runonceex-are-not-being-executed
这篇关于注册表运行键不启动应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!