Jump to content











Photo
* * * * * 1 votes

Portabilitron


  • Please log in to reply
18 replies to this topic

#1 Aeolis

Aeolis

    Frequent Member

  • .script developer
  • 145 posts
  • Location:Rio de Janeiro
  • Interests:I am just trying to learn and help.
  •  
    Brazil

Posted 22 January 2012 - 03:33 PM

Posted Image

File Name: Portabilitron
File Submitter: Aeolis
File Submitted: 22 Jan 2012
File Updated: 09 Feb 2013
File Category: App scripts

CREDITS: My BIG THANK YOU for the Reboot.pro community!

DESCRIPTION:
This script is designed for the applications that are already portable or pseudo-portable. With it you can add shortcuts to Desktop, Start Menu, a Start Menu custom folder, Startup entry with command line parameters, file associations (separate them by commas, for example: txt,ini,cfg) and you can even choose to run the applications from RAM (boot.wim) or not. This script is ready for up to fifty program entries. If you need more just copy and rename the "Portabilitron.script" file as many times as needed.

FROM AUTHOR: I hope you like using it as much as I liked creating it. I hope you can test and post your comments here. I would like suggestions on how to clean/improve this script.

Best regards,

Aeolis


Click here to download this file
  • Brito and ChrisR like this

#2 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 22 January 2012 - 05:24 PM

Love it, that someone adapted my old QuickScript idea for Win7PE and even improved upon the original. :thumbup: :thumbup: :thumbup:

:cheers:

#3 homes32

homes32

    Gold Member

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

Posted 22 January 2012 - 11:23 PM

wow. nice work!
I don't know how you managed to stay sane writing 4000+ lines of the same thing. real dedication! :)

I made some improvements to your script.
I scrapped the per program processing and run everything through a loop increasing processing time by about 5,000% (actually I made up that number. wonko could proably tell me the exact percent but sifficed to say it's REALLY fast now.)
code is also much cleaner as there is only one "function" doing all the work. code reduced to under 600 lines!!!
poke around in the source to see how it works as it looks a bit odd let me know if you have questions on how/why the code is doing.

number of programs support in the interface has been decreased to 10 as I am lazy and the interface loads faster this way. you can eaisly add more if you want to though. just add the controls to the [Interface] section and change the loop iteration in the [Process] section.

thans again for this nice script!

Homes32Attached File  Portabilitron.script   106.08KB   1032 downloads

Disclaimer: the attached script is an example of ways to improve this script. I will not support this script here or develop it further. that is up to Aeolis

#4 fuwi

fuwi

    Frequent Member

  • Expert
  • 135 posts
  • Location:Switzerland
  •  
    Switzerland

Posted 23 January 2012 - 12:48 PM

excellent script!

@homes32: i've found 2 errors in your script version:

1)
not working, "The path you specified as your source is not valid!"

CopyProgram,%IN_ProgramDir_%LoopCount%%,%Target_Prog%%IN_ProgramFolder_%LoopCount%%,%IN_ProgramExe_%LoopCount%%


this works:

CopyProgram,%IN_ProgramFile_%LoopCount%%,%Target_Prog%%IN_ProgramFolder_%LoopCount%%,%IN_ProgramExe_%LoopCount%%


2)
not working (no desktop shortcut creation!)

If,%CB_Shortcut_DT_%LoopCount%%,Equal,True,Add_Shortcut,Desktop,,%IN_ProgramTitle_%LoopCount%%,%PE_Programs%%IN_ProgramFolder_%LoopCount%%%IN_ProgramExe_%LoopCount%%,%IN_ProgramTitle_%LoopCount%%


this works:

If,%CB_Shortcut_DT_%LoopCount%%,Equal,True,Add_Shortcut,Desktop,,%PE_Programs%%IN_ProgramFolder_%LoopCount%%%IN_ProgramExe_%LoopCount%%,%IN_ProgramTitle_%LoopCount%%


fuwi

#5 homes32

homes32

    Gold Member

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

Posted 23 January 2012 - 02:39 PM

excellent script!

@holmes32: i've found 2 errors in your script version:

1)
not working, "The path you specified as your source is not valid!"


this works:


2)
not working (no desktop shortcut creation!)


this works:


fuwi

good catch! fixed version in original post.

#6 fuwi

fuwi

    Frequent Member

  • Expert
  • 135 posts
  • Location:Switzerland
  •  
    Switzerland

Posted 23 January 2012 - 04:09 PM

homes32, thanks for the fixed version, now it works like a charm! :victory:


