Autor Beitrag
Christian V.
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 311

Win Xp Prof
Turbo Delphi 2005
BeitragVerfasst: Mi 02.03.05 15:42 
Hallo, ich hab gerade nßneues Progg angefangen, ich will die einstellungen nicht mehr mühsam von hand machen müssen, sondern bequem per Prog. Das Problem ist nur, dasss eingeschränkte Benutzer keinen zugriff auf die Registry haben, ich bin zwar Admin auf meinem Pc. aber wenn das andere benutzen wollen, geht es nicht. Wie kann ich das umgehen?
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Mi 02.03.05 15:43 
invulnerabilis hat folgendes geschrieben:
aber wenn das andere benutzen wollen, geht es nicht. Wie kann ich das umgehen?

Gar nicht, sonst wäre ja die Rechteverwaltung unter NT ff. für den Popo.
Christian V. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 311

Win Xp Prof
Turbo Delphi 2005
BeitragVerfasst: Mi 02.03.05 15:46 
Es gibt ja auch andere Programme die auf die Registry zugreifen, z.B tweakUi, das schreibt ja auch Autologgon einträge in die Registry.
Christian V. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 311

Win Xp Prof
Turbo Delphi 2005
BeitragVerfasst: Mi 02.03.05 16:06 
ändert es etwas wenn ich mein prog als systemtask starte, nur die Frage, wie mache ich das?

_________________
Hardware runs the world, software controls the hardware, code generates software - Have You already coded today?
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6395
Erhaltene Danke: 149

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Mi 02.03.05 16:08 
Einträge im HKCU-Bereich sollten möglich sein.
Ansonsten kannst du die Einstellungen doch auch in einer INI-Datei speichern.
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Mi 02.03.05 16:09 
invulnerabilis hat folgendes geschrieben:
Es gibt ja auch andere Programme die auf die Registry zugreifen, z.B tweakUi, das schreibt ja auch Autologgon einträge in die Registry.

Aber auch nur, wenn sie mit Administratorenrechten laufen.
Christian V. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 311

Win Xp Prof
Turbo Delphi 2005
BeitragVerfasst: Mi 02.03.05 16:12 
nein, ich habe extra einen eingeschränkten benutzer erstellt, und TweakUi gestartet, es hat funktioniert, bei meinem Programm kommt schon beim auselen der Daten ein fehler, beim admin benutzer jedoch nicht.

_________________
Hardware runs the world, software controls the hardware, code generates software - Have You already coded today?
Christian V. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 311

Win Xp Prof
Turbo Delphi 2005
BeitragVerfasst: Mi 02.03.05 16:13 
Wie soll das mit der Ini datei gehen? ich will ja systemeinstellungen vornehmen und auselsen, wie z.B. Prozessor, Autologgon usw.

_________________
Hardware runs the world, software controls the hardware, code generates software - Have You already coded today?
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Mi 02.03.05 16:14 
Auch tweiakUI kann nicht in HKLM schreiben, wenn es keine Adminrechte hat. Bei dir kommt der Fehler, weil du das TRegistry Objekt mit KEY_ALL_ACCESS erstellst, wenn du beim Konstruktor nichts weiter angibst.
Christian V. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 311

Win Xp Prof
Turbo Delphi 2005
BeitragVerfasst: Mi 02.03.05 16:15 
wie mache ich es dann anders?

_________________
Hardware runs the world, software controls the hardware, code generates software - Have You already coded today?
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6395
Erhaltene Danke: 149

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Mi 02.03.05 16:18 
invulnerabilis hat folgendes geschrieben:
Wie soll das mit der Ini datei gehen? ich will ja systemeinstellungen vornehmen und auselsen, wie z.B. Prozessor, Autologgon usw.

Sorry, das war so nicht zu sehen. Ich dachte es ginge um spezifische Einstellungen für dein Programm.
Christian V. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 311

Win Xp Prof
Turbo Delphi 2005
BeitragVerfasst: Mi 02.03.05 16:20 
Sorry mein Fehler, habe vergessen zu schreiben was für einstellungen. Habs mir gedacht aber nicht geschrieben. Sorry!!

