IPB

Google Frontpage Forums Unattended CD/DVD Guide
5 Pages V   1 2 3 > »   
Reply to this topicStart new topic
> [tool] addons2wpi converter, Batch convert tool to help use WPI instead of nLite to install addons
Nuno Brito
post Mar 13 2008, 07:39 AM
Post #1


.script developer
**

Group: Members
Posts: 254
Joined: 11-May 06
From: Azores
Member No.: 96036
Country Flag


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.





Usage:
CODE
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!! smile.gif




Translation of this page on other languages:



This post has been edited by Nuno Brito: Jul 20 2008, 12:53 PM
Go to the top of the page
 
+Quote Post
zorphnog
post Mar 13 2008, 08:20 AM
Post #2


Advanced Member
***

Group: Members
Posts: 427
Joined: 25-July 06
From: Charleston, SC
Member No.: 105938
Country Flag


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.
Go to the top of the page
 
+Quote Post
Nuno Brito
post Mar 13 2008, 11:53 AM
Post #3


.script developer
**

Group: Members
Posts: 254
Joined: 11-May 06
From: Azores
Member No.: 96036
Country Flag


Will you help debugging this annoyance? rolleyes.gif


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!! smile.gif
Go to the top of the page
 
+Quote Post
benxhi
post Mar 13 2008, 01:26 PM
Post #4


QuaNTuM
*

Group: Members
Posts: 84
Joined: 27-February 08
From: Skopje , Macedonia
Member No.: 179254
OS: XP Home
Country Flag


Just Tested it . Works like a charm for me !
Go to the top of the page
 
+Quote Post
benxhi
post Mar 13 2008, 01:28 PM
Post #5


QuaNTuM
*

Group: Members
Posts: 84
Joined: 27-February 08
From: Skopje , Macedonia
Member No.: 179254
OS: XP Home
Country Flag


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: Mar 13 2008, 01:29 PM
Go to the top of the page
 
+Quote Post
benxhi
post Mar 13 2008, 01:32 PM
Post #6


QuaNTuM
*

Group: Members
Posts: 84
Joined: 27-February 08
From: Skopje , Macedonia
Member No.: 179254
OS: XP Home
Country Flag


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 ?
Go to the top of the page
 
+Quote Post
zorphnog
post Mar 13 2008, 01:41 PM
Post #7


Advanced Member
***

Group: Members
Posts: 427
Joined: 25-July 06
From: Charleston, SC
Member No.: 105938
Country Flag


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.
Go to the top of the page
 
+Quote Post
benxhi
post Mar 13 2008, 02:14 PM
Post #8


QuaNTuM
*

Group: Members
Posts: 84
Joined: 27-February 08
From: Skopje , Macedonia
Member No.: 179254
OS: XP Home
Country Flag


Whats in your WPI63 folder ?
Is WPI folder in ther if so correct your path to it!
Go to the top of the page
 
+Quote Post
Nuno Brito
post Mar 13 2008, 03:03 PM
Post #9


.script developer
**

Group: Members
Posts: 254
Joined: 11-May 06
From: Azores
Member No.: 96036
Country Flag


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.

smile.gif

This post has been edited by Nuno Brito: Mar 13 2008, 03:04 PM
Go to the top of the page
 
+Quote Post
Nuno Brito
post Mar 13 2008, 06:24 PM
Post #10


.script developer
**

Group: Members
Posts: 254
Joined: 11-May 06
From: Azores
Member No.: 96036
Country Flag


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

smile.gif
Go to the top of the page
 
+Quote Post
Nuno Brito
post Mar 13 2008, 06:58 PM
Post #11


.script developer
**

Group: Members
Posts: 254
Joined: 11-May 06
From: Azores
Member No.: 96036
Country Flag


