Phil_123 Posted September 25, 2004 Share Posted September 25, 2004 Hello! This is my first post here. This site is sure a great Windows resource! The "Threads of Interest" thread helped me to find lots of things I needed!Anyways, here's my question. Is it possible to automatically launch a program when the GUI portion of Windows XP loads? Link to comment Share on other sites More sharing options...
ml20 Posted September 25, 2004 Share Posted September 25, 2004 not that i am aware of.you can launch an app from the t-13 cmdlines.txt point, though Link to comment Share on other sites More sharing options...
Phil_123 Posted September 25, 2004 Author Share Posted September 25, 2004 not that i am aware of.you can launch an app from the t-13 cmdlines.txt point, though What do you mean by "t-13 cmdlines.txt"?I think it is possible, because Norton popped up asking me to activate when I was repairing my Windows. Link to comment Share on other sites More sharing options...
ml20 Posted September 25, 2004 Share Posted September 25, 2004 well, any application can be run from there.but there is no file that you can add a line that will execute a command line or program right when the GUI part starts.the t-13 cmdlines.txt is a file called CMDLINES.TXT that you put in your OEM folder and when the GUI setup reaches the 13 minute mark, it will execute any batch file that you have entered in CMDLINEX.TXT.Example of cmdlines.txt. [COMMANDS]"REGEDIT /S regtweaks.reg""RunOnceEx.cmd""makeuser.cmd"for me, i have the CMDLINES.TXT execute the list of programs that i want to install upon first boot, and i have it add many registry tweaks, and create five user accounts. Link to comment Share on other sites More sharing options...
prathapml Posted September 25, 2004 Share Posted September 25, 2004 Well, I run a silently extracting EXE at the time when graphical setup starts (you know, the time just before it starts detecting and installing devices, when it says "39 minutes remaining"). And this is how:[GuiUnattended] DetachedProgram="%systemroot%\PnPdrvrs.exe" Arguments="-y /q /r:n"This code should be in winnt.sif - and the above lines are self-explanatory (one line is the EXE to run, the next is the switches to run it with).Note that very few programs can be successfully run at this stage. Link to comment Share on other sites More sharing options...
Phil_123 Posted September 26, 2004 Author Share Posted September 26, 2004 Well, I run a silently extracting EXE at the time when graphical setup starts (you know, the time just before it starts detecting and installing devices, when it says "39 minutes remaining"). And this is how:[GuiUnattended] DetachedProgram="%systemroot%\PnPdrvrs.exe" Arguments="-y /q /r:n"This code should be in winnt.sif - and the above lines are self-explanatory (one line is the EXE to run, the next is the switches to run it with).Note that very few programs can be successfully run at this stage.Thank you very much prathapml! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now