Jump to content











Photo
- - - - -

Launch program at startup on Win7PE_SE

win7pe_se

  • Please log in to reply
5 replies to this topic

#1 brianpaul

brianpaul

    Member

  • Members
  • 43 posts
  •  
    United States

Posted 08 May 2012 - 07:44 PM

I have a small exe file that I want to launch once Win7PE_SE boots up. I'm new to this and would like to know the easiest way to go about this?

Thanks!

#2 amalux

amalux

    Platinum Member

  • Tutorial Writer
  • 2813 posts
  •  
    United States

Posted 08 May 2012 - 08:01 PM

AddAutoRun works nicely http://wb.paraglider...AddAutoRun.html

If,%pCheckBox0%,Equal,True,AddAutoRun,%ProgramTitle%,"%PE_Programs%%ProgramFolder%some.cmd",,1

  • brianpaul likes this

#3 brianpaul

brianpaul

    Member

  • Members
  • 43 posts
  •  
    United States

Posted 08 May 2012 - 08:27 PM

Cool, thanks amalux! Just two quick questions. I'm assuming I go to Build/Autorun and clicked on edit. If this is the case, where within this file should I enter that line of code you gave?

Also, what folder do I copy the exe file to?

Thanks for the help!

#4 amalux

amalux

    Platinum Member

  • Tutorial Writer
  • 2813 posts
  •  
    United States

Posted 08 May 2012 - 08:47 PM

OK, the code I gave you can be added to any script under [Process] section. Normally this is used in a program script to launch a batch or exe file supplied by that script. It works by adding an entry to the autorun section of %PE_CFG%. Files can be encoded in the script or imported by the script at run time. If imported, the files can be supplied wherever the script is pointed to, normally %GlobalTemplates% is used (projectDirWorkbenchCommonyourFolder) but, again, the script must know to look here. See examples of other scripts in your project for how this works or look here for more info: http://www.paraglide...inbuilder/Help/

The Build/Autorun script you refer to is a bit different, it supplies autorun.exe and autorun.cmd to the build and gives examples of adding autorun.cmd entries as well as RunOnce registry startup commands for starting your program. Both examples would be similarly added to [Process] section of the script you're working with. Generally you don't want to add these entries or files to another (unrelated) script but I suppose it would work if you don't want to create your own.

#5 brianpaul

brianpaul

    Member

  • Members
  • 43 posts
  •  
    United States

Posted 09 May 2012 - 01:37 PM

Thanks, I really appreciate your help! Forgive me for being slow to catch on, but I've been looking over the script files and I still don't understand it very well. I have created my script file and posted it below, but how do I tell it to copy the exe file and what folder do I put it in? Would I put that info in the same script? Here's what I have...


[Main]

Title=MyProg

Author=BPL

Level=3

Version=1

Description=MyProg

Contact=

Date=

Selected=True

Download_Level=1

Mandatory=False

NoWarning=False

History001=

[Process]

If,%pCheckBox0%,Equal,True,AddAutoRun,%ProgramTitle%,"%PE_Programs%\%ProgramFolder%\MyProg.exe",,1



#6 amalux

amalux

    Platinum Member

  • Tutorial Writer
  • 2813 posts
  •  
    United States

Posted 09 May 2012 - 02:05 PM

No problem, I'd like to see the whole script if possible. You can upload to mediafire and post a link, PM me if wanted. I'll take a look and see if we can get it working ;)





Also tagged with one or more of these keywords: win7pe_se

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users