Jump to content


Photo

Installation Batch File


  • Please log in to reply
24 replies to this topic

#1 ronin

ronin
  • Modder
  • 2114 posts

Posted 14 May 2007 - 01:19 AM

I got this from Azazello and thought I would share it to save some people alot of time.

1. Create a new .txt file in your BGII - SoA directory and name it mysetup.bat (say yes when it warns about changing extensions)

2. Right click on it and choose "edit"

3. Go back to your BGII -SoA directory and install a mod (any mod preferably from a clean install) and then look at your weidu.log and you should see something like this:

// Log of Currently Installed WeiDU Mods
		 // The top of the file is the 'oldest' mod
		 // ~TP2_File~ #language_number #component_number // [Subcomponent Name -> ] Component Name
		 ~BG2FIXPACK/SETUP-BG2FIXPACK.TP2~ #0 #0 // BG2 Fixpack - Core Fixes
		 ~BG2FIXPACK/SETUP-BG2FIXPACK.TP2~ #0 #1 // BG2 Fixpack - Game Text Update
		 ~BG2FIXPACK/SETUP-BG2FIXPACK.TP2~ #0 #3 // BETA Core Fixes (please check the readme!)
		 ~BG2FIXPACK/SETUP-BG2FIXPACK.TP2~ #0 #100 // Party Gets XP for Sending Keldorn to Reconcile With Maria
		 ~BG2FIXPACK/SETUP-BG2FIXPACK.TP2~ #0 #101 // Improved Spell Animations
		 ~BG2FIXPACK/SETUP-BG2FIXPACK.TP2~ #0 #102 // Cromwell's Forging Actually Takes a Day
		 ~BG2FIXPACK/SETUP-BG2FIXPACK.TP2~ #0 #103 // Mixed-Use Dagger Fixes
		 ~BG2FIXPACK/SETUP-BG2FIXPACK.TP2~ #0 #104 // Ghreyfain's Holy Symbol Fixes
		 ~BG2FIXPACK/SETUP-BG2FIXPACK.TP2~ #0 #106 // Giants Receive Penalties When Attacking Halflings,   Dwarves, and Gnomes
		 ~BG2FIXPACK/SETUP-BG2FIXPACK.TP2~ #0 #107 // Remove Dual-Classing Restriction from Archers   and Stalkers
		 ~BG2FIXPACK/SETUP-BG2FIXPACK.TP2~ #0 #108 // Remove Second Attribute Bonus for Evil Path in  Wrath Hell Trial
		 ~BG2FIXPACK/SETUP-BG2FIXPACK.TP2~ #0 #109 // Corrected Summoned Demon Behavior
		 ~BG2FIXPACK/SETUP-BG2FIXPACK.TP2~ #0 #110 // Additional Script Fixes
		 ~BG2FIXPACK/SETUP-BG2FIXPACK.TP2~ #0 #111 // Bard Song Fixes
		 ~BG2FIXPACK/SETUP-BG2FIXPACK.TP2~ #0 #112 // Wizard Slayers Cause Miscast Magic on Ranged Attacks
		 ~BG2FIXPACK/SETUP-BG2FIXPACK.TP2~ #0 #113 // Additional Alignment Fixes
		 ~BG2FIXPACK/SETUP-BG2FIXPACK.TP2~ #0 #114 // Change Free Action to Protect Against Stun

now in your file (mysetup.bat) make it look like this:

rem @@@@@@@@@@@@@@@@@@@@@@@@@@
  rem Ronin's Mega Install
  rem @@@@@@@@@@@@@@@@@@@@@@@@@@
		 echo -------------------------
  echo Just sit back and watch
  Echo  ~*~*~*~*~*~
  pause
  rem SETUP-DARKRITUAL.EXE	--language 0  --skip-at-view   --force-install-list	0 1 2 3
		 Setup-bg2fixpack.exe	 --language 0  --skip-at-view  --force-install-list	0 1 3 100 101 102 103 104 106 107 108 109 110 111 112 113 114

To walk thru the line:

a. Setup-bg2fixpack.exe is the executable you normally double click on to install the mod
b. --language 0 is for the english language.
c. --skip-at-view stops the readme from popping up
d. --force-install-list is the component number for the options to install.

