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.

Registrystruktur

Empfohlene Antworten

Veröffentlicht

Hi,

weiß jemand, wie ich eine komplette Struktur aus der Registry auslesen kann?

Also ich will z.B. alle Keys, d.h. nur die Verzeichnisse, haben, die unter


HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall

zu finden sind.

Hat da von euch jemand einen Plan?

Danke schon mal im voraus...

Grüße

Michl

nachdem du im forum "Skript- und Webserverprogrammierung" postet - womit, sprich: welche sprache?

s'Amstel

nachdem du im forum "Skript- und Webserverprogrammierung" postet - womit, sprich: welche sprache?

s'Amstel

Uppp´s. Das hab ich vergessen. Danke für den Hinweis.

Ich verwende Perl.

dann wird dir Win32::Registry hilfreich sein. machs so oder ähnlich:

use Win32::Registry;


$p = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall";


$main::HKEY_LOCAL_MACHINE->Open($p, $key) || die "bla: $!";

$key->GetValues(\%vals);

foreach $k (keys %vals) {

  $key = $vals{$k};

  print "$$key[0] = $$key[2]\n";

}

s'Amstel

Das hatte ich auch schon.

Mir gehts aber nicht um die Werte sondern um die Unterverzeichnisse, also:

1. HKEY_LOCAL_MACHINE

1.1 Software

1.1.1 Microsoft

1.1.1.1 Windows

1.1.1.1.1 CurrentUser

1.1.1.1.1.1 Uninstall

1.1.1.1.1.1.1 ...

1.1.1.1.1.1.2 ...

1.1.1.1.1.1.3 ...

Die roten Punkte interessieren mich, quasi die Unterverzeichnisse.

dann verwende GetKeys anstelle von GetValues.

s'Amstel

Was macht eigentlich \%vals in der Zeile

$key->GetValues(\%vals);

?

Mit GetKeys hat es wunderbar geklappt.

Danke für deine Hilfe.

Grüße

Michl

Was macht eigentlich \%vals in der Zeile

$key->GetValues(\%vals);

?

"vals" ist ein assoziatives array (typ/wert oder name/wert-liste), in welchen mit der methode GetValues die unterschlüssel abgelegt und via foreach wieder ausgespuckt werden. :)

s'Amstel

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

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.