Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

(C#) mit 32bit-Anwendung -> 64bit-Registry lesen

Empfohlene Antworten

Hallo,

ich habe folgendes Problem:

Ich möchte das Installationsdatum eines 64bit SQL Servers 2005 auslesen.

Ich versuche dies über die Registry „HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall“ und dort suche ich den Eintrag für die SQL-Server-Instanz, bei den 32bit Servern funktioniert das auch ohne Probleme, nur bei 64bit nicht. Nach einigem Testen habe ich festgestellt, das die Anwendung nicht im oben genannten Pfad sucht, sondern automatisch in den Pfad „HKLM\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall“ geht.

Hat von euch einer eine Idee wie ich in den gewünschten Registry-Pfad komme oder wie ich evtl. das Installationsdatum des Servers auf eine andere Art herausbekommen kann?

grüsse

zulunda

RegistryKey rootkey = RegistryKey.OpenRemoteBaseKey(RegistryHive.LocalMachine, serverName);

keyName = @"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall";

RegistryKey uninstKey = rootkey.OpenSubKey(keyName);

string[] keyNames = uninstKey.GetSubKeyNames();

for (int i = 0; i < keyNames.Length; i++)

{

RegistryKey key = uninstKey.OpenSubKey(keyNames);

object o = key.GetValue("DisplayName");

if (o != null && o is string)

{

string displayName = o.ToString();

...

..

Ich hab mich jetzt entschieden mittels WMI das Installationsdatum auszulesen ("SELECT * FROM Win32_Product")

Grüße

Zulunda

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Konto

Navigation

Suchen

Suchen

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.