Then just add any other mod you want in the correct order. If you change your mind for the next install and dont want a mod to be installed just add a "rem" at the beginning of the line as seen above.

3. Then starting from a clean installation just double click on mysetup.bat, sit back and watch.

4. This is for people that know what they are doing and it can save you during a reinstall of having to press alot of keys and having to read every component again.

Here is what I currently use:
	   rem @@@@@@@@@@@@@@@@@@@@@@@@@@
	   rem Ronin's Mega Install
	   rem @@@@@@@@@@@@@@@@@@@@@@@@@@
	   echo -------------------------
	   echo Just sit back and watch
	   Echo  ~*~*~*~*~*~
	   pause
	   rem SETUP-DARKRITUAL.EXE	--language 0	 --force-install-list	0 1 2 3
	   Setup-bg2fixpack.exe	 --language 0	--force-install-list	0 1 3 100 101 102 103 104 106 107 108 109 110 111 112 113 114
	   setup-1pp.exe		--language 0	--force-install-list	0
	   setup-improvedbams.exe	--language 0	--force-install-list	0
	   setup-adpack.exe		--language 0	--force-install-list	 0 1 2 3
	   setup-spellpack.exe	--language 0	--force-install-list	 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
	   SETUP-ITEMUPGRADE.EXE	--language 0	--force-install-list	0 1
	   Setup-SeluneArmoury.exe	--language 0	--force-install-list	0
	   Setup-ValHorn.exe		--language 0	--force-install-list	0
	   setup-dos.exe		--language 0	--force-install-list	0
	   rem setup-familiarpack.exe	--language 0	--force-install-list	0
	   SETUP-FR_ROV.EXE	--language 0	--force-install-list	0 1
	   Setup-Z#Misc.exe		--language 0	--force-install-list	 0 1
	   Setup-UB.exe		--language 0	--force-install-list	1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
	   setup-D0QUESTPACK.exe		--language 0	--force-install-list	0 1 4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20
	   SETUP-DUNGEONBEGONE.EXE	--language 0	--force-install-list	0
	   Setup-song_and_silence.exe --language 0	--force-install-list	0 1 8
	   Setup-spstuff.exe		--language 0	--force-install-list	1 4
	   setup-sword_and_fist.exe	 --language 0	--force-install-list	1 30 31 32 33
	   setup-duskblade.exe	 --language 0	--force-install-list	0
	   setup-amdk.exe		--language 0	--force-install-list	0
	   setup-amber.exe		--language 0	--force-install-list	0
	   SETUP-AURENASEPH.exe	--language 0	--force-install-list	 0 2
	   setup-fade.exe		--language 0	--force-install-list	0
	   rem SETUP-TASHIA.EXE	--language 0	--force-install-list	0 3 5
	   rem Setup-Yasraena.exe	--language 0	--force-install-list	0
	   setup-kivan.exe		--language 0	--force-install-list	0 2 6 7
	   rem setup-keto.exe		--language 0	--force-install-list	0
	   rem Setup-touched.exe	--language 0	--force-install-list	0
	   rem setup-xan.exe		--language 0	 --force-install-list	0 2
	   rem setup-kido.exe  --language 0  --force-install-list  0 2
	   rem setup-ariena.exe  --language 0  --force-install-list 0 1 2 
	   setup-spgaunt.exe	--language 0	--force-install-list	0 1 2 3	
	   setup-tod.exe --language 0  --force-install-list  0 1
	   rem All small mods before BP
	   Setup-BPv177.exe		--language 0	--force-install-list	0 1 2 3 4 5 6 7 8 9 10 11 12 14 15
	   setup-bpdetectstat.exe	 --language 0	--force-install-list	0
	   setup-scriptable_spells.exe	--language 0	--force-install-list	0
	   setup-gminion.exe		--language 0	--force-install-list	0
	   setup-bpseries.exe		--language 0	--force-install-list	0
	   setup-eseries.exe		--language 0	--force-install-list	 0
	   SETUP-D0TWEAK.EXE	--language 0	--force-install-list	1 2 4 11 12 13
	   Setup-OVERSIGHT.exe	--language 0	--force-install-list	6
	   Setup-BG2_Tweaks.exe	--language 0	--force-install-list	10 40 60 70 90 110 130 1010 1020 1050 1070 1080 1120 1150 1161 1170 2060 2080 2090 2140 2160 2200 2210 2220 2230 2231 2240 2250 2261 2271 2281 2294 2300 3000 3010 3020 3031 3040 3050 3060 3071 3080 3090 3100 3110 3121 3125 3140 3150 3170 3190 3200 4010 4020 4050
	   Setup-Celestials.exe	--language 0	--force-install-list	0
	   setup-abitemexcelmod.exe	--language 0	 --force-install-list	0
	   setup-iitweak.exe		--language 0	 --force-install-list	2012 2013 2014 2015
	   Setup-BP-BGT-Worldmap.exe		--language 0	--force-install-list	0 3
	   rem setup-tahlir.exe		--language 0	--force-install-list	0
	   xcopy /y /q "D:\BG2-Mods\fixes\*.*" "D:\BGII - SoA\override\"

