Update 4:20 PM 6/5/2007 : Added support for shotguns.
DISCLAIMER: Many redundancies for clarification, do not think of it as poor English.
If you spot a typo or something wrong, PM me and I'll see what I can do.
Tutorial by: xz64
WARNING: I added many redundancies just for clarification.
Ignore the </ br> stuff in the textboxes, if anyone knows how to fix this please tell me.
Have these downloaded/done:
Please read my Environment Variables tutorial, and make a variable for cstrike so you can do this.
you can save a lot of time when creating your uninstall data.
Your uninstall data is simply a .bat file that deletes a list of files/directories that you enter in the .bat file.
For this skin shown, here is an explanation on how to make the uninstall data:
Open up notepad (or whatever text editor you prefer.)
In the first line add "@echo off" (without quotes.) This cleans up your processing screen.
As you should know, this release comes with four main folders: materials, models, scripts, and weapons.
Let's take a look at some basic commands that you are going to use:
Functions
del - This simply means delete. It is used for deleting files or all files in a directory. You cannot remove a directory with it, but you can remove all files in a directory.
rmdir - This command means "remove directory". It only works on empty folders though. (Recall that del can delete all files in a folder so you can use this after using the del command.)
MATERIALS Enter these four lines of text (into your text file) exactly as they are seen below:
del "%cstrike%materials\models\weapons\v_models\pist_elite\"
Explanation: The first line says to remove all files in the pist_elite directory.
The second line says to remove the directory pist_elite, which you just cleared of data. (Remember how rmdir only works on empty folders?)
UPDATE:The /S removes all subdirectories.
The third and fourth lines are the same thing as lines 1 & 2 except they are for the w_models folder.
There is no \ after %cstrike% because it already translates with the \. (see the note.)
Now your file should look like this so far:
MODELS You do not need to remove any directories in this section.
An asterisk (*) is used as a wildcard in the command prompt (and your text file). This will be helpful because if you look at the models\weapons folder, there are many files that have the same prefix.
Add these two lines of text exactly as they are seen below:
del "%cstrike%models\weapons\v_pist_elite*"
del "%cstrike%models\weapons\w_pist_elite*"
Explanation: The first line deletes all files relating to the view model, and the second line deletes all files relating to the world models.
This is what your file should look like now:
SCRIPTS There is only one file to delete here: elites.txt.
Just add this line of text into your file:
del "%cstrike%scripts\weapons\elites.txt"
Explanation: This deletes the sound script for the elites.
Here is what you should have now:
SOUND All you do here is delete the contents of a directory and then the directory itself.
Enter these two lines into your text file:
del "%cstrike%sound\weapons\elite"
rmdir "%cstrike%sound\weapons\elite"
Explanation: This gets rid of all the files in the "elite" folder, and then it gets rid of the "elite" folder itself.
Add the word pause to the last line of your text file.
Your final product:
Now, you could just save this as "uninstallelites.bat" and execute it to remove your elites, but we'll stay more organized.
Open up the dualies.bat in notepad. Alternatively, you can just right click dualies.bat and click edit.
Copy and paste your final result into dualies.bat.
Save dualies.bat and exit.
To uninstall your skin:
Launch my skin uninstaller.
Select dualies from the drop-down list.
Click Remove
As the script is doing its thing, you will be prompted with a yes or no prompt frequently. Just press y and enter every time you get prompted with this. At the end press any key to exit.
Voilą! Your skin is uninstalled. You are not done yet though.
If your uninstall was successful, the program says to clear the .bat file.