Jump to content

[tool] addons2wpi converter


Recommended Posts

7z is now well supported whenever 7za.exe is placed on the same folder as addons2wpi

rar is not being decompressed for some strange reason - anyone knows why this happens with the console app 7za.exe? :huh:

---

A doubt:

Regarding the live Messenger addon you've posted - is it really working with nlite out of the box?

Looking at the forum discussion I see people have to manually run Build_AddOn.cmd prior to integrate this addon.

Should this step be automated by this tool?

:)

Edited by Nuno Brito
Link to comment
Share on other sites


New version was uploaded.

  • program now removes all runtime temporary folders
  • added support for unpacking .7z .zip and .rar nlite addons (requires 7za.exe and unrar.exe on the same folder as addons2wpi)

Please download the new package as it already contains 7za.exe and unrar.exe which are used for handling other archive formats.

http://nunobrito.eu/download.php?view.8

--------

There is no chance of converting the livemessenger with some reliability as it is not (yet) a addon. But after the user runs the initial batch file that will build the addon it will be possible to convert it just like any other addon.

:)

Link to comment
Share on other sites

zorphnog, please re-test as it should be corrected now.

:)

Ok. Just downloaded the new version and retried it. It didn't work at first, but I determined the problem was not with the ' this time. I used the following command:

C:\Users\mmims\Desktop\addons2wpi>addons2wpi.exe ..\Addon "\Users\mmims\All WPI's\WPI63"

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

Link to comment
Share on other sites

Thanks - good first start. Couple of comments.

(used lastest version as of this posting time...)

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 ;-)

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.

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.

Scott

Link to comment
Share on other sites

...

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?

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?

:)

Link to comment
Share on other sites

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

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.

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.

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! :)

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

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.

Edited by jtdoom
Link to comment
Share on other sites

hello again!

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.

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

:)

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...