此站点大量使用JavaScript。
请在您的浏览器中启用JavaScript。
正式服
PTR
10.2.7
PTR
10.2.6
Beta
Install Addons w/ a Batch File [Windows]
来自 Keldesh
[Last Updated]:
2022/12/26
变更日志
补丁:10.0.2
目录
评分:
This guide will show you how to create a batch file that will exact all your zipped addons and place them into your AddOns folder with just a click of a button saving you a ton of time installing.
This will help save you a lot of time unpacking and placing lots of addons at one time. If you are new to addons or unsure how to install them this will help you with that.
The following guide will take you through step by step on how to set up the system, create the batch file, and how to use it. It will also explain each part of the batch file so you know what each part is for and why it is in the batch file.
This is for Windows only. I will not help troubleshoot if this is not working for you. You use this at your own risk!
If you are having issues with AddOns or GUI in-game; contact the AddOn author or Blizzard.
WHAT YOU NEED
You won't need too many things to do this. Don't worry; everything needed is free, and it will all be linked for you.
So download these items, but would suggest to read entirely through the guide before you start messing with anything. Just so you have a basic idea of where ever thing will be going.
These are things you need outside of the addons themselves.
You will need to download a few things:
7za.exe
7za.dll
Make sure you are downloading the 7z2107_extra.7z and not the Download 7z2107.exe *.
* - There may be a new version please make sure you have the most current version.
This is 7-Zip stand alone. You can get it from
7-Zip's sourceforge
. Open the 7z and you will find the
7za.exe
and
7za.dll
inside along with some other files you won't need.
This is a text editor. You can use notepad, but I prefer Notepad++ over notepad for writing batch files because it have syntax highlighting and syntax folding. It also has Multi-Language environment. You can get it from
their site
. You can use Sublime if you prefer.
WHAT WILL WON'T THIS DO
Don't want there to be any confusion on what this batch file can and cannot do. So please read through what it cannot and can do as this specific batch file is very specific to what it was created to do.
Download the addons for you. You will still need to go to Curse.com, WowInterface.com, etc. and download the addons.
It will not tell you if an addon is outdated.
It will not tell you if you are installing a newer version of the addon.
It won't run an exe or other file type that could be in an addon's zip file. It will only extract the files.
It won't work on Mac -- sorry.
It won't uninstall addons for you you
It won't extract files other than zips. Since there's are the default ones for the main addon sites.
Extract all the zipped addons in your folder at one time.
Provide you a list when it is complete.
Allow you to install addons from multiple addon sites.
SET UP
You will need to create two folders. Please make sure you read through the directions on this part. If you are having issues with this working try making sure you have placed and named your folders correctly. Not doing so could cause the batch file not to work.
First folder I named
Easy Addon Extraction
, but you can name it whatever you like. You want to put the 7za.exe and 7za.dll inside this folder. You can put this folder anywhere, but make sure it is somewhere you can gain easy access to. So like on your desktop is a good place.
Second folder
must
be named
AddOns
and
must
be located on your
Desktop
-- if you understand batch files you can change this, but if you don't you need to name it and place it exactly as stated. Don't worry this isn't a permanent folder.
You will only need to create this folder each time you go to install more addons, and then it will be deleted at the end of the process.
GETTING YOUR ADDONS
Go get the addons you want/need to install, and you will download them all into the AddOns folder on your desktop. Be aware that there are some "addons" that do not follow basic addon installation. Theses addons may not properly work if you include them.
If you are trying to keep your addons up to date you should consider using the Favorites features avalible on both the main addon sites (Curse & WoWInterface). Your favorite addons list will give you the date the addon was last updated and a direct download link to the addon.
Make sure you place the downloaded addon's .zip file into the AddOns folder on your desktop. You can put as many of the downloaded addons as you want/need to install.
MAKING YOUR BATCH
This is a step by step on what to write into your batch file and why it was used. As well as if there is anything you need to change to be specific to your computer.
You will want to start by opening Notepad++ going to "Language" and choosing "Batch" from the list. This will add the syntax highlighting and syntax folding for batch files.
Line 1
we want to turn echo off.
Line 2
we place our batch file's title.
ECHO OFF
Title Simple Addon Extractor and Installer
If you need help locating it check out the Locating You WoW Folder section in my
Backing up Important WoW Data and You!
guide.
Line 4
we are setting the location of the addons directory. You will need to change the C:\Program Files\World of Warcraft\_retail_\Interface\AddOns to where your Interface/AddOns folder is located (this is not the one you created on your Desktop). This needs to be in quotes.
Set addondir="C:\Program Files\World of Warcraft\_retail_\Interface\Addons"
If you have your World of Warcraft installed on your T partition then it may look something more like:
T:\World of Warcraft\_retail_\Interface\AddOns
Line 5
we are setting the location of the file for the addons zip files. If you don't understand batch files I would suggest just leaving this alone.
Correction: the "%userprofile" should have another % at the end: "%userprofile%"
Set dsktpdir="%userprofile%\Desktop\Addons"
Line 7&8
is the extraction from your "AddOns" folder on your Desktop to your "AddOns" folder in your WoW folder.
Line 9
creates a file of the extraction list for your reviewing pleasure.
FOR %%Z IN ("%dsktpdir%\*.zip") DO (
7za x "%%Z" -o%addondir% -y
) >>%userprofile%\Desktop\Extraction-List.txt
Line 11
deletes the "AddOns" folder on your Desktop along with all the zip files with it so not to take up space.
RMDIR /s /q "%dsktpdir%"
Line 13
this exits out of the batch program.
EXIT
Simple!
Now go to "File" > "Save As..." I named mine
Installer
. Make sure you save it as a .bat file. Place it in the
Easy Addon Extraction
folder with the
7za.exe
and
7za.dll
.
Here's the full batch all together for easier copying.
ECHO OFF
Title Simple Addon Extractor and Installer
Set addondir="C:\Program Files\World of Warcraft\_retail_\Interface\Addons"
Set dsktpdir="%userprofile%\Desktop\Addons"
FOR %%Z IN ("%dsktpdir%\*.zip") DO (
7za x "%%Z" -o%addondir% -y
) >>%userprofile%\Desktop\Extraction-List.txt
RMDIR /s /q "%dsktpdir%"
EXIT
RUNNING IT
Make sure your addon zip files, you have just downloaded, are located in the AddOns folder on your Desktop.
Now double click on the Installer batch file you just created, and let it run.
A black prompt window should popup for a short period of time (depending on how many addons you are installing). Once it has completed your AddOns from on your desktop will be deleted, and you will have an Extraction-List.txt on your Desktop with a list of what all it extracted. This will show each individual file, but the batch file will have extracted the folder from the zip and kept that folder hierarchy.
CREDITS
7-zip is Open Source extractor (c) by Igor Pavlov.
Notepad++ is free source code editor (c) Don Ho
Addon Extraction & Installation Command Copyright (C) 2014 Keldesh & Daddywarcrimes
GNU GPLv3
[Get Wowhead]
高级会员
[$2]
[A Month]
[Enjoy an ad-free experience, unlock premium features, & support the site!]
评论
贡献
在发表评论前,请留心以下提示:
您的评论必须为简体中文,否则将会被删除。
不知道如何发评论?参考我们的
格式指南
!
发表前最好先自行校对一次。
有问题可以访问我们的
论坛
来寻求帮助。
发表评论
你没有登录。
请登录
或者
注册账号
来添加你的评论。
使用下面的表格浏览您的截屏。
[Screenshots containing UI elements are generally declined on sight, the same goes for screenshots from the modelviewer or character selection screen.]
质量越高越好!
[Please review our
Screenshot Guidelines
before submitting!]
您没有登录。请
登录
后提交截屏。
将视频URL输入下列表格即可。
URL:
支持:仅限 YouTube
说明:您的视频需通过审核才能在站点上显示。
我们用
Wowhead 客户端
保证数据库的及时更新,向您提供额外的有趣的功能!
两大目的:
它还维护WoW的一个插件
Wowhead Looter
, 在您游戏时采集数据!
它将
采集所得数据
上传至Wowhead,保证数据库时刻掌握最新信息!
您可以用它追踪完成的任务、配方、坐骑、伙伴宠物以及头衔!
您还在等什么?立即
下载客户端
整装待发吧。
我们用 Wowhead 客户端保证数据库的及时更新,向您提供额外的有趣的功能!
两大目的:
您可以用它追踪完成的任务、配方、坐骑、伙伴宠物以及头衔!
您还在等什么?立即 下载客户端 整装待发吧。