Download
(68Kb)
Download
Updated: 12-06-08 06:46 PM
Pictures
File Info
Updated:12-06-08 06:46 PM
Created:unknown
Downloads:2,280
Favorites:14
MD5:

WoWUIInstallScript

Version: 1.1
by: Soulsbane [More]

This is an install script written for the wonderful Inno Setup. In order to use this script you must go to http://www.jrsoftware.org/isdl.php and download Inno Setup. Please read the steps below before downloading anything though!

What it does
Basically it will create an installer for your WTF and Addons directories that you can then install on your computer or another persons computer. An Example:
A couple of my friends like to use my UI setup so with this script I am able to create an executable installer that they can run on their computer. This installer will automatically find WoW and install the WTF and Addons from my computer on their computer.

Why would you want to do this? Well, convenience for one. It's much easier for my to tell them to download my installer than to create a zip and have them find the right directory and install things manually. Also cuts down on mistakes when places things in the correct folders.

***IMPORTANT NOTE********************************************************************************************************************
If you have a new WoW install or you moved your WoW directory make sure to run WoW at least once before trying to compile this script otherwise it will error on you.
You will also get an error if you try to run the resulting executable on your friends computer and they have a fresh install or had just moved WoW to a different directory.
*************************************************************************************************************************************

Steps:
1) Go to http://www.jrsoftware.org/isdl.php and download the QuickStart Pack. It's midway down the page. The reason for the QuickStart Pack is it includes the preprocessor that this script uses for some of it's magic.
2) Once you've downloaded the QuickStart Pack install it of course! It will ask you if you want to install the preprocessor. It will have a checkbox at the bottom that says Install Inno Setup Preprocessor.
2a) Note that there are other things the Quickstart pack will ask you to install(Istool, encryption support). That's up to you. All you need is the preprocessor.
3) Once you've installed everything just right-click the Main.iss included in the zip and choose "compile". This will automatically find your WoW install directory and compile an executable that contains your WTF files and Addons folders.
3a) If you don't get the option to compile then you need to open Inno Setup Installer in your start menu and in the options screen click associate .iss files with Inno Setup.
4) The compilation step will take some time depending upon how many addons you have After it is finished you can run it.
5) The installer will automatically find your WoW install directory and install your WTF and Addons in the appropriate directories.

Some notes:
-If it can't find the registry value where WoW is installed it won't go any futher and will give you an error dialog and quit.
-I've built in options that you can select in the installer to delete your WTF and Addons directory before installing the files. These are enabled by default.
-PLEASE, PLEASE, PLEASE read the Inno Setup instructions before making changes to the script. I've tested it to the best of my abilities and if you change the code around you can really mess your system up potentially.

Cosmetic Changes:
There are some cosmetic changes you can make though. Anything inside the quotes can be changed to whatever you want. Just don't modify anything else.

;#define MyAppName "WoW UI Installer"
;#define MyAppVerName "WoW UI Installer 1.0"
;#define MyAppPublisher "Azerothsoft"
;#define WizardImageLarge "Main.bmp"
;#define WizardImageSmall "Main-Small.bmp"
;#define ExecutableName "WoWUIInstaller"

The semicolon in front of the define means it is commented out. In other words it is ignored. If you want to use custom images instead of the default Inno Setup ones you need to remove the semicolon and change the values inside the quotes to the location where your images are stored.

1.1 Important Change - All defines are now commented out. So if you want to use anything other than default you will have to remove the semicolon and edit it to suit your needs.

Finally, do not use this to distribute your UI on the various addon sites. This should only be used for yourself and possibly to give your UI to your friends. I don't want to see UI installers popping up on various addon sites. If this starts to happen I'll be forced to remove this script. I'm only posting it here because I thought it might be useful if your in a similar situation to my own.

-Innosetup should no longer error when you comment out one of the custom defines(thanks Psoewish for reporting this).
-All defines are now commented out by default now.
Post A Reply Comment Options
Unread 12-02-08, 02:49 AM  
Soulsbane
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 7
File comments: 17
Uploads: 2
Originally posted by Psoewish
Apparently, when you comment the bit at the start out, you need to edit the part that calls those functions? out in the setup as well, or it won't work.
So you may want to add this to the description or something.
Good catch. I'll see if there is a workaround and if not I'll post some instructions for that part. Glad it's working for you and thanks for the bug report
Report comment to moderator  
Reply With Quote
Unread 12-01-08, 07:46 PM  
Psoewish
A Scalebane Royal Guard
 
Psoewish's Avatar
AddOn Author - Click to view AddOns

