Installing Windows Service programmatically

后端 未结 4 1640
Happy的楠姐
Happy的楠姐 2020-12-02 06:43

How do I install a Windows Service programmatically without using installutil.exe?

4条回答
  •  生来不讨喜
    2020-12-02 06:59

    I cannot comment bc of missing reputation, but regarding Mark Redman's Solution - If you wonder you cannot find your key in the given path, checkout the WOW6432Node

    From AdvancedInstaller:

    "The Wow6432Node registry entry indicates that you are running a 64-bit Windows version.

    The operating system uses this key to display a separate view of HKEY_LOCAL_MACHINE\SOFTWARE for 32-bit applications that run on 64-bit Windows versions. When a 32-bit application writes or reads a value under the HKEY_LOCAL_MACHINE\SOFTWARE\\ subkey, the application reads from the HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\\ subkey.

    A registry reflector copies certain values between the 32-bit and 64-bit registry views (mainly for COM registration) and resolves any conflicts using a "last-writer-wins" approach."

提交回复
热议问题