Welcome dear guest! Very Happy

To start posting and being part of the community, you simply need to register an account or log into an existing one.

Be sure to check out disposable e-mail services, in case you prefer using one for this site instead of your legit address: http://10minutemail.com/10MinuteMail/

If you do not wish to register at all, that's fine but there will be more advertisements. :/

You can see and download all content provided for regular members even without an account!

Your contributions will be greatly appreciated though, give it a shot and register today! thumbsup

Gaming, Modding & Programming

Important reminders:

- Click *HERE* for advanced forum search or check out the text field below on the front page for Google before posting
- NO support via private message (use the forum)
- Write meaningful topic titles
Site Translation

Display results as :

Rechercher Advanced Search

July 2019

Calendar Calendar

Country Statistics
Free counters!

You are not connected. Please login or register

Extracting & Rebuilding ISOs

Go down  Message [Page 1 of 1]

1Extracting & Rebuilding ISOs Empty Extracting & Rebuilding ISOs on 10/3/2014, 2:08 am


Let's make sure that "wit" is properly installed first. From the download package, run the "windows-install.exe" file. It adds the path environment variable for "wit" to make it available anywhere in the console. Now open "cmd" and type "wit". If this works, proceed with the next step.

In your current working directory, create a new file called "runCmd.bat" while ".bat" is the file extension. Right-click it and choose "edit". Type "@cmd", save and exit. If you double-click the file it'll open up "cmd" in the current folder. This is useful because we can now use relative paths in our commands.

In order to extract an ISO, we need the "wit extract" command. Here's the documentation about it:

Let's assume the ISO is called "MWR.iso" and is in the same directory as our "runCmd.bat" file. We want to extract to a new folder in this directory called "Extracted". The command for this will look like this:
wit extract "MWR.iso" "Extracted"
Always surround the source and destination in parentheses to avoid issues with spaces.

Once this is done, we can proceed to copy a modified file over to replace a source file. In order to do this using the command line, we need "xcopy". The following command copies the file "common_level_temp_mp.ff" from the current directory to the folder "english" in "files" and finally in "Extracted".
xcopy "common_level_temp_mp.ff" "Extracted\files\english\common_level_temp_mp.ff" /Y
The /Y command line flag tells the command to "overwrite without asking".

To rebuild our modified ISO, we'll use the wit copy command. Again, here's some documentation about it: http://wit.wiimm.de/wit/cmd-copy.html

In our example we've got the source "Extracted" and the target "MWR.iso". To allow overwriting, we need the "--overwrite" flag. According to Wiimm, to speed it up a bit we'll force hard links using the flag "--links".
wit copy "Extracted" "MWR.iso" --overwrite --links

Extracting & Rebuilding ISOs Lejx87ba

Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum