Jump to content











Photo
* * * * * 1 votes

[project] New Make Script


  • Please log in to reply
256 replies to this topic

#126 pedrole15

pedrole15

    Silver Member

  • .script developer
  • 731 posts
  •  
    France

Posted 03 July 2007 - 01:26 AM

i have a big request. can you include i a future build the ability for a short cut to point to an external .ico? it would be useful for running bat or cmd files as the executable. h7plugin builder now uses this option. your script builder handles the expand command instead of copy command better.

thanks
carfan

I have updated the program
Test it
Thanks for comment
Pedro
MakeScript___13.jpg

#127 TheHive

TheHive

    Platinum Member

  • .script developer
  • 4171 posts

Posted 03 July 2007 - 06:20 AM

I like the one single exe format you started. Also like the tabs. It makes it more digestible for first timers.

#128 pedrole15

pedrole15

    Silver Member

  • .script developer
  • 731 posts
  •  
    France

Posted 04 July 2007 - 12:38 AM

i have a big request. can you include i a future build the ability for a short cut to point to an external .ico? it would be useful for running bat or cmd files as the executable.

Ok this is working now

your script builder handles the expand command instead of copy command better.

If it is in the tabs Encode Copy file from source it must work now

#129 h7se

h7se

    Frequent Member

  • Developer
  • 264 posts
  •  
    Palestine

Posted 04 July 2007 - 06:38 AM

Great Tool :1st:

Thanks

#130 carfan

carfan

    Frequent Member

  • Advanced user
  • 196 posts
  •  
    United States

Posted 06 July 2007 - 05:55 PM

I have updated the program
Test it
Thanks for comment
Pedro
MakeScript___13.jpg

external ico works great. another request - instead of adding individual folder and then adding
files within that folder could you make it to add folder tree. ex. test folder\sub folder\files and so on at one time instead of several steps.

thanks
carfan

#131 carfan

carfan

    Frequent Member

  • Advanced user
  • 196 posts
  •  
    United States

Posted 06 July 2007 - 06:59 PM

external ico works great. another request - instead of adding individual folder and then adding
files within that folder could you make it to add folder tree. ex. test folder\sub folder\files and so on at one time instead of several steps.

thanks
carfan


i forgot, maybe you could add copytoram and copytotemp option

thnaks

#132 phox

phox

    Silver Member

  • .script developer
  • 764 posts

Posted 14 August 2007 - 07:35 AM

I have updated the program
Test it
Thanks for comment
Pedro
MakeScript___13.jpg


I have tested v13 and as before Script generator works fantastic.

With latest development of WB, folder structure is changed and
MakeScript should be adapted to the new programs architecture:

Attached File  Program_Files.zip   622.91KB   361 downloads

#133 pedrole15

pedrole15

    Silver Member

  • .script developer
  • 731 posts
  •  
    France

Posted 22 August 2007 - 09:37 PM

Sorry phox, I don't understand :loleverybody:
What is wrong ? What must I do ?

#134 pedrole15

pedrole15

    Silver Member

  • .script developer
  • 731 posts
  •  
    France

Posted 09 October 2007 - 10:51 PM

New version 14
added project type : App Script (for use with last API)
Some bug and not finish
just for test
(Need wbzip in same folder)

Pedro

Attached Files



#135 phox

phox

    Silver Member

  • .script developer
  • 764 posts

Posted 10 October 2007 - 07:03 AM

New version 14
added project type : App Script (for use with last API)
Some bug and not finish
just for test
(Need wbzip in same folder)

Pedro


Test of MakeScript 14 for VistaPE project.

I have few suggestions for slight improvement:

1. Change “This script will include Ghost in your PE compilation”
into “This script will include Ghost in your build.”
2. Make program to remember after closing all settings until changed.
3. Make generating of “Run from ram” selectable.
4. Add “Close” button in popup window and make it disappear
after pressing it or button “Save”.
5. Most important change is possibility of multi level of “%OutDir%” :
%OutDir%= %ParentItem%\ %PName%.

To illustrate proposed changes compare generated with edited script.

Attached File  GhostAuto.zip   750bytes   308 downloadsAttached File  GhostEdited.zip   573bytes   300 downloads

#136 pedrole15

pedrole15

    Silver Member

  • .script developer
  • 731 posts
  •  
    France

Posted 10 October 2007 - 06:52 PM

Hi Phox,
Thanks for testing
Ok for your request :cheers:
Do you want to save all settings for each script or only for the last ?

Can i supress the Tab "Add orther files" and "Copy/Expand" ? (not sure if they are usefull)

Pedro

#137 phox

