I have developed a program with admin Permission (UAC) and also done Registry entry using following Code
Registry.SetValue(
"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run",
"SyncData-TPSS",
Application.ExecutablePath.ToString()
);
to start Program at Startup. But because of UAC it is not starting at windows Stratup. I can't remove UAC.
IF I remove UAC and access Registry values then it is throwing Exception Access Denied
Any idea to do this ?
将其构建为Windows服务,在安装服务时,请确保选择具有管理员权限的用户。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.