I hope this makes installing alot of mods easier for everyone. Feel free to post your mysetup.bat and ask questions if you have problems.

Edited by ronin, 14 May 2007 - 10:35 PM.


#2 Azazello

Azazello

    The Anti-Spammer

  • Staff
  • 1912 posts

Posted 14 May 2007 - 07:57 AM

Thanks so much for writing up these instructions. I've been a lazy sod about writing it myself.

To give proper credit, the idea comes from one of the many under-/non-used magic contained within WeiDU.

To uninstall mods quickly and automatically, check [this thread]. Also not an original idea by me. :lol:

My increasingly complicated batch files are on the bottom of [this post].

Edited by Azazello, 14 May 2007 - 07:59 AM.

"I gladly simp for jastey" -- Aza
==========================================================
"You ever notice that "What the hell?!" is the answer to just about everything?"
==========================================================

"Girls are like phones, they like to be held and talked too, but if you press the wrong button, you will be disconnected!" DJ Nikodemus
================================================================
Community Contributions
* Level 1 NPCs * gMinion: expanded TP2 for MegaInstalls * PSM (PSQM): expanded scripts for Melanthium * Shar Nadal (DSotSC-BGT) revision * non-detectable Cloak of Non-Detection ?? * Weimer's-Tactics: revised TP2 for MegaInstalls * a directory of Mega-Installation Guides *

   
   
   


#3 ronin

ronin
  • Modder
  • 2114 posts

Posted 14 May 2007 - 10:22 AM

Here is another way to uninstall all mods http://dev.gibberlin...l_Uninstall_All . I have made an executable but I am not sure if it will work for everyone or just me. PM me if you want it.

Edited by ronin, 14 May 2007 - 10:22 AM.


#4 the bigg

the bigg

    2083 is a prime number.

  • Modder
  • 3331 posts

Posted 14 May 2007 - 10:32 AM

You just need weidu.exe; I have it in C:\bin and in /usr/bin. However, on Windows it works even if you have it in the same directory as BG2 (on *Nix, you have to explicit via ./weidu ).

To recreate an install from a weidu.log, if you have access to bash and the standard *nix textutils check http://dev.gibberlin...ecreate_Install. The output file (a Bash file, not a batch one) is called weidu.final .

To block readmes, use setup-bg2fixpack.exe --language 0 --skip-at-view --force-install-list 0 1 2 3 4...

EDIT: if you don't want to write manually text files, put weidu.exe, weigui.exe and tk83.dll in your BG2 directory, double click weigui.exe and use that to build your installation :)

Edited by the bigg, 14 May 2007 - 10:34 AM.

Italian users: help test the Stivan NPC!

Author or Co-Author: WeiDU - Widescreen - Generalized Biffing - Refinements - TB#Tweaks - IWD2Tweaks - TB#Characters - Traify Tool - Some mods that I won't mention in public
Maintainer: Semi-Multi Clerics - Nalia Mod - Nvidia Fix
Code dumps: Detect custom secondary types - Stutter Investigator

If possible, send diffs, translations and other contributions using Git.


#5 ronin

ronin
  • Modder
  • 2114 posts

Posted 14 May 2007 - 10:43 AM

Thanks bigg :cheers:

