Jump to content











Photo
- - - - -

Minlogon and Explorer.exe . . .

minlogon explorer.exe shell

  • Please log in to reply
52 replies to this topic

#26 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12688 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 02 September 2014 - 05:15 PM

HOW EXACTLY it is started? :unsure:

  Hive_Load,HKU
  RegWrite,HKLM,0x2,%reg%\Microsoft\Windows\CurrentVersion\RunOnce,_easydriveletter,"%SystemRoot%\System32\easyDriveLetter.exe"
  Hive_UnLoad,HKU

Maybe you have a method to check, whether it is really executed before explorer.

Or Squid checks whether it fullfills his requirement.

 

Peter



#27 Squid

Squid

    Frequent Member

  • Advanced user
  • 105 posts
  •  
    United States

Posted 03 September 2014 - 02:05 PM

@pscEx:

 

Still looking to cut out a couple of shakes for a quick try; but I do have one question:  Aren't all of the Run/RunOnce entries started subsequent to Explorer.exe?  Indeed, are they not run by Explorer itself???

 

Thanks again --



#28 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12688 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 03 September 2014 - 04:58 PM

I'm afraid that you are right ... :o

 

Peter



#29 Squid

Squid

    Frequent Member

  • Advanced user
  • 105 posts
  •  
    United States

Posted 05 September 2014 - 01:00 AM

Ugh.  Best laid plans . . .

 

:(

 

We need a revolution!

 

( :cheers: )



#30 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 13408 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 05 September 2014 - 08:39 AM

Ugh.  Best laid plans . . .

 

:(

 

We need a revolution!

 

( :cheers: )

Naaah.

The KEY characteristic of a revolution is that it happens suddenly.

The good ReactOS guys :), for one reason or the other, and possibly not really really entirely "their" fault, have burned too many years in the process. :(

 

And now. potatoes :w00t::

Spoiler

 

:duff:

Wonko



#31 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12688 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 09 September 2014 - 04:58 PM

Ugh.  Best laid plans . . .

 

:(

 

We need a revolution!

 

( :cheers: )

 

I do not like revolutions.

 

Therefore I tried something like a step backwords, remembering the good old time of DOS and NT4.

 

XP still contains the ability to use the old NT AutoExNt mechanism. :bounce8:

 

The resulting script you can download here

 

I think that you can adapt it to a live OS.

 

Peter



#32 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 13408 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 09 September 2014 - 05:42 PM

 

Therefore I tried something like a step backwords, remembering the good old time of DOS and NT4.

 

XP still contains the old NT AutoExNt mechanism.

Well, it doesn't really-really contain it (otherwise you wouldn't need to download the RKtools):

http://www.microsoft...s.aspx?id=17657

 

And please allow me to doubt how the OP will use/need a Winbuilder .script for a XP SP2 (which is NOT a PE).

 

But the idea is very good :) and the OP may find related information here:

http://support.micro...kb/243486/en-us

http://brattex.blogs...ile-before.html

 

Though still it is to be seen when exactly the batch (or .vbs) will start in a minlogon setup. :unsure:

 

:duff:

Wonko



#33 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12688 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 10 September 2014 - 10:28 AM

And please allow me to doubt how the OP will use/need a Winbuilder .script for a XP SP2 (which is NOT a PE).

 

I'm not sure whether I understood you correctly. :confused1:

 

See the attached screen shoot of a dutch XP SP2 build (unfortunatelly my italian xp2 is corrupt. Maybe you provide one for me) :cheers:

 

AutoExNt3.gif

 

Peter



#34 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 13408 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 10 September 2014 - 11:11 AM

I'm not sure whether I understood you correctly. :confused1:

 
Maybe it's me that I am not understanding you correctly. :dubbio:
 
Here:
http://reboot.pro/fi...autoexntscript/
you wrote:

This script adds the historic AutoExNt functionality to a PE1:
...
Needs XP SP3 as source!

 
The OP asked for a solution for a FULL, INSTALLED XP (NOT a PE1) and - while at it - a particular kind of XP (not a PE) making use of minlogon component (as opposed to the "normal" Winlogon) and an XP SP2 (and not SP3).

 

The idea seems to me - as said - a very good one :thumbsup:, and worth experimenting, but the .script in itself (IF, as declared, is meant to be used as part of a project to build a PE1 from a XP SP3 source) sounds like not specifically useful. 

 
  :duff:

Wonko



#35 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12688 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 10 September 2014 - 01:45 PM

I should read the first post more careful

Here a batch which seems to work under XP SP3 OS.

Spoiler

I tested with notpad.

When I logged on, notepad has no visible window. But the process is shown in task manager.

Imo that proofs, that notepad is started before winlogon.

Peter :cheers:



#36 v77

v77

    Silver Member

  • Team Reboot
  • 509 posts
  •  
    France

Posted 10 September 2014 - 02:46 PM

I should read the first post more careful :ouch:
 
Here a batch which seems to work under XP SP3 OS.

Spoiler

I tested with notpad.

 

When I loged on, notepad has no visible window. But the process is shown in task manager.

 

Imo that proofs, that notepad is started before winlogon.

 

Peter :cheers:

 

I don't understand how this service can work... The ImagePath value is supposed to be a REG_EXPAND_SZ string which specifies the executable started by the service manager. And ErrorControl is supposed to be a REG_DWORD...

By the way, a service can display no window unless it is set as "interactive".

And winlogon is the one that starts the Service Control Manager, and so, the services, and so, your AutoExnt.bat. This means that winlogon is necessarily started before AutoExnt.bat.



#37 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 13408 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 10 September 2014 - 03:25 PM

And winlogon is the one that starts the Service Control Manager, and so, the services, and so, your AutoExnt.bat. This means that winlogon is necessarily started before AutoExnt.bat.

Which, provided that minlogon (which is NOT Winlogon) behaves the same (IMHO it should) might (or might not) work to start a .bat or .vbs before the Explorer Shell (which is was the OP asked).

 

To recap, what was asked was "how to start a process before the Explorer shell is launched?" (and not "before Winkogon" and not any other question)

 

The provided scenario is:

  1. the os is Windows XP (and NOT a PE)
  2. the os is at SP2 (and not at any other Service Pack level)
  3. the os starts using the minlogon component (and not Winlogon)

It was NOT specified (missing data)

  1. if the launched process needed to be interactive or not
  2. if the launched process should display *anything* to the user

Until OP does not correct/update the provided parameters and supplies the missing data (and also tests the suggested approach and reports) we are only making (more or less educated :)) guesses.

 

