• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 266
  • Last Modified:

Loading Before Explorer ?

I want my application to load before
explorer(not internet) loads... and
also explorer and other applications
must load after my application finishes.

any ideas ?

Thanx
0
k6__
Asked:
k6__
  • 5
  • 5
  • 4
  • +2
1 Solution
 
intheCommented:
Hi
to run at startup before windows ,write the path of your app here and this will start it before others:

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunServices
0
 
DragonSlayerCommented:
Or you could put it into HKEY_CURRENT_USER\\Software\Microsoft\Windows\CurrentVersion\RunServices if you want it to run only for the user who installed your app.


Cheers,
DragonSlayer
0
 
MadshiCommented:
If you run it under RunServices, it will START before the Explorer loads, but the Explorer will not wait until your program has finished.
If you need that, you have no other choice than to change the shell. Under win9x change "system.ini\[boot]\shell=c:\yourPath\yourProgram.exe". Next boot your program is loaded as shell, NOT the explorer. Before your program now terminates, you have to change the shell back to "Explorer.Exe" (without path!!), then start the Explorer, then quit your program.

Regards, Madshi.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
k6__Author Commented:
hmmm .. it is very dangerus to do that..
If my application crashes the i won't
load the explorer.. i've just wonder
how other programs do that... (i think
if i remember right the "norton
otimization" program loads before
explorer does when ever it does and
when it finishes it loads the explorer
and the rest of the programs)

Also this wont work under WinNT or
Win2k =(

Thanx
0
 
intheCommented:
i guess you'll have to write a proper service ..

www.jgsoftware.com/nt.htm 
has examples if you need any ..
0
 
MadshiCommented:
As far as I know, a service can't delay the starting of the explorer, or am I wrong?

k6, I don't have Norton whatever on my PC, so I can't check that. But my suggestion is the only way I can think of - BTW, it works for NT, too!!! Okay, you've to set some registry keys and such, but it's possible. If you would accept that as an answer, I could give you the complete information about how to change the shell under NT as well.

Regards, Madshi.
0
 
intheCommented:
no no you correct , i dont even think the service would start until first instance of explorer has started ,i mean doesnt explorer start the services? ..

k6 go on accept the answer of madshi  ,
i wanna see this nt way .. :o)

0
 
k6__Author Commented:
btw ... is there any way to disable/enable
explorer/taskbar ?
(post the NT stuff =) )

Thanx
0
 
MadshiCommented:
Well, "thanks" for that C grade...  :-(

"According to MSDN, you can indeed replace the shell on Windows NT. Note from the references to Program Manager that this information was written with reference to WinNT 3.x

Excerpted from MSDN:

Replacing the Shell (Program Manager)
Last reviewed: November 2, 1995
Article ID: Q100328  
The information in this article applies to:
Microsoft Win32 Application Programming Interface (API) included with:


    - Microsoft Windows NT versions 3.1, 3.5, and 3.51



SUMMARY
To replace the current shell, change the following registry key:


   HKEY_LOCAL_MACHINE\
      SOFTWARE\
      Microsoft\
      Windows NT\
      CurrentVersion\
      Winlogon\
      Shell

Note that Program Manager combines the functionality of Program Manager and Task Manager (the Task Manager installed is not actually run). Therefore, you must take this into account. In Windows NT 3.1, if the new shell does not replace the Task Manager functionality, the replacement string should contain both the new shell name and TASKMAN.EXE, separated by commas. In Windows NT 3.5, the new shell should either spawn TASKMAN.EXE or your own task manager, specified in

   HKEY_LOCAL_MACHINE\
      SOFTWARE\
      Microsoft\
      Windows NT\
      CurrentVersion\
      Winlogon\
      Taskman

The value does not exist by default, it must be added. The value type is REG_SZ.
To update the string that is retrieved when you call GetPrivateProfileString(), change the string in the following registry key:


   HKEY_LOCAL_MACHINE\
      SOFTWARE\
      MICROSOFT\
      Windows NT\
      Current Version\
      WOW\
      Boot\
      Shell

The duplicate entry is for compatibility with Windows 3.1."
0
 
k6__Author Commented:
Well i've gave you the "C" grade because
it isn't exctacly what i wanted!

0
 
intheCommented:
and giving an "a" grade would have hurt who ?

sometimes what we want isnt possible.
i mean it sounds as though you are wanting to start a win32 app before windows is loaded ..
(win32 exe will be using windows api's therefore need explorers dlls loaded ) that doesnt make sense to be possible ..

0
 
darinwCommented:
Hi all,

k6__ : When you grade an answer, you should grade it on how well it addressed the problem - not on how well it may have met your preconcieved notions on what the answer should be. In short, you shouldn't penalize the Experts who are trying to help YOU for a limitation of the software/OS/whathaveyou that is being used.

Remember, a customer that shoots the messenger often finds that the best people to help them won't help again because they have already been shot :)

darinw
Customer Service
0
 
k6__Author Commented:
I have Graded "C" because it is
addressing my problem in "dangerous" way
not safe... and because it isn't the
best solution...I don't mind to give
him an "A" but i don't see what points
and grades serves for ?

Thanx
0
 
intheCommented:
>>and because it isn't the
best solution...


ok then ,im curious as to what is best solution ??
0
 
MadshiCommented:
My solution is not the best solution if compared to what you want to have (namely an official API to let your program run before the explorer without making your program the shell).
But it's not my fault, that there simply is no such API. So I gave you the best *possible* solution. That's the scale where you should grade.

But let's forget about this question now. I can live with this one C grade. Perhaps next time you can measure your grade on the "possibility" scale, not on the "fancy-wish" scale.

Regards, Madshi.
0
 
k6__Author Commented:
I found the best possible way is to
"Hide" Desktop and Explorer but the
problem is that if the user press
CTRL-ESC it will bring the Start menu
up... this is also a lot of safer! =)
0

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

  • 5
  • 5
  • 4
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now