phox

    Silver Member

  • .script developer
  • 764 posts

Posted 10 October 2007 - 07:38 PM

Do you want to save all settings for each script or only for the last ?


Make selectable numer of saved setings.

Can i supress the Tab "Add orther files" and "Copy/Expand" ? (not sure if they are usefull)


I realy don't know, as I newer used them.

Thank you.

#138 Nuno Brito

Nuno Brito

    Platinum Member

  • .script developer
  • 10549 posts
  • Location:boot.wim
  • Interests:I'm just a quiet simple person with a very quiet simple life living one day at a time..
  •  
    European Union

Posted 10 October 2007 - 10:10 PM

Hi Pedrole, thanks for the release! :cheers:


Initial test results:

- Started the app on a empty folder without wbzip.exe included
- Clicking on "Project Type" and selecting "VistaPE" brings an error causing the app to close.

---

CopyOrExpand will only apply to I386 (XP) - better use the system variables to have a global reach to vistaPE and other projects as well and apply the require_file concept.

One request if possible:

Can all the menu tabs be grouped inside a single tab? :cheers:

Something like:

Menus
-- Menu1
-- Menu2
-- Menu3
...

Would make the UI less crowded.

---

The changes to use app scripts are very good - I will certainly start using it often.. :cheers:

#139 pedrole15

pedrole15

    Silver Member

  • .script developer
  • 731 posts
  •  
    France

Posted 14 October 2007 - 04:26 PM

Can all the menu tabs be grouped inside a single tab? :cheers:

Something like:

Menus
-- Menu1
-- Menu2
-- Menu3
...

Would make the UI less crowded.

Hi Nuno
Like this ?

Attached Thumbnails

  • 2007_10_14_181422.jpg


#140 Nuno Brito

Nuno Brito

    Platinum Member

  • .script developer
  • 10549 posts
  • Location:boot.wim
  • Interests:I'm just a quiet simple person with a very quiet simple life living one day at a time..
  •  
    European Union

Posted 14 October 2007 - 06:22 PM

Very intuitive - makes it easier to browse! :cheers:

---

Only one more idea: the "Source" value wouldn't be better as

"Program location"
"Source of program files"
"Program source"
"Files to include"


Good work on the UI - I've also noticed that adding arrow buttons to select the next/previous tab also helps people to browse through all the steps needed to get the script done - not very important - just another idea.

Something like:

<-- -->

:cheers:

