registry

Effects of changing NLS_LANG setting in the registry for Oracle Client

北城以北 提交于 2019-12-22 09:47:48
问题 We are in the process of moving from the .NET Microsoft oracle driver to the ODP.NET driver. One of the problems we have had is this error: ORA-12705: Cannot access NLS data files or invalid environment specified We were able to stop the error by modifying the registry and changing the setting (see this question) In our case we changed HKEY_LOCAL_MACHINE - SOFTWARE - ORACLE - NLS_LANG which was set to NA to be the same as HKEY_LOCAL_MACHINE - SOFTWARE - ORACLE - HOME0 - NLS_LANG which was set

How to run PowerShell scripts from C#

孤街浪徒 提交于 2019-12-22 07:36:11
问题 I am trying to run a PowerShell script with C#, but I don't have any success. Here is my function: private void ExecutePowerShellCommand(string scriptfile) { RunspaceConfiguration runspaceConfiguration = RunspaceConfiguration.Create(); Runspace runspace = RunspaceFactory.CreateRunspace(runspaceConfiguration); runspace.Open(); RunspaceInvoke scriptInvoker = new RunspaceInvoke(); scriptInvoker.Invoke("Set-ExecutionPolicy Unrestricted"); Pipeline pipeline = runspace.CreatePipeline(); //Here's

Add multiString registry value using WiX?

半腔热情 提交于 2019-12-22 05:18:12
问题 Now I use something like this: <Component Id="RegistryEntries" Guid="<guid>" KeyPath="yes"> <RegistryKey Root="HKCU" Key="<path>" Action="createAndRemoveOnUninstall"> <RegistryValue Name="myStrings" Action="append" Type="multiString"> 1 </RegistryValue> <RegistryValue Name="myStrings" Action="append" Type="multiString"> 2 </RegistryValue> <RegistryValue Name="myStrings" Action="append" Type="multiString"> 3 </RegistryValue> <RegistryValue Name="myString" Value="x" Type="string"/> <

How to find the default browser via the registry on Windows 10

烈酒焚心 提交于 2019-12-22 04:35:25
问题 On versions of Windows prior to Windows 10, I can get the default browser from the following registry key: HKEY_CURRENT_USER\SOFTWARE\Clients\StartMenuInternet On Windows 10, I set Microsoft Edge as the default browser. But I don't see any change in the registry key above. However, on previous versions of Windows it works properly. How can I get the default browser on Windows 10? 回答1: Technically StartMenuInternet is not the default browser, it merely determined how the system reacted when

Implementing VLC player in a Windows application: Programatically registering an ActiveX component

人盡茶涼 提交于 2019-12-21 23:15:44
问题 Im using the following guide to implement a VLC player inside my windows application: http://www.codeproject.com/Questions/163016/How-to-embed-VLC-control-in-c-net-windows-applicat (see the top rated answer) On step 2 in the guide, it says that I have to register the ActiveX component: regsvr32 "D:\Program Files\VideoLAN\VLC\axvlc.dll" How do I do this programatically in the software so that the user doesn't have to? Im unsure on how to proceed here. Can anyone help me? 回答1: Please try this

Find version of Chrome browser in registry

大憨熊 提交于 2019-12-21 21:25:40
问题 How do I get Chrome version using PowerShell? I tried the following query: (Get-ItemProperty 'HKEY_LOCAL_MACHINE\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Google Chrome').DisplayVersion This didn't work. 回答1: This is probably what you want (it reads the version of the executable, not a value from the registry): (Get-Item (Get-ItemProperty 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\chrome.exe').'(Default)').VersionInfo 回答2: Here is a script to get GC

GetSubKeyNames does not return all keys

安稳与你 提交于 2019-12-21 18:06:17
问题 I want to get the software installed on the client. I use WMI and the registry as well. I find most of the information under HKLM\SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\UNINSTALL However, Dropbox for example, does not appear there. Dropbox is located under HKCU so I want to read those keys as well. Simple, I thought, cause the path is the same, just the RegistryHive changes. Problem I can not see the key UNINSTALL though when I'm in CurrentVersion using the function GetSubKeyNames. var

Remove a 'Deny' rule (permission) from the 'UserChoice' key in the Registry via C#

喜夏-厌秋 提交于 2019-12-21 18:03:28
问题 I am working on File Associations. I have identified that there is a key called UserChoice in: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\[ext]. I have been able to read from and write to the UserChoice key provided that I create it and that it has not already been created by Windows. However, if the UserChoice key has already been created by Windows, then I need to run as Administrator to get access to the key. My ultimate goal is to delete the UserChoice

windows 7 - where and how can I store machine user independent data?

女生的网名这么多〃 提交于 2019-12-21 17:27:00
问题 I have an app (32 bit c++) running under XP that I need to adapt to run under Windows 7 and Vista. It needs to store a few dozen bytes of data someplace independent of User. Under XP, I stored the data in the registry under HKEY_LOCAL_MACHINE\Software. When I run the app on Windows 7 the registry entries are virtual-ized and each user gets a separate copy of the data. The non-virtual-ized registry seems like a logical place for the data but I have no idea how to go about doing so. I note that

Accessing Windows Registry [duplicate]

不羁的心 提交于 2019-12-21 11:13:29
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: read/write to Windows Registry using Java I need to access Windows registry from Java.. Also I need to copy some registry entries and may have to enter new registry variables using Java.. some one help me please... 回答1: I'd recommend the Java Native Access (JNA) library. It's a pretty nice wrapper around JNI. According to this mailing list post, they've already got a contributed wrapper around the native Windows