registry

Inno Setup: How to remove Abort from regserver error?

拜拜、爱过 提交于 2020-01-03 02:19:25
问题 I was wondering, if there is a way to make the message box displayed, when occurs an error from regserver flag in Files section, to show only Retry and Ignore option, not the Abort one. I know there's a flag noregerror . I don't want to not show the error. I want to show it, but with only two options. Sometimes when the error is displayed while trying to register an OCX/DLL, when the user clicks in Retry , it works in the second time. If the user clicks in Cancel , the installer rollbacks

read known file extensions / types from the registry

◇◆丶佛笑我妖孽 提交于 2020-01-02 22:03:30
问题 I want to present the user with a list of known file extensions for him to pick. I know that these are stored in the Registry under HKEY_CLASSES_ROOT usually like this: .txt -> (default)="txtfile" where txtfile then contains the information about associated programs etc. Unfortunately that place in the registry also stores lots of other keys, like the file types (e.g. txtfile) and entries like CAPICOM.Certificates (whatever that is) How do I determine which of the entries are file extensions?

Set registry key for wallpaper solid color

梦想的初衷 提交于 2020-01-02 21:04:46
问题 The first part of the script does work (when the key exists - if not that's OK, that's why I have On Error Resume Next ). But the 2 nd part is what I am concerned about. It DOES NOT ERR, and I can see in Regedit that it did, indeed, set the Background to "0 0 0", but when I refresh the wallpaper, nothing has changed. Oddly, if I manually change the wallpaper color, then refresh the screen in Regedit, I DO see the value change. So everything is telling me this should be working, but it's not.

Set registry key for wallpaper solid color

不羁岁月 提交于 2020-01-02 21:04:11
问题 The first part of the script does work (when the key exists - if not that's OK, that's why I have On Error Resume Next ). But the 2 nd part is what I am concerned about. It DOES NOT ERR, and I can see in Regedit that it did, indeed, set the Background to "0 0 0", but when I refresh the wallpaper, nothing has changed. Oddly, if I manually change the wallpaper color, then refresh the screen in Regedit, I DO see the value change. So everything is telling me this should be working, but it's not.

Discover serial ports in C#

半城伤御伤魂 提交于 2020-01-02 10:20:12
问题 I'm writing an application that communicates by sending bytes to the USB port. I'd like to allow the user to choose the port and to do that, I use SerialPort.GetPortNames() . Unfortunately, it returns an empty array. The method supposedly reads the registry for data (HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\SERIALCOMM), but the SERIALCOMM directory is missing. When I run the program on Linux, it lists my four USB ports, as expected. How can I fix the registry/discover the ports in a different

How to configure IE proxying for the local system account? [closed]

别等时光非礼了梦想. 提交于 2020-01-02 10:04:22
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 8 years ago . See Server Fault: How do I configure proxy settings for LOCAL SYSTEM? I have a Windows service that needs to start up IE with certain proxy settings (e.g. host name and port). If the service is configured to run as some normal user (e.g. me), I can ensure the required IE proxy configuration by programmatically

How can I convert a REG_BINARY value from the registry into a string ? (vb.net)

*爱你&永不变心* 提交于 2020-01-02 10:03:14
问题 I have a registry value which is stored as a binary value (REG_BINARY) holding information about a filepath. The value is read out into an byte array. But how can I transform it into a readable string? I have read about system.text.encoding.ASCII.GetString(value) but this does not work. As far as I got to know the registry value is arbitrary binary data and not ASCII which is the reason for the method to produce useless data. Does anybody know how I can convert the data? Sample: (A piece of

How can I convert a REG_BINARY value from the registry into a string ? (vb.net)

萝らか妹 提交于 2020-01-02 10:02:45
问题 I have a registry value which is stored as a binary value (REG_BINARY) holding information about a filepath. The value is read out into an byte array. But how can I transform it into a readable string? I have read about system.text.encoding.ASCII.GetString(value) but this does not work. As far as I got to know the registry value is arbitrary binary data and not ASCII which is the reason for the method to produce useless data. Does anybody know how I can convert the data? Sample: (A piece of

How to export a registry in c#

[亡魂溺海] 提交于 2020-01-02 09:27:27
问题 I have been trying to export and save registry files to an arbitrary location, the code is running. However, on specifying the path and saving, the function does not work and no registry is exported. There is no error shown either. private static void Export(string exportPath, string registryPath) { string path = "\""+ exportPath + "\""; string key = "\""+ registryPath + "\""; // string arguments = "/e" + path + " " + key + ""; Process proc = new Process(); try { proc.StartInfo.FileName =

Create custom right-click context menu item with C# for all desktop shortcuts (windows explorer)

不羁岁月 提交于 2020-01-02 08:39:09
问题 The problem is easy: I've a lot of desktop shortcuts which points to a lot of file, BUT I also have a lot of shortcuts which points to directories pointed by those shortcuts. I want to remove this redundance by simply adding another rightclick menu options for all shortcuts (.lnk files) that allows you to open explorer.exe to the directory containing the file pointed. While I discovered how to retrive the target of a shortcut and it's working, I found a suggestion on how adding a menu item to