fuwi

#7 Aeolis

Aeolis

    Frequent Member

  • .script developer
  • 145 posts
  • Location:Rio de Janeiro
  • Interests:I am just trying to learn and help.
  •  
    Brazil

Posted 28 January 2012 - 06:38 PM

Hello folks,

I hope you enjoy version 2. My BIG THANK YOU for Homes32! His ideas reduced this script size by 36.11% and made it much faster while keeping all its functionality.

Best regards,

Aeolis

#8 homes32

homes32

    Gold Member

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

Posted 30 January 2012 - 03:22 PM

:good: Thanks again for this nice script!

#9 DarkPhoeniX

DarkPhoeniX

    Frequent Member

  • Team Reboot
  • 452 posts
  • Location:In the middle of nowhere
  • Interests:Interesting Things
  •  
    South Africa

Posted 11 February 2012 - 05:09 AM

Nice .script
one problem the script is too long it slows down my winbuilder to the speed of a snail
Try less entrys, 10 would be better then 50
in your own words:

If you need more just copy and rename the “Portabilitron.script” file as many times as needed.


Now for the good news:
i made a bat that adds regestry files
and starts services
its not done but the idee is thare
get it here

copy the .reg files you want to add into the reg folder
edit the services.ini to start a service
start by running inject.exe(would needed to be set to wait for the exe to finish before loading in winbuilder script)

#10 Aeolis

Aeolis

    Frequent Member

  • .script developer
  • 145 posts
  • Location:Rio de Janeiro
  • Interests:I am just trying to learn and help.
  •  
    Brazil

Posted 11 February 2012 - 02:48 PM

Dear DarkPhoeniX,

Portabilitron version 2 takes 4 seconds to open its GUI in my machine (latest WinBuilder version and latest scripts versions - all updated today). During the build time its processing performance impact is absolutely normal it will indeed take more time depending on how many entries you are using. I don't see why it would "slows down my winbuilder to the speed of a snail". Its better check if you are updated.

Well, I will not reduce it. You can just delete the lines that you don't like they are identified by the comment "//Program number 50", for instance. Just delete the blocks you don't want from "//Program number 11" to "//Program number 50" and remember to go to line "Loop,%ScriptFile%,Process-Portabilitron,1,50" and change 50 to 10 in you case. It will do the trick for you.

I didin't get the point of your "Injector" bat file. Do you want me to implement it on Portabilitron? I will not do that. As stated on the Portabilitron script desciption:

"This script is designed for the applications that are already portable or pseudo-portable. With it you can add shortcuts to Desktop, Start Menu, a Start Menu custom folder, Startup entry with command line parameters, file associations (up to fifteen) and you can even choose to run the applications from RAM (boot.wim) or not. This script is ready for up to fifty program entries. If you need more just copy and rename the "Portabilitron.script" file as many times as needed."

For programs that demands special registry entries or services dependencies its better to use a case by case approach. Portabilitron is NOT designed to these cases.

Best regards,

Aeolis

Edited by Aeolis, 11 February 2012 - 02:49 PM.


#11 Aeolis

Aeolis

    Frequent Member

  • .script developer
  • 145 posts
  • Location:Rio de Janeiro
  • Interests:I am just trying to learn and help.
  •  
    Brazil

Posted 07 June 2012 - 07:46 PM

Hello folks,

Good news on this one! Now it's possible to add unlimited file associations for each program entry.

Best regards,

Aeolis
  • Brito likes this

#12 ChrisR

ChrisR

    Silver Member

  • .script developer
  • 784 posts
  •  
    France

Posted 14 June 2012 - 10:41 AM

Hi Aeolis,

I enjoyed this nice script :good:
Also, I played with it and I have made some improvements, I hope that you will agree with them.

I don't know how you managed to stay sane writing 4000+ lines of the same thing. real dedication! :)


I renamed the interface objects (and added a OpenDir button in each group) and as I was too lazy to do it 50 times, I went through an Excel spreadsheet to do it (xls is in attachment).

one problem the script is too long it slows down my winbuilder to the speed of a snail
Try less entrys, 10 would be better then 50

Well, I will not reduce it. You can just delete the lines that you don't like they are identified by the comment "//Program number 50", for instance. Just delete the blocks you don't want from "//Program number 11" to "//Program number 50" and remember to go to line "Loop,%ScriptFile%,Process-Portabilitron,1,50" and change 50 to 10 in you case. It will do the trick for you.


I added for that, a button with number of groups to display in the interface (displayed faster and faster to build, if fewer than 50 groups selected).

