Autor Beitrag
jomeier85
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 46



BeitragVerfasst: So 19.11.06 16:23 
Hallo...

ich schreibe im Moment eine simple To-Do-List und verwende Inno-Setuo um einen Installer dafür zu erstellen...

Meine Frage ist jetzt, wie schaffe ich es, dass sich die Applikation in den Autostart schreibt und was eigentlich noch viel wichtiger ist, dass sie sich beim deinstallieren wieder aus dem Autostart löscht...

Mit freundliche Grüßen...
Jan


Moderiert von user profile iconChristian S.: Topic aus Windows API verschoben am So 19.11.2006 um 21:42
VaNaTiC
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 30



BeitragVerfasst: So 19.11.06 19:10 
Mit InnoSetup könntest Du einen Registry-Eintrag setzen auf:
HKLM -> für alle Benutzer oder
HKCU -> für den momentan angemeldeten User
und dann in ...\Software\Microsoft\Windows\CurrentVersion\Run\

In der Deinstallationsroutine von InnoSetup kann dieser Eintrag zum Entfernen ausgewählt werden.

Ein Tipp wäre dazu die GUI: InnoSetupTool

MfG
jomeier85 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 46



BeitragVerfasst: Mo 20.11.06 09:43 
danke für die tipps... besonders der link sieht vielversprechend aus :)

mfg jan
Raffo
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 300



BeitragVerfasst: Mo 20.11.06 09:55 
Ich hab mir mal komplexe Funktionen geschrieben, wo man den Autostart wie folgt einstellen kann:

- kein Autostart
- alle Benutzer
- alle, nur dieser inaktiv
- nur dieser Benutzer
- nur dieser Benutzer inaktiv

Ich verwende es in meinem Freeware WindowBlocker Programm. Mit dem "inaktiv" Schalter wird der Anwenung ein Kommandoparameter mitgegeben.

Wenn Interesse besteht, kann ich die Funktionen ja mal posten.
jomeier85 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 46



BeitragVerfasst: Mo 20.11.06 16:56 
das wäre echt nett von dir.
Hab nämlich festgestellt, dass es noch nicht so funktioniert wie ich mir das vorstelle.

Danke schon mal im Vorraus.

mfg Jan
Raffo
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 300



BeitragVerfasst: Mo 20.11.06 17:32 
ok, ich mach morgen früh eine fertige Unit davon, ist momentan noch der andere Code mittendrin -also ein Beispiel Projekt, bis dann.
Raffo
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 300



BeitragVerfasst: Di 21.11.06 12:12 
Hier ist das Beispielprojekt. Eigentlich wolltest Du nur wissen, wie man den Autostart entfernen kann? Den Code dazu wirst Du sicherlich hierin finden.
Einloggen, um Attachments anzusehen!
jomeier85 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 46



BeitragVerfasst: Do 23.11.06 15:46 
damköööööö :)

mfg jan