(I've also added them on the latest wb version)

#141 TheHive

TheHive

    Platinum Member

  • .script developer
  • 4171 posts

Posted 14 October 2007 - 07:59 PM

The new interface looks good.

#142 phox

phox

    Silver Member

  • .script developer
  • 764 posts

Posted 17 October 2007 - 08:01 PM

Ok for your request :cheers:


@Pedro.

After lot of testing, this is my suggestion how
MakeScript generated api script should look like.

It is two level program folder (BackUp\Ghost)
and two level shortcut structure (BackUp\Ghost).

Works very well in LiveXP Project and
I will test it in VistaPE too, when I find some time.

&#91;Variables&#93;

%ProgramTitle%=%TextBox_Name%

%ProgramEXE%=Ghost.exe

%ProgramFolder%=%TextBox_Menu%\%ProgramTitle%

%DestDir%=Program#$sFiles\%ProgramFolder%



&#91;Process&#93;

RunFromRam,%CheckBox_RunFromRAM%

If,%CheckBox_SM%,Equal,True,Add_Shortcut,StartMenu

If,%CheckBox_DE%,Equal,True,Add_Shortcut,Desktop

If,%CheckBox_QL%,Equal,True,Add_Shortcut,QuickLaunch

If,%CheckBox_ST%,Equal,True,Add_Shortcut,SendTo

If,%CheckBox_AU%,Equal,True,Add_Shortcut,AutoStart

associate_file,.gho

DirMake,&#34;%TargetDir%\%DestDir%&#34;

ShellExecute,Hide,&#34;XCOPY&#34;,&#34;#$q%FBox_Source%\*.*#$q #$q%TargetDir%\%DestDir%#$q /e /y&#34;

Expand,&#34;%SourceDir%\I386\SNMPAPI.DL_&#34;,&#34;%TargetDir%\I386\System32&#34;

Process_log



&#91;Interface&#93;

Bevel_2=Bevel_2,1,12,21,12,171,39

CheckBox_RunFromRAM=&#34;Run from RAM &#40;Vista only&#41;&#34;,1,3,33,23,168,18,False

Bevel_1=Bevel_1,1,12,21,67,171,187

TextLabel_Shortcut=&#34;Create shortcuts in &#58;&#34;,1,1,27,73,117,18,8,Normal

CheckBox_SM=StartMenu,1,3,30,94,129,18,True

CheckBox_DE=DeskTop,1,3,30,114,96,18,True

CheckBox_QL=QuickLaunch,1,3,30,134,150,18,True

CheckBox_ST=SendTo,1,3,30,154,87,18,False

CheckBox_AU=AutoStart,1,3,30,174,100,18,False

TextBox_Name=&#34;Shortcut name&#34;,1,0,30,221,147,21,Ghost

CheckBox_StartFolder=,1,3,14,281,40,18,True

TextBox_Menu=&#34;Folder in menu&#34;,1,0,30,280,138,21,BackUp

Bevel_Source=,1,12,233,12,243,69

TextLabel_Source=&#34;Source folder&#34;,1,1,261,17,87,25,8,Bold

FBox_Source=&#34;F&#58;\F\Programs\BackUp\Ghost&#34;,1,13,253,43,206,28,dir


Thank you for attention.

#143 pedrole15

pedrole15

    Silver Member

  • .script developer
  • 731 posts
  •  
    France

Posted 19 October 2007 - 09:44 PM

Hi Phox
My correction
For work with VistaPE 10 and for LiveXP with the next Api version 7 (not ready yet)

&#91;Variables&#93;

%ProgramTitle%=%TextBox_Name%

%ProgramEXE%=Ghost.exe

%ProgramFolder%=%TextBox_Menu%\%ProgramTitle%

// Don&#39;t need this==> %DestDir%=Program#$sFiles\%ProgramFolder%



&#91;Process&#93;

RunFromRam,%CheckBox_RunFromRAM%

If,%CheckBox_SM%,Equal,True,Add_Shortcut,StartMenu

If,%CheckBox_DE%,Equal,True,Add_Shortcut,Desktop

If,%CheckBox_QL%,Equal,True,Add_Shortcut,QuickLaunch

If,%CheckBox_ST%,Equal,True,Add_Shortcut,SendTo

If,%CheckBox_AU%,Equal,True,Add_Shortcut,AutoStart

associate_file,.gho

//**************

//DirMake,&#34;%TargetDir%\%DestDir%&#34;

//ShellExecute,Hide,&#34;XCOPY&#34;,&#34;#$q%FBox_Source%\*.*#$q #$q%TargetDir%\%DestDir%#$q /e /y&#34;

//Expand,&#34;%SourceDir%\I386\SNMPAPI.DL_&#34;,&#34;%TargetDir%\I386\System32&#34;

//**************

//==> Will be replaced by

CopyProgram,%FBox_Source%

Require_File,SNMPAPI.DLL

Process_log

:cheers:
Pedro

#144 phox

phox

    Silver Member

  • .script developer
  • 764 posts

Posted 20 October 2007 - 04:05 AM

Hi Phox
My correction
For work with VistaPE 10 and for LiveXP with the next Api version 7 (not ready yet)

&#91;Variables&#93;

%ProgramTitle%=%TextBox_Name%

%ProgramEXE%=Ghost.exe

%ProgramFolder%=%TextBox_Menu%\%ProgramTitle%

// Don&#39;t need this==> ÞstDir%=Program#$sFiles\%ProgramFolder%



&#91;Process&#93;

RunFromRam,%CheckBox_RunFromRAM%

If,%CheckBox_SM%,Equal,True,Add_Shortcut,StartMenu

If,%CheckBox_DE%,Equal,True,Add_Shortcut,Desktop

If,%CheckBox_QL%,Equal,True,Add_Shortcut,QuickLaunch

If,%CheckBox_ST%,Equal,True,Add_Shortcut,SendTo

If,%CheckBox_AU%,Equal,True,Add_Shortcut,AutoStart

associate_file,.gho

//**************

//DirMake,&#34;%TargetDir%\ÞstDir%&#34;

//ShellExecute,Hide,&#34;XCOPY&#34;,&#34;#$qûox_Source%\*.*#$q #$q%TargetDir%\ÞstDir%#$q /e /y&#34;

//Expand,&#34;%SourceDir%\I386\SNMPAPI.DL_&#34;,&#34;%TargetDir%\I386\System32&#34;

//**************

//==> Will be replaced by

CopyProgram,ûox_Source%

Require_File,SNMPAPI.DLL

Process_log

:cheers:
Pedro


Hi Pedro.

This is much simpler and elegant as I ever hoped for. :cheers:
I assume that in [Interface], checkboxes will be defined.

One comment:
Is it really necessary to have SendTo and AutoStart shortcuts
for every program; maybe those should be selectable in MakeScript?

Kind regards. :cheers:

#145 phox

phox

    Silver Member

  • .script developer
  • 764 posts

Posted 22 October 2007 - 05:35 AM

This is script compatible with LiveXP/nativeEx and VistaPE projects:

&#91;Variables&#93;

%ProgramTitle%=%TextBox_Name%

%ProgramEXE%=Ghost.exe

%ProgramFolder%=%TextBox_Menu%\%ProgramTitle%



&#91;Process&#93;

RunFromRam,%CheckBox_RunFromRAM%

DirMake,&#34;%TargetDir%\Program#$sFiles\%ProgramFolder%&#34;

ShellExecute,Hide,&#34;XCOPY&#34;,&#34;#$q%FBox_Source%\*.*#$q #$q%TargetDir%\Program#$sFiles\%ProgramFolder%#$q /e /y&#34;

If,%CheckBox_SM%,Equal,True,Add_Shortcut,StartMenu,%ProgramFolder%

If,%CheckBox_DE%,Equal,True,Add_Shortcut,Desktop

If,%CheckBox_QL%,Equal,True,Add_Shortcut,QuickLaunch

If,%CheckBox_ST%,Equal,True,Add_Shortcut,SendTo

If,%CheckBox_AU%,Equal,True,Add_Shortcut,AutoStart

Require_File,SNMPAPI.DLL



&#91;Interface&#93;

Bevel_2=Bevel_2,1,12,21,12,171,39

CheckBox_RunFromRAM=&#34;Run from RAM &#40;Vista only&#41;&#34;,1,3,33,23,168,18,False

Bevel_1=Bevel_1,1,12,21,67,171,187

TextLabel_Shortcut=&#34;Create shortcuts in &#58;&#34;,1,1,27,73,117,18,8,Normal

CheckBox_SM=StartMenu,1,3,30,94,129,18,True

CheckBox_DE=DeskTop,1,3,30,114,96,18,True

CheckBox_QL=QuickLaunch,1,3,30,134,150,18,True

CheckBox_ST=SendTo,1,3,30,154,87,18,False

CheckBox_AU=AutoStart,1,3,30,174,100,18,False

TextBox_Name=&#34;Shortcut name&#34;,1,0,30,221,147,21,Ghost

CheckBox_StartFolder=,1,3,14,281,40,18,True

TextBox_Menu=&#34;Folder in menu&#34;,1,0,30,280,138,21,BackUp

Bevel_Source=,1,12,233,12,243,69

TextLabel_Source=&#34;Source folder&#34;,1,1,261,17,87,25,8,Bold

FBox_Source=F&#58;\F\Programs\BackUp\Ghost,1,13,253,43,206,28,dir

Command "CopyProgram,%FBox_Source%" is not working (or not implemented)
and QuickLaunch shortcut is not jet supported in VistaPE.

#146 pedrole15

pedrole15

    Silver Member

  • .script developer
  • 731 posts
  •  
    France

Posted 25 October 2007 - 04:34 AM

Command "CopyProgram,%FBox_Source%" is not working (or not implemented)
and QuickLaunch shortcut is not jet supported in VistaPE.

Hi phox
Download Api Version 7 for LiveXp and retry with CopyProgram
should work under VistaPE Beta 10 too
See example in \Projects\VistaPE-Beta\App\Office\PDFReader.script

Yes ,QuickLaunch shortcut is not jet supported in VistaPE.
:cheers:
Pedro

#147 pedrole15

pedrole15

    Silver Member

  • .script developer
  • 731 posts
  •  
    France

Posted 25 October 2007 - 06:01 AM

Sorry error in Api redownload it

#148 phox

phox

    Silver Member

  • .script developer
  • 764 posts

Posted 25 October 2007 - 07:52 AM

Hi phox
Download Api Version 7 for LiveXp and retry with CopyProgram
should work under VistaPE Beta 10 too
See example in \Projects\VistaPE-Beta\App\Office\PDFReader.script

Yes ,QuickLaunch shortcut is not jet supported in VistaPE.
:cheers:
Pedro



It works with VistaPE, but application files are copied to wrong folder:
to "Programs" instead to "Program Files".

#149 phox

phox

    Silver Member

  • .script developer
  • 764 posts

Posted 25 October 2007 - 08:30 AM

See example in \Projects\VistaPE-Beta\App\Office\PDFReader.script



Explorer_21.JPG

#150 pedrole15

pedrole15

    Silver Member

  • .script developer
  • 731 posts
  •  
    France

Posted 25 October 2007 - 11:14 AM

Explorer_21.JPG

Have try and i get same error
Web adress is probably wrong ,can't download file :cheers:




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users