Registry change upon installing application C#

前端 未结 2 1184
难免孤独
难免孤独 2021-01-28 19:32

Just about to try and make an install package for an app for that first time with visual studio. I have a registry value that needs to be changed when the program is installed I

2条回答
  •  情歌与酒
    2021-01-28 19:47

    It depends the tool you used to create the install package, generally you need to add a String Value under

    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run or HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run

    like "AppName" : "AppPath" You also can achieve this by add the regstry in your code.

提交回复
热议问题