QUOTE (benxhi @ Mar 13 2008, 07: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 ?


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?

smile.gif
Go to the top of the page
 
+Quote Post
jtdoom
post Mar 14 2008, 02:33 AM
Post #12


Newbie


Group: Members
Posts: 14
Joined: 8-August 06
Member No.: 106995
OS: XP Pro x86
Country Flag


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. smile.gif
Go to the top of the page
 
+Quote Post
benxhi
post Mar 14 2008, 04:27 AM
Post #13


QuaNTuM
*

Group: Members
Posts: 84
Joined: 27-February 08
From: Skopje , Macedonia
Member No.: 179254
OS: XP Home
Country Flag


QUOTE (Nuno Brito @ Mar 14 2008, 01:58 AM) *
QUOTE (benxhi @ Mar 13 2008, 07: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 ?


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?

smile.gif


Yes they are i'm gonna give you a link of a 7zip addon now newwink.gif
http://www.sokoolz.com/addons/r64/PatchedL...1107_Builder.7z
from
http://www.wincert.net/forum/index.php?sho...p;mode=threaded
Go to the top of the page
 
+Quote Post
benxhi
post Mar 14 2008, 04:33 AM
Post #14


QuaNTuM
*

Group: Members
Posts: 84
Joined: 27-February 08
From: Skopje , Macedonia
Member No.: 179254
OS: XP Home
Country Flag


And .rar format :
http://www.sokoolz.com/addons/r64/Ricks_VM...59824_AddOn.rar
from:
http://www.wincert.net/forum/index.php?showtopic=428
is it allright now ?
Go to the top of the page
 
+Quote Post
Nuno Brito
post Mar 14 2008, 04:43 AM
Post #15


.script developer
**

Group: Members
Posts: 254
Joined: 11-May 06
From: Azores
Member No.: 96036
Country Flag


Hi jtdoom! welcome.gif


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


-------


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

This post has been edited by Nuno Brito: Mar 14 2008, 04:46 AM
Go to the top of the page
 
+Quote Post
Nuno Brito
post Mar 14 2008, 06:49 AM
Post #16


.script developer
**

Group: Members
Posts: 254
Joined: 11-May 06
From: Azores
Member No.: 96036
Country Flag


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.gif

---

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?

smile.gif

This post has been edited by Nuno Brito: Mar 14 2008, 06:50 AM
Go to the top of the page
 
+Quote Post
Nuno Brito
post Mar 14 2008, 10:24 AM
Post #17


.script developer
**

Group: Members
Posts: 254
Joined: 11-May 06
From: Azores
Member No.: 96036
Country Flag


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.

smile.gif
Go to the top of the page
 
+Quote Post
zorphnog
post Mar 14 2008, 11:44 AM
Post #18


Advanced Member
***

Group: Members
Posts: 427
Joined: 25-July 06
From: Charleston, SC
Member No.: 105938
Country Flag


QUOTE (Nuno Brito @ Mar 13 2008, 07:24 PM) *
zorphnog, please re-test as it should be corrected now.

smile.gif


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.
Go to the top of the page
 
+Quote Post
benxhi
post Mar 14 2008, 01:07 PM
Post #19


QuaNTuM
*

Group: Members
Posts: 84
Joined: 27-February 08
From: Skopje , Macedonia
Member No.: 179254
OS: XP Home
Country Flag


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 sad.gif really sorry.
Go to the top of the page
 
+Quote Post
sbaeder
post Mar 14 2008, 01:40 PM
Post #20


Newbie


Group: Members
Posts: 16
Joined: 1-January 07
Member No.: 120008
Country Flag


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
Go to the top of the page
 
+Quote Post

Google Frontpage Forums Unattended CD/DVD Guide

5 Pages V   1 2 3 > » 
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 




Lo-Fi Version Time is now: 20th November 2009 - 11:16 PM
All trademarks mentioned on this page are the property of their respective owners
MSFN is not affiliated with Microsoft
Copyright © 2001-2009 msfn.org
Privacy Policy