#6 Azazello

Azazello

    The Anti-Spammer

  • Staff
  • 1912 posts

Posted 14 May 2007 - 07:45 PM

bigg, you rule! That 'skip-at-view' flag is what I been looking for all my life. :lol: I've been editing TP2s manually, and clenching my teeth when I miss a mod, holding up my "automatic" install.

I never tried weigiu. I'll give a go in the future.

#7 ronin

ronin
  • Modder
  • 2114 posts

Posted 14 May 2007 - 09:27 PM

bigg, you rule! That 'skip-at-view' flag is what I been looking for all my life. :lol: I've been editing TP2s manually, and clenching my teeth when I miss a mod, holding up my "automatic" install.

I never tried weigiu. I'll give a go in the future.


The readme's dont hold up my install it just fills the screen with unneeded browser windows and wordpad windows. But still the skip-at-view is nice

#8 Derkoth the Disgruntled

Derkoth the Disgruntled
  • Member
  • 103 posts

Posted 15 May 2007 - 11:19 AM

What about BGT in this type of setup? How do you handle the input of the path for the BG install?

Hate to ask without digging through the WeiDU documentation, but I'm feeling lazy and pressed for time today.

Cheers,

DtD

EDIT: .. Just to be a little less lazy, I checked your batch file in the linked post, and didn't see any auto-text input..

Edited by Derkoth the Disgruntled, 15 May 2007 - 11:30 AM.


#9 ronin

ronin
  • Modder
  • 2114 posts

Posted 15 May 2007 - 11:30 AM

The batch file should stop and wait for input. It did with mine until i changed the .tp2 of a mod to not wait.

#10 the bigg

the bigg

    2083 is a prime number.

  • Modder
  • 3331 posts

Posted 15 May 2007 - 11:33 AM

