MSFN Forum: [tool] addons2wpi converter - MSFN Forum

Jump to content



  • 5 Pages +
  • 1
  • 2
  • 3
  • 4
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

[tool] addons2wpi converter Batch convert tool to help use WPI instead of nLite to install addons Rate Topic: -----

#21 User is offline   Nuno Brito 

  • .script developer
  • PipPip
  • Group: Members
  • Posts: 259
  • Joined: 11-May 06

Posted 14 March 2008 - 01:46 PM

View Postzorphnog, on Mar 14 2008, 05:44 PM, said:

...
It doesn't like not having a drive letter in the destination path. Once I added the drive (C:) it worked fine.


Thank you for testing
, you can use a subfolder without mentioning the full path but I wasn't counting on folders using relative paths like ..\

Is this an important feature to be added?


View Postbenxhi, on Mar 14 2008, 07:07 PM, said:

Forgot that the WLM is a builder :S:( it builds an addon it makes it cab in the end it asks you do you wannt it to patched and things :( really sorry.


No problem, we can also add support for running the Build_AddOn.cmd and people can decide to run them or not when batch converting a package like this.


Another doubt: Is the config.js outputed by this tool being well created under your opinion?

Are there any sort of details needed to take into account when adding several dozens of addons together?

:)


#22 User is offline   Nuno Brito 

  • .script developer
  • PipPip
  • Group: Members
  • Posts: 259
  • Joined: 11-May 06

Posted 14 March 2008 - 02:04 PM

Hi Scott, sorry for skipping your comments but I was replying to the previous questions.


View Postsbaeder, on Mar 14 2008, 07:40 PM, said:

Didn't clean up the "temp" area, which was a good thing. All the "cab" ones I had while 7zip shows a SVCPACK directory that has the installers executable, it was extracted in the top level temp/{0,1,2...} directory. hence, it didn't copy over into the WPI area...easy enough for me to do, since the temp area wasn't cleaned up ;-)


Hmm..

Version 1.1 should be cleaning up the temp folder for a clean operation when running in unattended mode, will do more testings and try to reproduce the same bug as it should be copying all these files to "%WPIpath%\Install\SVCPACK" and removing the temp folder along the way.

But since you found this "feature" usefull, what do you think about adding a small options panel where you would be able to customize this behavior and choose what to do with the extracted files?

Maybe I could also add a few more buttons and other users wouldn't need to use the command line to convert addons.



Quote

Also, parsing of the in/out directories is a bit "sloppy", since when I had the error of D:wpi\wpi (missing first "\", it tried to write the output in the last temp area (in my case temp\13

Finally, the output box doesn't scroll, so when I hit 13 addon's, it cut off part of the text.


Thanks for reporting these annoying bugs, will correct them right away.



Quote

BUT, I was just thinking of doing this, since it is a pain to manage a lot of this stuff, and quite frankly, even if the .js file is only 90% correct when I have to group them, etc. it is still a BIG help.


I'm really happy that you like it, thank you for the feedback! :)

#23 User is offline   sbaeder 

  • Newbie
  • Group: Members
  • Posts: 17
  • Joined: 01-January 07

Posted 14 March 2008 - 03:15 PM

View PostNuno Brito, on Mar 14 2008, 02:04 PM, said:

Version 1.1 should be cleaning up the temp folder for a clean operation when running in unattended mode, will do more testings and try to reproduce the same bug as it should be copying all these files to "%WPIpath%\Install\SVCPACK" and removing the temp folder along the way.

But since you found this "feature" usefull, what do you think about adding a small options panel where you would be able to customize this behavior and choose what to do with the extracted files?

Maybe I could also add a few more buttons and other users wouldn't need to use the command line to convert addons.


Sure a few things like this would be nicer along the way.

Was also thinking of how you're doing the mapping of the fields from the inf file to the .js file. I need to think about it/play with it more, since I think that it would be nice to have a bit more 'flexibility', but as I siad, let me think on it...

the issue on the copy of the actual setup.exe files is probably related to a 'flat' extract using the 7za.exe file since as I siad, no directory was created in the temp/0 area...the one "rar" file I tried (for itunes) created the directory in the temp area, and also copied the file over to the WPI area...

Scott

#24 User is offline   sbaeder 

  • Newbie
  • Group: Members
  • Posts: 17
  • Joined: 01-January 07

Posted 14 March 2008 - 03:35 PM

One more minor thing...you don't need to set the order number explicitly in each entry. the fact that you have the "pn++" statement is sufficient.

It would also make it easier to "add" as opposed to re-process addons to the existing config.js file. And if your adding "options", allowing us to pick the output file would also be "nice"...

But as I said, this is over 80% of the hard work...(unfortunately, the last 20% of the "polish" takes way more than 80% of the total time invested before your done.

Scott

#25 User is offline   benxhi 

  • QuaNTuM
  • Pip
  • Group: Members
  • Posts: 84
  • Joined: 27-February 08

Posted 14 March 2008 - 04:27 PM

I don't know is this a bug or not but whenever the addon2wpi is done in the wpi.hta there are two entries that should be there at all here are the ones : ;## and ;==
and also here are my config.js contents :


pn=1;
prog[pn]=['daemon4121-lite-x86.exe'];
uid[pn]=['DAEMON4121-LITE-X86.EXE-0'];
dflt[pn]=['yes'];
cat[pn]=['Applications'];
forc[pn]=['no'];
cmd1[pn]=['"%wpipath%\\Install\\SVCPACK\\daemon4121-lite-x86.exe"'];
pn++;


pn=2;
prog[pn]=[';##'];
uid[pn]=[';##-1'];
dflt[pn]=['yes'];
cat[pn]=['Applications'];
forc[pn]=['no'];
cmd1[pn]=['"%wpipath%\\Install\\SVCPACK\\;##"############################################################'];
pn++;


pn=3;
prog[pn]=['ccleaner_201.exe'];
uid[pn]=['CCLEANER_201.EXE-2'];
dflt[pn]=['yes'];
cat[pn]=['Applications'];
forc[pn]=['no'];
cmd1[pn]=['"%wpipath%\\Install\\SVCPACK\\ccleaner_201.exe"'];
pn++;


pn=4;
prog[pn]=['DriveImageXML121.exe'];
uid[pn]=['DRIVEIMAGEXML121.EXE-3'];
dflt[pn]=['yes'];
cat[pn]=['Applications'];
forc[pn]=['no'];
cmd1[pn]=['"%wpipath%\\Install\\SVCPACK\\DriveImageXML121.exe" /S'];
pn++;


pn=5;
prog[pn]=['FileZilla3041.exe'];
uid[pn]=['FILEZILLA3041.EXE-4'];
dflt[pn]=['yes'];
cat[pn]=['Applications'];
forc[pn]=['no'];
cmd1[pn]=['"%wpipath%\\Install\\SVCPACK\\FileZilla3041.exe" /S'];
pn++;


pn=6;
prog[pn]=['Firefox2.exe'];
uid[pn]=['FIREFOX2.EXE-5'];
dflt[pn]=['yes'];
cat[pn]=['Applications'];
forc[pn]=['no'];
cmd1[pn]=['"%wpipath%\\Install\\SVCPACK\\Firefox2.exe" -ms'];
pn++;


pn=7;
prog[pn]=['JRE6.exe'];
uid[pn]=['JRE6.EXE-6'];
dflt[pn]=['yes'];
cat[pn]=['Applications'];
forc[pn]=['no'];
cmd1[pn]=['"%wpipath%\\Install\\SVCPACK\\JRE6.exe" /quiet /norestart'];
pn++;


pn=8;
prog[pn]=['Notepad46.exe'];
uid[pn]=['NOTEPAD46.EXE-7'];
dflt[pn]=['yes'];
cat[pn]=['Applications'];
forc[pn]=['no'];
cmd1[pn]=['"%wpipath%\\Install\\SVCPACK\\Notepad46.exe" /S'];
pn++;


pn=9;
prog[pn]=['OpenOffice230.exe'];
uid[pn]=['OPENOFFICE230.EXE-8'];
dflt[pn]=['yes'];
cat[pn]=['Applications'];
forc[pn]=['no'];
cmd1[pn]=['"%wpipath%\\Install\\SVCPACK\\OpenOffice230.exe" /S'];
pn++;


pn=10;
prog[pn]=['PuTTY060.exe'];
uid[pn]=['PUTTY060.EXE-9'];
dflt[pn]=['yes'];
cat[pn]=['Applications'];
forc[pn]=['no'];
cmd1[pn]=['"%wpipath%\\Install\\SVCPACK\\PuTTY060.exe" /VERYSILENT /SP-'];
pn++;


pn=11;
prog[pn]=['QT_Alt-211.exe'];
uid[pn]=['QT_ALT-211.EXE-10'];
dflt[pn]=['yes'];
cat[pn]=['Applications'];
forc[pn]=['no'];
cmd1[pn]=['"%wpipath%\\Install\\SVCPACK\\QT_Alt-211.exe"'];
pn++;


pn=12;
prog[pn]=['RealVNC412.exe'];
uid[pn]=['REALVNC412.EXE-11'];
dflt[pn]=['yes'];
cat[pn]=['Applications'];
forc[pn]=['no'];
cmd1[pn]=['"%wpipath%\\Install\\SVCPACK\\RealVNC412.exe" /VERYSILENT /SP-'];
pn++;


pn=13;
prog[pn]=['Recuva106132.exe'];
uid[pn]=['RECUVA106132.EXE-12'];
dflt[pn]=['yes'];
cat[pn]=['Applications'];
forc[pn]=['no'];
cmd1[pn]=['"%wpipath%\\Install\\SVCPACK\\Recuva106132.exe" /S'];
pn++;


pn=14;
prog[pn]=['Spybot151.exe'];
uid[pn]=['SPYBOT151.EXE-13'];
dflt[pn]=['yes'];
cat[pn]=['Applications'];
forc[pn]=['no'];
cmd1[pn]=['"%wpipath%\\Install\\SVCPACK\\Spybot151.exe"'];
pn++;


pn=15;
prog[pn]=['TinyHexer1816.exe'];
uid[pn]=['TINYHEXER1816.EXE-14'];
dflt[pn]=['yes'];
cat[pn]=['Applications'];
forc[pn]=['no'];
cmd1[pn]=['"%wpipath%\\Install\\SVCPACK\\TinyHexer1816.exe" /VERYSILENT /SP-'];
pn++;


pn=16;
prog[pn]=['TUGZip3402.exe'];
uid[pn]=['TUGZIP3402.EXE-15'];
dflt[pn]=['yes'];
cat[pn]=['Applications'];
forc[pn]=['no'];
cmd1[pn]=['"%wpipath%\\Install\\SVCPACK\\TUGZip3402.exe" /VERYSILENT /SP-'];
pn++;


pn=17;
prog[pn]=['unlocker185.exe'];
uid[pn]=['UNLOCKER185.EXE-16'];
dflt[pn]=['yes'];
cat[pn]=['Applications'];
forc[pn]=['no'];
cmd1[pn]=['"%wpipath%\\Install\\SVCPACK\\unlocker185.exe"'];
pn++;


pn=18;
prog[pn]=[';=='];
uid[pn]=[';==-17'];
dflt[pn]=['yes'];
cat[pn]=['Applications'];
forc[pn]=['no'];
cmd1[pn]=['"%wpipath%\\Install\\SVCPACK\\;=="============================='];
pn++;


pn=19;
prog[pn]=['FF.exe'];
uid[pn]=['FF.EXE-18'];
dflt[pn]=['yes'];
cat[pn]=['Applications'];
forc[pn]=['no'];
cmd1[pn]=['"%wpipath%\\Install\\SVCPACK\\FF.exe"'];
pn++;


pn=20;
prog[pn]=['VMwareTools.exe'];
uid[pn]=['VMWARETOOLS.EXE-19'];
dflt[pn]=['yes'];
cat[pn]=['Applications'];
forc[pn]=['no'];
cmd1[pn]=['"%wpipath%\\Install\\SVCPACK\\VMwareTools.exe"'];
pn++;


pn=21;
prog[pn]=['wlm9b.exe'];
uid[pn]=['WLM9B.EXE-20'];
dflt[pn]=['yes'];
cat[pn]=['Applications'];
forc[pn]=['no'];
cmd1[pn]=['"%wpipath%\\Install\\SVCPACK\\wlm9b.exe"'];
pn++;


pn=22;
prog[pn]=['WindowsDefender.exe'];
uid[pn]=['WINDOWSDEFENDER.EXE-21'];
dflt[pn]=['yes'];
cat[pn]=['Applications'];
forc[pn]=['no'];
cmd1[pn]=['"%wpipath%\\Install\\SVCPACK\\WindowsDefender.exe"'];
pn++;


pn=23;
prog[pn]=['XP_Codec_Pack-232.exe'];
uid[pn]=['XP_CODEC_PACK-232.EXE-22'];
dflt[pn]=['yes'];
cat[pn]=['Applications'];
forc[pn]=['no'];
cmd1[pn]=['"%wpipath%\\Install\\SVCPACK\\XP_Codec_Pack-232.exe"'];
pn++;

everything else is OK for me!

#26 User is offline   jtdoom 

  • Newbie
  • Group: Members
  • Posts: 14
  • Joined: 08-August 06

Posted 14 March 2008 - 05:16 PM

View PostNuno Brito, on Mar 14 2008, 11:43 AM, said:

Hi jtdoom! :hello:

Nuno? I think we gonna have a HUGE re-think.
M$ has released powerful tools.

Oh.. We do not have them [[yet. $$ ]]
At driverpacks, a smart guy once posted a 7z what runs after core of XP or server 2003 ran..
Of course, it uses a DLL, but it works.

The graphics for dps are reliant on it
7za is a NO, I would callit a moron in 32 bit world.
Look at the scripts DPS uses and see the miracle. It can, FAIK, handle RAR.

This post has been edited by jtdoom: 14 March 2008 - 05:24 PM


#27 User is offline   Nuno Brito 

  • .script developer
  • PipPip
  • Group: Members
  • Posts: 259
  • Joined: 11-May 06

Posted 14 March 2008 - 06:41 PM

hello again!

Quote

Nuno? I think we gonna have a HUGE re-think.
M$ has released powerful tools.
Oh.. We do not have them [[yet. $$ ]]

This sounds neat, where can I read more about them? :sneaky:

----------

Will look on the scripts for the graphics driverpacks and see what techniques were used after debugging the things posted earlier today that need to be corrected on the next version.

Quote

7za is a NO, I would callit a moron in 32 bit world.
I thought it was working good, why do you say this?

:)

#28 User is offline   sbaeder 

  • Newbie
  • Group: Members
  • Posts: 17
  • Joined: 01-January 07

Posted 14 March 2008 - 11:29 PM

View Postbenxhi, on Mar 14 2008, 04:27 PM, said:

I don't know is this a bug or not but whenever the addon2wpi is done in the wpi.hta there are two entries that should be there at all here are the ones : ;## and ;==

pn=2;
prog[pn]=[';##'];

pn=3;
prog[pn]=['ccleaner_201.exe'];

pn=18;
prog[pn]=[';=='];

pn=19;
prog[pn]=['FF.exe'];

Look at the cab/zip/whatever you had in the input directory just before CCleaner and FF (they are in alphabetical order)...My guess is that they have something "funny" in them.

Scott

#29 User is offline   benxhi 

  • QuaNTuM
  • Pip
  • Group: Members
  • Posts: 84
  • Joined: 27-February 08

Posted 15 March 2008 - 03:34 AM

Nothing fuzzy :( everything is OK i doubke checked the cabs and inf-s :S :@

#30 User is offline   sbaeder 

  • Newbie
  • Group: Members
  • Posts: 17
  • Joined: 01-January 07

Posted 15 March 2008 - 10:30 PM

View Postbenxhi, on Mar 15 2008, 03:34 AM, said:

Nothing fuzzy :( everything is OK i doubke checked the cabs and inf-s :S :@

What was the specific file that was before the problem ones...Maybe posting the INF file would help Nuno debug it?

#31 User is offline   benxhi 

  • QuaNTuM
  • Pip
  • Group: Members
  • Posts: 84
  • Joined: 27-February 08

Posted 16 March 2008 - 04:22 AM

I'm gonna post all of my addons the ones i use and than you tell me which one makes the problems .
daemon4121-lite-x086
Kels_CPLBonus_addon_v.8.1.3
ProgramAddons Ccleaner_201
ProgramAddons DriveImage XML 1.21
ProgramAddons FileZilla 3.0.4.1
ProgramAddons Firefox 2.0.0.11
ProgramAddons Java Runtime Environment 6 Update 3
ProgramAddons Notepadplus 4.6
ProgramAddons OpenOffice 2.3.0
ProgramAddons PuTTY 0.60
ProgramAddons QT_Alt-211
ProgramAddons RealVNC 4.1.2
ProgramAddons Recuva 1.06.132
ProgramAddons Spybot Search _ Destroy 1.5
ProgramAddons Tiny Hexer 1.8.1.6
ProgramAddons TUGZip 3.4.0.2
ProgramAddons Unlocker185
Ricks_ImgBurn2.4_AddOn
Ricks_VistaFirefox2.0.0.12_AddOn
Ricks_VMwareTools7.2.8.59824_AddOn
Ricks_WindowsLiveMessengerBETA9.0.1407.1107_AddOn
WindowsDefender
XP_Codec_Pack-232
XPizeDarkside21

#32 User is offline   Kelsenellenelvian 

  • WPI Guru
  • Group: Developers
  • Posts: 7,652
  • Joined: 18-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 16 March 2008 - 04:32 AM

my cpl bonus one has a silent installer you can dl and just add to WPI...

#33 User is offline   benxhi 

  • QuaNTuM
  • Pip
  • Group: Members
  • Posts: 84
  • Joined: 27-February 08

Posted 16 March 2008 - 10:30 AM

DL to check results !

#34 User is offline   Nuno Brito 

  • .script developer
  • PipPip
  • Group: Members
  • Posts: 259
  • Joined: 11-May 06

Posted 17 March 2008 - 07:52 AM

New 1.2 version made avaialable! :)

Log of changes:
- Added new tabs for Help, Paths and Options
- Improved progress listing
- Added option to use GUI instead of just command line switches
- Options to customize default category and paths for WPI, option to keep Temp files
- Added a better help text
- All settings are saved to addons2wpi.ini to avoid repeating the same actions


Download here:
http://nunobrito.eu/...load.php?view.8

Added all previously requested options and also improved the overall file progress to make it look more smooth.

-----------------------------------

I still need more feedback regarding the best way to create config.js - can the line pn=xx be ignored when using pn++ ?

This was tested with my list of Addons, if there is any addon that you notice that isn't working, please post the download link so that I can get the same files you're using and see what is wrong.


Thank you for all the feedback so far, hope the missing 20% to get this tool completed are getting near to be reached.. :)

#35 User is offline   benxhi 

  • QuaNTuM
  • Pip
  • Group: Members
  • Posts: 84
  • Joined: 27-February 08

Posted 17 March 2008 - 01:31 PM

Ok so I firstly Changed ito Vista Ultimate so i couldn't respond now I just tested it and The GUI is great !
It's Running smooth no Problems to report :D great tool! no problems to report exept the two things i had but no big problem i can just delete them from config.js :D Going to check the Win Builder now with Vista !

#36 User is offline   Nuno Brito 

  • .script developer
  • PipPip
  • Group: Members
  • Posts: 259
  • Joined: 11-May 06

Posted 20 March 2008 - 09:02 AM

I think this tool has reached a stable state.

Kelsenellenelvian, do you think this topic could be posted as stickie?

Otherwise I fear it will soon fall into oblivion as more posts get added.


I can also release this tool as open source if you wish, guess my goal to create a converter can now be considered complete and will carry on with my work on UXP.

:)

#37 User is offline   Kelsenellenelvian 

  • WPI Guru
  • Group: Developers
  • Posts: 7,652
  • Joined: 18-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 20 March 2008 - 03:36 PM

:P NO I WON'T PIN IT :P

You can't make me!!!

MWahhhaahhhhhaha

Lol OK, OK I give.

#38 User is offline   Nuno Brito 

  • .script developer
  • PipPip
  • Group: Members
  • Posts: 259
  • Joined: 11-May 06

Posted 20 March 2008 - 04:36 PM

haha.. that was easy.. :lol:

For a moment I thought in practising some voodoo! :ph34r: :whistle:


I'll clean up the first topic with the recent changes and attach the source code in case someone else needs it.

Thank you! :thumbup

#39 User is offline   benxhi 

  • QuaNTuM
  • Pip
  • Group: Members
  • Posts: 84
  • Joined: 27-February 08

Posted 21 March 2008 - 04:06 AM

Well thanks for providing the source code , but how do i compile it ? the comp.bat doesn't make anythings :|

#40 User is offline   Nuno Brito 

  • .script developer
  • PipPip
  • Group: Members
  • Posts: 259
  • Joined: 11-May 06

Posted 21 March 2008 - 06:38 AM

Hi Benxhi!

This tool was coded using delphi 7.

You can download it here: http://mirrors.jx90.com/

And register your copy for free on the borland site: http://www.codegear....ads/free/delphi

----

"comp.bat" will just run "upx -9 addos2wpi.exe" and compress the exe file.

UPX is a exe compressor: http://upx.sourceforge.net


:)

Share this topic:


  • 5 Pages +
  • 1
  • 2
  • 3
  • 4
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy