Jump to content











Photo
- - - - -

About autostart up program after boot win7pe (driver loaded)


  • Please log in to reply
No replies to this topic

#1 vmk1007

vmk1007
  • Members
  • 2 posts
  •  
    Vietnam

Posted 05 January 2015 - 07:42 AM

Hi, im newbi

I have PCI capture graphic card (driver) and my program use it. i want my program auto start up after driver  loaded (because: if driver not loaded my program not working ).

I try : "driver intergration" and "start my progarm" script  with AddAutoRun or AddPostConfig but not working right (my program alway auto start up before driver loaled..)

 

How can i do, pls help, tks all (srr, my E not well :D)

 p/s : my code

[Process]
// Run from RAM will place the program files in WIM/RAMDRIVE where it will be writeable instead of on CD
If,%ScrollBox_RunFromWhere%,Equal,"Run From RAM",RunFromRAM,True
If,%ScrollBox_RunFromWhere%,Equal,"Run From CD",RunFromCD,True
Echo,"Processing %ProgramTitle%..."
// Create our Directories
If,ExistDir,"%Target_prog%\%ProgramFolder%",DirDelete,"%Target_prog%\%ProgramFolder%"
DirMake,"%Target_prog%\%ProgramFolder%"
// unpack our files from our archive we encoded into the script.
Unpack,Folder,MyProgramArchive.7z,True
 
//Run,%ScriptFile%,Registry
//Add_Shortcuts
If,%CB_Desktop%,Equal,True,Add_Shortcut,Desktop
If,%CB_StartMenu%,Equal,True,Add_Shortcut,StartMenu,%IN_SMFolder%,
If,%CB_QuickLaunch%,Equal,True,Add_Shortcut,QuickLaunch
//Autorun the program with the /install parameter when PE starts
//AddAutoRun,"My Program","%PE_Programs%\%ProgramFolder%\%ProgramEXE2%",,1
 
//If,ExistFile,%target_sys%\autorun.cmd,begin
//TXTDelLine,%target_sys%\autorun.cmd,exit
//TXTAddLine,%target_sys%\autorun.cmd,"drvload.exe X:\Program Files\%ProgramFolder%\TW68XX.inf",Append
//TXTAddLine,%target_sys%\autorun.cmd,exit,Append
 
AddPostConfig,"My Program","%PE_Programs%\%ProgramFolder%\%ProgramEXE%",,2





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users