Otherwise I changed Add_Asso (keep for backward compatibility in cAPI, as Associate_File), to write directly the associations registry keys , faster at build time (without API) and without writing registry keys at startup.
and also some additional checks: source path(exe) exist, if FolderName or PgmTitle not specified take Program name (without extension).

Portabilitron_v004

Portabilitron.jpg

I hope you will appreciate the amendments, remaining faithful to your work :thumbsup:
Feel free, of course, to change everything you want, Up to you ;)

:cheers:
  • Brito likes this

#13 homes32

homes32

    Gold Member

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

Posted 14 June 2012 - 01:42 PM

Nice improvements! I would change the text button from "Go" to "Set" or something similar though. Go to me means process the script, and this is not the buttons purpose.

#14 Aeolis

Aeolis

    Frequent Member

  • .script developer
  • 145 posts
  • Location:Rio de Janeiro
  • Interests:I am just trying to learn and help.
  •  
    Brazil

Posted 14 June 2012 - 09:00 PM

Hello folks,

ChrisR, thank you very much for your help. I do use Excel to create the interface section too. It is really faster to use it. Well, I will need some time to implement your changes. I liked them. Changing from Add_Asso to direct wrinting to registry really improves the script and PE boot speed? I could use this approach in some other scripts I have created... :idea:

Currently I am working on a backup module for Portabilitron script. Wait a bit I am almost there... :loleverybody:

Best regards,

Aeolis

P.S.: The additional "OpenDir" button you have added, which is the real benefit of it? Just a small speed up or something bigger?

#15 ChrisR

ChrisR

    Silver Member

  • .script developer
  • 784 posts
  •  
    France

Posted 15 June 2012 - 12:30 PM

P.S.: The additional "OpenDir" button you have added, which is the real benefit of it? Just a small speed up or something bigger?


The additional "OpenDir" button is not essential, just here to open Explorer in the right place.
For example, It allows, if needed, to change things in an application portable without seeking the path.
I like but not necessarily required and other changes are more important (number of apps, Regwrite associations). Up to you ;)

:cheers:

#16 Aeolis

Aeolis

    Frequent Member

  • .script developer
  • 145 posts
  • Location:Rio de Janeiro
  • Interests:I am just trying to learn and help.
  •  
    Brazil

Posted 17 June 2012 - 08:08 PM

Hello folks,

Good news on this one! Now it's possible to make backups of your program entries and import them later. For the ones that have tons of entries it's a must have. Well, for now on, please, take extreme caution when changing the interface names. The import backup module relies on it. If the names are changed the import backup module will lose its compatibility with previous versions from now on (version 4 is the first with the backup module, so backup will NOT work from version 1 to version 3; I am really sorry :blush: ).

I will implement ChrisR modifications ASAP, but I need some rest right now. So, see you soon with upgrades on this one. :cheerleader:

Best regards,

Aeolis

#17 Aeolis

Aeolis

    Frequent Member

  • .script developer
  • 145 posts
  • Location:Rio de Janeiro
  • Interests:I am just trying to learn and help.
  •  
    Brazil

Posted 01 July 2012 - 08:10 PM

Hello folks,

Good news on this one! Now it's possible to display only the number of entries you want to be processed by the script. This reduces the script interface load time. I've implemented ChrisR main ideas. My BIG THANK YOU for ChrisR! His ideas improved this script load and build speed. :cheerleader:

Best regards,

Aeolis

#18 jojo2005

jojo2005

    Newbie

  • Members
  • 13 posts
  •  
    Germany

Posted 13 October 2012 - 02:35 PM

@Aeolis,

and why isn`t your update not on the Project Server for the Win7PE_SE ?
There is still the Version 4
Please Update

Thanks

jojo2005

#19 Aeolis

Aeolis

    Frequent Member

  • .script developer
  • 145 posts
  • Location:Rio de Janeiro
  • Interests:I am just trying to learn and help.
  •  
    Brazil

Posted 13 October 2012 - 04:14 PM

Hello folks,

Win7PE_SE is maintained by ChrisR. I am not able to update Portabilitron script on his server. The Portabilitron script offered on Win7PE_SE is a "spin-off" from my Portabilitron script, the main difference between them is that Win7PE_SE version doesn't have the backup module.

@jojo2005: If you want to update this script to version 5 just download it from here and change the file "Portabilitron.script" on you local Win7PE_Se folder. Thank you for using Portabilitron. Sorry, but I can't do more for you.

Best regards,

Aeolis




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users