Jump to content











Photo

How to make a program auto start in win8PE


  • Please log in to reply
3 replies to this topic

#1 chestertomato

chestertomato

    Newbie

  • Members
  • 27 posts
  •  
    Hong Kong

Posted 14 October 2013 - 06:31 PM

I've a program say abc.exe , and want to auto start to run this program when win8pe boot up.

 

Something I found very strange. When I mount C:\Win8PE_SE_2013-10-03\ISO\WIM\sources\boot.wim to C:\mount , I found some files in C:\mount\windows\system32 , they are :

     winpeshl.ini , startnet.cmd , start.cmd

I know I can place the abc.exe in one of them and can be autorun. But when I boot up the win8pe , all the above 3 files are disappear.

 

In the mounted C:\mount\windows\system32 , the 3 files do exist. How come when boot win8pe , they disappear ?

 

So I can't find a way to place the abc.exe to autorun.

 

Please help

 



#2 al_jo

al_jo

    Gold Member

  • Members
  • 1218 posts
  • Location:Tellus

Posted 15 October 2013 - 07:25 AM

Why not just make a simple script for the abc.exe and add autostart to it?
Example:
 
[Interface]
CheckBoxAS=AutoStart,1,3,44,32,84,18,True
 
[Process]
If,%CheckBoxAS%,Equal,True,Add_Shortcut,AutoStart


#3 homes32

homes32

    Gold Member

  • .script developer
  • 1021 posts
  • Location:Minnesota
  •  
    United States

Posted 15 October 2013 - 02:21 PM

So I can't find a way to place the abc.exe to autorun.


You may also consider the AddAutoRun command documented here if you require more control about how/when your program is started.



#4 MasterG

MasterG
  • Members
  • 8 posts
  •  
    Greece

Posted 21 February 2014 - 03:42 PM

Another way is to make sure that Autorun is ticked in the Build section of WinBuilder.

Then add the following lines to the application script you want to run (change Ghost\Ghost64.exe to your application and application folder):
 

If,ExistFile,"%target_sys%\autorun.cmd",Begin
TXTDelLine,"%target_sys%\autorun.cmd","exit"
TXTAddLine,"%target_sys%\autorun.cmd","start %PE_Programs%\Ghost\Ghost64.exe","Append"
TXTAddLine,"%target_sys%\autorun.cmd","exit","Append"
End





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users