_________________
Hardware runs the world, software controls the hardware, code generates software - Have You already coded today?
Grendel
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 443

Gentoo Linux, MacOS X, Win 2000
D5 Ent, D7 Ent, Lazarus, Anjuta, MonoDevelop
BeitragVerfasst: Mi 02.03.05 16:20 
invulnerabilis hat folgendes geschrieben:
wie mache ich es dann anders?

Garnicht!
Wenn ein Programm Änderungen am System vornimmt, für die Adminrechte benötigt werden dann muss dieses programm auch als Admin gestartet werden.
Alles andere wäre weder sinnvoll noch wünschnswert.

Prüf beim Programmstart doch einfach, ob der aktuelle Benutzer Admin ist und wenn nicht gibts eine entsprechende Meldung.

Bis neulich ...
Christian V. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 311

Win Xp Prof
Turbo Delphi 2005
BeitragVerfasst: Mi 02.03.05 16:23 
wie macht es denn TweakUi,

Luckie hat folgendes geschrieben:
Bei dir kommt der Fehler, weil du das TRegistry Objekt mit KEY_ALL_ACCESS erstellst, wenn du beim Konstruktor nichts weiter angibst.

dem zufolge was Luckie schreibt, muss ich doch beim Konstruktor? etwas angeben. oder?

_________________
Hardware runs the world, software controls the hardware, code generates software - Have You already coded today?
Grendel
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 443

Gentoo Linux, MacOS X, Win 2000
D5 Ent, D7 Ent, Lazarus, Anjuta, MonoDevelop
BeitragVerfasst: Mi 02.03.05 17:24 
invulnerabilis hat folgendes geschrieben:
wie macht es denn TweakUi

Ich kenne TweakUI nicht aber ich behaupte, daß TweakUI, wenn es als normaler Benutzer gestartet wird, auch keine Werte ändern kann für die man Adminrechte benötigt.
Das darf einfach nicht.

Bis neulich ...
Christian V. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 311

Win Xp Prof
Turbo Delphi 2005
BeitragVerfasst: Mi 02.03.05 17:25 
Was meint denn Luckie was ich da als Konstruktor angeben muss damit es funktioniert?

_________________
Hardware runs the world, software controls the hardware, code generates software - Have You already coded today?
Christian V. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 311

Win Xp Prof
Turbo Delphi 2005
BeitragVerfasst: Mi 02.03.05 19:15 
ich hätte ne idee wies funktionieren könnt...
doch zuerst muss ich wissen, wie ich einen befehl an einen dienst(von mir gemacht) schicken kann, dass dieser ihn abfängt und das nötige ausführt.
Ich habs mir nähmlich so überlegt, ich mache einen Dienst, dieser läuft mit systemrechten und hat also vollen zugriff auf die registry. also, ich schicke von meinem Programm die daten die ich zur Keyerstellung brauche an den dienst, und dieser schreibt es in die registry. ist so was machbar?

_________________
Hardware runs the world, software controls the hardware, code generates software - Have You already coded today?
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Mi 02.03.05 21:09 
invulnerabilis hat folgendes geschrieben:
Was meint denn Luckie was ich da als Konstruktor angeben muss damit es funktioniert?

KEY_READ
Christian V. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 311

Win Xp Prof
Turbo Delphi 2005
BeitragVerfasst: Mi 02.03.05 21:11 
so kann ich aber nur werte auslesen oder?

_________________
Hardware runs the world, software controls the hardware, code generates software - Have You already coded today?
Grendel
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 443

Gentoo Linux, MacOS X, Win 2000
D5 Ent, D7 Ent, Lazarus, Anjuta, MonoDevelop
BeitragVerfasst: Do 03.03.05 09:24 
invulnerabilis hat folgendes geschrieben:
... ich mache einen Dienst, dieser läuft mit systemrechten und hat also vollen zugriff auf die registry. also, ich schicke von meinem Programm die daten die ich zur Keyerstellung brauche an den dienst, und dieser schreibt es in die registry. ist so was machbar?

Klar ist sowas machbar. Nur muss der Dienst ebenfalls mit Administratorrechten installiert werden.

Bis neulich ...