Forum posts: 447
File comments: 16
Uploads: 1
Originally posted by Soulsbane
Yes, that's exactly how it works(by using the registry). Did you try to compile right after you installed(or moved wow to a different directory)? Make to to run WoW at least once after you install it or move it to a different directory. WoW updates where it's located in the registry whenever you launch it. That is, unless something has changed in 3.0 that I don't know about. Still works for me though. If I get time I'll test my local copy by deleting the key and then running WoW and see if it gets added back.

Sorry it took so long to reply. Let me know if it's working for you now.
It works now!

I'm not sure if the problem was that I hadn't run it before or not. I just installed Vista to see if SP1 improved anything (it didn't >.>), so that may have been the cause as well actually.

Any way, it's working now, and it's better than I had imagined!

Just a little pointer though. In the first part I edited out the image defines, but when I went to compile it gave me an "undeclared identifier" error.

Apparently, when you comment the bit at the start out, you need to edit the part that calls those functions? out in the setup as well, or it won't work.
So you may want to add this to the description or something.

Any way, thanks a lot for this wonderful script, no more juggling with profiles now. It took at least 30min to switch between UI's, now it will take about 5min ^_^
Report comment to moderator  
Reply With Quote
Unread 12-01-08, 04:42 AM  
Soulsbane
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 7
File comments: 17
Uploads: 2
Originally posted by Psoewish
This is exactly what I've been looking for ever since I started getting into UI customizations! Unfortunately it doesn't work

It's giving me an error when I want to compile, and after looking at the code a bit, I think I know why.

I'm not a programmer or anything, so I could be way off, but I think it's trying to find my install directory through the registry. However, I always just copy/paste the wow folder when I format, so I have no registry keys for WoW.

I went and got into regedit and added some keys (it says in your code where he looks for em), but I'm stuck at the last one, what kind of value should I create there to make it point to my install directory?

I think this would solve my problem, just this one bump I'm experiencing atm
Yes, that's exactly how it works(by using the registry). Did you try to compile right after you installed(or moved wow to a different directory)? Make to to run WoW at least once after you install it or move it to a different directory. WoW updates where it's located in the registry whenever you launch it. That is, unless something has changed in 3.0 that I don't know about. Still works for me though. If I get time I'll test my local copy by deleting the key and then running WoW and see if it gets added back.

Sorry it took so long to reply. Let me know if it's working for you now.
Report comment to moderator  
Reply With Quote
Unread 11-12-08, 08:22 PM  
Psoewish
A Scalebane Royal Guard
 
Psoewish's Avatar
AddOn Author - Click to view AddOns

Forum posts: 447
File comments: 16
Uploads: 1
This is exactly what I've been looking for ever since I started getting into UI customizations! Unfortunately it doesn't work

It's giving me an error when I want to compile, and after looking at the code a bit, I think I know why.

I'm not a programmer or anything, so I could be way off, but I think it's trying to find my install directory through the registry. However, I always just copy/paste the wow folder when I format, so I have no registry keys for WoW.

I went and got into regedit and added some keys (it says in your code where he looks for em), but I'm stuck at the last one, what kind of value should I create there to make it point to my install directory?

I think this would solve my problem, just this one bump I'm experiencing atm
Report comment to moderator  
Reply With Quote
Unread 08-06-08, 12:04 AM  
Soulsbane
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 7
File comments: 17
Uploads: 2
Originally posted by Dreadlorde
http://www.wowinterface.com/download...UIControl.html ?
Didn't know that existed actually. But like I said in the description I find my script useful. I've been using it for years and thought I'd share. You don't need .net as well to use it. Just Inno Setup which is a small download
Report comment to moderator  
Reply With Quote
Unread 08-05-08, 09:07 PM  
Dreadlorde
A Pyroguard Emberseer
 
Dreadlorde's Avatar
AddOn Author - Click to view AddOns

Forum posts: 2302
File comments: 141
Uploads: 4
I guess...

I'm just kidding around though Souldbane, never meant to offend you.
__________________

Funtoo - Plan 9 - Windows 7
Report comment to moderator  
Reply With Quote
Unread 08-05-08, 08:34 PM  
Cralor
Mmm... cookies!!!
 
Cralor's Avatar
AddOn Author - Click to view AddOns

Forum posts: 772
File comments: 313
Uploads: 5
What do you mean, Dreadlorde? He can't make his own program?
__________________
Never be satisfied with satisfactory.
Report comment to moderator  
Reply With Quote
Unread 08-05-08, 07:33 PM  
Dreadlorde
A Pyroguard Emberseer
 
Dreadlorde's Avatar
AddOn Author - Click to view AddOns

Forum posts: 2302
File comments: 141
Uploads: 4
__________________

Funtoo - Plan 9 - Windows 7
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: