MSFN Forum: [tool] addons2wpi converter - MSFN Forum

Jump to content



  • 5 Pages +
  • 1
  • 2
  • 3
  • 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: -----

#1 User is offline   Nuno Brito 

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

Posted 13 March 2008 - 07:39 AM

addons2wpi

This tool will allow you to batch convert your addons and easily use WPI instead of nLite to install them along with Windows. It was meant for unattended use and you only need to mention the folder where the nLite addons are placed and the folder where WPI is located when launching the tool from the command prompt or a script.

addons2wpi is freeware and everyone is welcome to use and share as needed.

More features will surely be added upon request.

Posted Image

Posted Image

Usage:
addons2wpi.exe AddonFolder WPIfolder


  • AddonFolder is where you have all your addons
  • WPI folder is where WPI.hta is placed



Some notes:

  • It will look specifically for CAB/7Zip/RAR/ZIP files inside the addons folder and respective subfolders.
  • All entries are placed inside the WPIScripts folder and will overwrite config.js with the new entries - please backup this file if you wish to keep your customized settings.
  • My experience with nLite and WPI is still very recent, if something needs to be corrected please mention any details that need attention and I will work to solve them.




One tip when using the command line parameters:

If your path contains any spaces like for example: My Documents - you need to use "" as this format: "My Documents" so that windows can properly recognize these spaces in the path name.

Thank you!! :)




Translation of this page on other languages:


This post has been edited by Nuno Brito: 20 July 2008 - 12:53 PM



#2 User is offline   zorphnog 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 427
  • Joined: 25-July 06

Posted 13 March 2008 - 08:20 AM

Great initiative Nuno! Personally, I don't use nLite but this will be a great tool for those users who do. Although I believe there may be a problem with the release. I was trying it out just to see what exactly it did and it imports the config data just fine, but the executables are not extracted to the WPI install folder.

#3 User is offline   Nuno Brito 

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

Posted 13 March 2008 - 11:53 AM

Will you help debugging this annoyance? :rolleyes:


What are the paths you used for running the tool?

Could you also list the addons that were processed?


If the config.js is generated correctly then the "%wpipath%\Install" folder should also be populated with the respective executables.

--

Thank you for testing!! :)

#4 User is offline   benxhi 

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

Posted 13 March 2008 - 01:26 PM

Just Tested it . Works like a charm for me !

#5 User is offline   benxhi 

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

Posted 13 March 2008 - 01:28 PM

Now going to process all the apps you put in UXP!
Edit: i'll put some of my personaly made cabs to check does it work !

This post has been edited by benxhi: 13 March 2008 - 01:29 PM


#6 User is offline   benxhi 

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

Posted 13 March 2008 - 01:32 PM

No mistakes!
I used Simple Paths for addons i used C:/Addons and for wpi i used C:/WPI
it works good just wanted to add a request what do you think about adding support to converting 7z ,rar and zip files too ?

#7 User is offline   zorphnog 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 427
  • Joined: 25-July 06

Posted 13 March 2008 - 01:41 PM

Ok. As i said i don't use nLite so i just downloaded a few addons to mess around with. They are:

Java2
PuTTy
RivaTuner-208
SdNTweaker-0901

addons2wpi.exe is located on my desktop. Here are the commands I've tried:

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

In each case, the config.js file is populated correctly. Nada in the install folder.

Oh yeah, I'm using 32-bit Vista Ultimate.

#8 User is offline   benxhi 

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

Posted 13 March 2008 - 02:14 PM

Whats in your WPI63 folder ?
Is WPI folder in ther if so correct your path to it!

#9 User is offline   Nuno Brito 

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

Posted 13 March 2008 - 03:03 PM

I think I've found the bug - I'm using delphi and "All WPI's" causes a line break because of the '

If you try with "All WPIs" it should work (hopefully).

Will test on my machine and likely update afterwards.

:)

This post has been edited by Nuno Brito: 13 March 2008 - 03:04 PM


#10 User is offline   Nuno Brito 

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

Posted 13 March 2008 - 06:24 PM

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

:)

#11 User is offline   Nuno Brito 

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

Posted 13 March 2008 - 06:58 PM

View Postbenxhi, on Mar 13 2008, 07:32 PM, said:

No mistakes!
I used Simple Paths for addons i used C:/Addons and for wpi i used C:/WPI
it works good just wanted to add a request what do you think about adding support to converting 7z ,rar and zip files too ?


Somehow missed reading your request.

I can use the 7zip command line version to add support for all other archive formats and whenever 7z.exe is available on the same folder as addons2wpi then it use this extract tool as default for all supported extensions.

http://www.7-zip.org/

But one question: addons in other compressed formats still have the exact same structure as cab ones?

:)

#12 User is offline   jtdoom 

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

Posted 14 March 2008 - 02:33 AM

Hi

Quote

C:/Addons and for wpi i used C:/WPI


Should you not use backslashes?
I know this is a common mistake made by web devs. :)

#13 User is offline   benxhi 

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

Posted 14 March 2008 - 04:27 AM

View PostNuno Brito, on Mar 14 2008, 01:58 AM, said:

View Postbenxhi, on Mar 13 2008, 07:32 PM, said:

No mistakes!
I used Simple Paths for addons i used C:/Addons and for wpi i used C:/WPI
it works good just wanted to add a request what do you think about adding support to converting 7z ,rar and zip files too ?


Somehow missed reading your request.

I can use the 7zip command line version to add support for all other archive formats and whenever 7z.exe is available on the same folder as addons2wpi then it use this extract tool as default for all supported extensions.

http://www.7-zip.org/

But one question: addons in other compressed formats still have the exact same structure as cab ones?

:)


Yes they are i'm gonna give you a link of a 7zip addon now ;)
http://www.sokoolz.com/addons/r64/PatchedL...1107_Builder.7z
from
http://www.wincert.net/forum/index.php?sho...p;mode=threaded

#14 User is offline   benxhi 

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

Posted 14 March 2008 - 04:33 AM

And .rar format :
http://www.sokoolz.com/addons/r64/Ricks_VM...59824_AddOn.rar
from:
http://www.wincert.n...p?showtopic=428
is it allright now ?

#15 User is offline   Nuno Brito 

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

Posted 14 March 2008 - 04:43 AM

Hi jtdoom! :hello:


Thank you benxhi, will download right away and check them out. :thumbup


-------


edit:
The file structure is identical, will start adding 7z and rar support! :)

This post has been edited by Nuno Brito: 14 March 2008 - 04:46 AM


#16 User is offline   Nuno Brito 

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

Posted 14 March 2008 - 06:49 AM

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?

:)

This post has been edited by Nuno Brito: 14 March 2008 - 06:50 AM


#17 User is offline   Nuno Brito 

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

Posted 14 March 2008 - 10:24 AM

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/...load.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.

:)

#18 User is offline   zorphnog 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 427
  • Joined: 25-July 06

Posted 14 March 2008 - 11:44 AM

View PostNuno Brito, on Mar 13 2008, 07:24 PM, said:

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.

#19 User is offline   benxhi 

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

Posted 14 March 2008 - 01:07 PM

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.

#20 User is offline   sbaeder 

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

Posted 14 March 2008 - 01:40 PM

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

Share this topic:


  • 5 Pages +
  • 1
  • 2
  • 3
  • 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