You can create a text file containing your input and pipe it to setup-bgt.exe list-of-arguments (`type my-input-file.txt | setup-bgt.exe blah blah'), though I'm unsure if it works on Windoze.

Italian users: help test the Stivan NPC!

Author or Co-Author: WeiDU - Widescreen - Generalized Biffing - Refinements - TB#Tweaks - IWD2Tweaks - TB#Characters - Traify Tool - Some mods that I won't mention in public
Maintainer: Semi-Multi Clerics - Nalia Mod - Nvidia Fix
Code dumps: Detect custom secondary types - Stutter Investigator

If possible, send diffs, translations and other contributions using Git.


#11 ronin

ronin
  • Modder
  • 2114 posts

Posted 15 May 2007 - 11:38 AM

If you dont mind the script pausing you can just use it the way it is and add bgt and the script will pause while it waits for your input. Or you can do what bigg said :)

Edited by ronin, 15 May 2007 - 11:38 AM.


#12 Derkoth the Disgruntled

Derkoth the Disgruntled
  • Member
  • 103 posts

Posted 15 May 2007 - 01:15 PM

If you dont mind the script pausing you can just use it the way it is and add bgt and the script will pause while it waits for your input. Or you can do what bigg said :)


And so we have

BGT.exe	--language 0	--force-install 0  type BGPath.txt linenums:0'>Setup-BGT.exe	--language 0	--force-install 0  type BGPath.txt

Yes? Thanks for the feedback.

:cheers:

DtD

#13 the bigg

the bigg

    2083 is a prime number.

  • Modder
  • 3331 posts

Posted 15 May 2007 - 01:21 PM

No, you have to use `type BGPath.txt | setup-bgt.exe --language 0 --force-install 0`. Also, I'm unsure if this will actually work (it should, but with Windoze you can never know).

Italian users: help test the Stivan NPC!

Author or Co-Author: WeiDU - Widescreen - Generalized Biffing - Refinements - TB#Tweaks - IWD2Tweaks - TB#Characters - Traify Tool - Some mods that I won't mention in public
Maintainer: Semi-Multi Clerics - Nalia Mod - Nvidia Fix
Code dumps: Detect custom secondary types - Stutter Investigator

If possible, send diffs, translations and other contributions using Git.


#14 Derkoth the Disgruntled

Derkoth the Disgruntled
  • Member
  • 103 posts

Posted 07 June 2007 - 12:27 PM

No, you have to use `type BGPath.txt | setup-bgt.exe --language 0 --force-install 0`. Also, I'm unsure if this will actually work (it should, but with Windoze you can never know).


Well, I didn't try this, but I did create the batch file with the --skip-at-view tag... which seems absolutely useless, since a number of ReadMe's pop up anyway. Also, it seems as though WeiDU/BiggDU v199 sometimes waits for the ReadMe to close before continuing... is this a feature?

Final niggling issue... the big (not bigg) mods (SOS, etc.) seem to have a pause coded into their TP2 at the end of the install. That totally screws my flow, man... *pauses to take a drag* Is there any way around that?

:cheers:

DtD

#15 Azazello

Azazello

    The Anti-Spammer

  • Staff
  • 1912 posts

Posted 07 June 2007 - 03:20 PM

Some of those pauses --especially thru big mods-- are in BAT files, not the TP2, so WeiDU/biggDU won't be able to handle them. Gotta edit those files manually. I did. -_-

Can anyone confirm that --skip-at-view is/isn't working?

#16 Derkoth the Disgruntled

Derkoth the Disgruntled
  • Member
  • 103 posts

Posted 08 June 2007 - 03:21 AM

Some of those pauses --especially thru big mods-- are in BAT files, not the TP2, so WeiDU/biggDU won't be able to handle them. Gotta edit those files manually. I did. -_-

Can anyone confirm that --skip-at-view is/isn't working?



Mods I recall splashing a readme...

Ajoc's Mod
Kelsey
KelseyToB
Yasraena

... and a couple of others. I'll have to investigate whether there's a batch file for those mods that needs edited...

:cheers:

DtD

#17 the bigg

the bigg

    2083 is a prime number.

  • Modder
  • 3331 posts

Posted 08 June 2007 - 03:32 AM

--skip-at-view doesn't work when the modder is an idiot and calls the readme from the BAT, rather than from the tp2.
Similarly, I can't detect if the BAT contains PAUSE or similar, and thus you'll have to notice and press enter yourself.
Finally, WeiDU 199 opens the AT_*_EXIT commands (E.G. readmes) before the "press pause to exit..." rather than after, so this might cause a delay. However, if it actually waits for you to close the readme, it's a bug in Windoze, not in WeiDU (since `start readme.txt' should continue the execution without closing the application). Obviously, it's been ages since I installed mods on Windows, so I can't tell for sure ;)

Italian users: help test the Stivan NPC!

Author or Co-Author: WeiDU - Widescreen - Generalized Biffing - Refinements - TB#Tweaks - IWD2Tweaks - TB#Characters - Traify Tool - Some mods that I won't mention in public
Maintainer: Semi-Multi Clerics - Nalia Mod - Nvidia Fix
Code dumps: Detect custom secondary types - Stutter Investigator

If possible, send diffs, translations and other contributions using Git.


#18 Gort

Gort
  • Validating
  • 614 posts

Posted 10 June 2007 - 12:46 PM

maybe it's worth to add such a feature right into weidu? Something like "weidu.exe -automate-install MyWeidu.log", where MyWeidu.log is the weidu.log you want to replicate. With -skip-at-view implied. Not much difference, but may be convenient.

#19 -guest-

-guest-
  • Guest

Posted 11 August 2009 - 05:17 PM

This is very useful, thanks.

Just one question; what does the following do?

xcopy /y /q "D:\BG2-Mods\fixes\*.*" "D:\BGII - SoA\override\"

The rest is fairly simple, but don't see what is happening with this line. Is it required even?

#20 Jarno Mikkola

Jarno Mikkola

    The Imp in his pink raincoat.

  • Member
  • 10911 posts

Posted 12 August 2009 - 03:44 AM

Just one question; what does the following do?

xcopy /y /q "D:\BG2-Mods\fixes\*.*" "D:\BGII - SoA\override\"

The rest is fairly simple, but don't see what is happening with this line. Is it required even?

Well, it copies the custom made BG2-Mods/fixes/ -folders files into the game directory. In this example it would be needed if you have any fixes of your own. But, as everyone today should use the fixes from here, which has it's own installer and so on... and so forth...

Deactivated account. The user today is known as The Imp.