Using the AutoExecNT approach, BTW, is not much different from the suggestion Betrand originally made here:

http://reboot.pro/to...erexe/?p=186758

and it is very possible that being a "MS original" solution, the AutoExecNT service starts either "very fast" or "very early" avoiding the "timing problems" I cited.

 

As I see it :unsure:, an important point that everyone seems to ignore/skip over is that the minlogon is d@mn faster in booting and logging in than "normal" Winlogon, even if the system is set to "autologon".

 

:duff:

Wonko



#38 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12688 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 10 September 2014 - 04:23 PM

I don't understand how this service can work... The ImagePath value is supposed to be a REG_EXPAND_SZ string which specifies the executable started by the service manager. And ErrorControl is supposed to be a REG_DWORD...

 

Thanks that is a mistake I made by copying into the spoiler. I copied from an intermediate batch rather from the final.

Corrected

 

Peter



#39 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12688 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 10 September 2014 - 05:58 PM

Let me try to make a conclusion.

 

(IMO minlogon is a 'lite' winlogon replacing winlogon and running at the same boot time. If I'm wrong, please explain, and forget everything I wrote here.

I have Winlogon on my system)

 

If there are no voodoo effects, the PID of a task shows the order when it is started.

 

An extract of task manager PID's, when the system is booted with AutoExNt starting notepad:

 

Winlogon: 292

Services: 360

Notepad: 1500

Explorer: 2560

 

As a result:

 

v77 is right with

And winlogon is the one that starts the Service Control Manager, and so, the services, and so, your AutoExnt.bat. This means that winlogon is necessarily started before AutoExnt.bat.

 

But also the requirement of Squid

Is there another place in the hives which could be utilized to launch a process before Explorer.exe in the normal bootup chain?

is solved with this method.

 

Peter



#40 Squid

Squid

    Frequent Member

  • Advanced user
  • 105 posts
  •  
    United States

Posted 11 September 2014 - 12:53 AM

Gone away, now tired; so I'm just checking in for a bit ;)  Thank you all so much for the ongoing help.

 

The provided scenario is:

  1. the os is Windows XP (and NOT a PE)  --yes
  2. the os is at SP2 (and not at any other Service Pack level)  --yes; the parasites in Redmond won't get me with SP3 :)
  3. the os starts using the minlogon component (and not Winlogon)  --yes again

It was NOT specified (missing data)

  1. if the launched process needed to be interactive or not 
  2. if the launched process should display *anything* to the user

 

Thanks for asking.  I'll need "desktop inteaction" (or something like that, IIRC from the choices present in NSSM); as the exe sits in the tray for much fiddling.

 

And, thanks again!

 

 

Nite, nite :yawn:



#41 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 13408 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 11 September 2014 - 11:14 AM

@peter

Very good. :)

The :

 

If there are no voodoo effects, the PID of a task shows the order when it is started.

 

An extract of task manager PID's, when the system is booted with AutoExNt starting notepad:

 

Winlogon: 292

Services: 360

Notepad: 1500

Explorer: 2560

 

is perfect  :worship: about "timing".

 

:duff:

Wonko

 

:



#42 Squid

Squid

    Frequent Member

  • Advanced user
  • 105 posts
  •  
    United States

Posted 12 September 2014 - 04:11 PM

Back again; this time fully awake ;)

 

OK.

 

I do confess to being a bit "lost in the woods" about how to implement this on my system.

 

So, could one of you good folks give me a "turn-by-turn" as to which files are required from the Windows Server 2003 Resource Kit Tools, where to put things, and what reg entries are needed to finish the work. :ermm:

 

Also, is there a special "tweak" which might be required to allow the launched exe to interact correctly with the system tray?

 

Thanks again, all --



#43 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 13408 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 12 September 2014 - 04:32 PM

No reg entries.

 

Get the rktools: http://www.microsoft...s.aspx?id=17657

From the .exe (7-zip will do) extract the needed files: Autoexnt.exe, Servmess.dll, and Instexnt.exe

then (which is the difficult part? :unsure:)

http://support.micro...kb/243486/en-us

Installing the AutoExNT Service

  1. Using a text editor (such as Notepad), create a batch file named Autoexnt.bat and include the commands you want to run at startup in this file.
  2. Copy the Autoexnt.bat file you just created, in addition to the Autoexnt.exe, Servmess.dll, and Instexnt.exe files located in the Resource Kit CD-ROM to the %SystemRoot%\System32 folder on your computer.
  3. At a command prompt, type instexnt install, and then press ENTER.

You should then receive the following message:
CreateService AutoExNT SUCCESS with InterActive Flag turned OFF

 

To view the installation processes running on the desktop, you must install the AutoExNT service using the /interactive switch. For example, instead of typing instexnt install, you would type instexnt install /interactive at a command prompt, and then press ENTER.

...

 

and:

NOTE: The AutoExNT service includes a /interactive switch, analogous to the /interactive switch of the AT command

....

http://ss64.com/nt/at.html

 

Still how it actually behaves in your specific case and with the specific *whatever* (for which you failed to provide any additional meaningful detail) you will start from it is for you to experiment with.

 

The point is that since it will be started by Winlogon/Minlogon, and it will thus - by design - be started before Explorer, since you talk of "system tray" (which is AFAICU "part" of the Explorer shell) it is possible that the "timing" won't be "right" (like too early) :unsure: to "hook" (or "get hooked" into) the "system tray".

No real way to know until you try and see what happens. :dubbio:

 

:duff:
Wonko



#44 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12688 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 12 September 2014 - 04:58 PM

You need only three files of the kit:

  • Instexnt.exe
  • autoexnt.exe
  • servmess.dll

Unfortunatelly, thanks Billy the Door, you must download and install the complete kit.

 

I'm not a good teacher / explainer.

 

Maybe you find all you need in the attached batches.

 

Peter

 

Attached File  autoexnt.zip   778bytes   220 downloads



#45 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 13408 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 12 September 2014 - 05:03 PM


Unfortunatelly, thanks Billy the Door, you must download and install the complete kit.


Download, yes. (but all in all it's a 12 Mb file)
Install, no. (as said 7-zip will allow to extract the files from the rktools.msi inside the rktools.exe easily).
 
:duff:
Wonko

#46 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12688 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 12 September 2014 - 06:03 PM

Please suggest alternate batches!

 

Peter :cheers:



#47 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 13408 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 12 September 2014 - 06:19 PM

Please suggest alternate batches!

 

Alternate batches for what? :unsure:

 

:duff:

Wonko



#48 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12688 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 12 September 2014 - 06:21 PM

Change my batches for your suggestion "Install No"

 

Peter



#49 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 13408 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 12 September 2014 - 06:29 PM

Change my batches for your suggestion "Install No"

 

Peter

There is no *need* (that I can see at least) for a batch.

  1. Download the RKtools.exe.
  2. Open it in 7-zip
  3. Open the RKtool.msi in 7-zip
  4. Copy the three mentioned files to %SystemRoot%\System32
  5. add a autoexecnt.bat to %SystemRoot%\System32

:duff:

Wonko



#50 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12688 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 12 September 2014 - 06:41 PM

If that works, I admire you as voodoo magician!

 

How is the service created?

 

Peter







Also tagged with one or more of these keywords: minlogon, explorer.exe, shell

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users