mehdi.n
Members
-
Joined
-
Last visited
Reputation Activity
-
mehdi.n reacted to Legolash2o in Guide: Creating addonsRequirements: 7zip
I recommend using InstallWatch as it records what new registry entries there is and also which files have been modified.
Every .WA needs a tasks.txt file within it so W7T knows what to do with it, an example is below:
Make a folder i.e. D:\Addon
Step 1: Tasks.txt
Name=Mozilla Firefox
Creator=Legolash2o
Version=3.0.6
Arc=x86
Description=Open Source internet browser.
[CopyFolder]
Mozilla Firefox::Program Files
[CopyFile]
Mozilla Firefox.lnk::Users\Public\Desktop
Mozilla Firefox.lnk::ProgramData\Microsoft\Windows\Start Menu\Programs
Name
This is the name of the program or addon
Creator
Your name or the maker of the addon
Version
The version of the program/addon you are making
Arc
Which version of the program you are making their are only 3 choices
x86 - These addon will work on both x86 and x64 images, if it is integrated into x64 it will put the files in folders like "Program Files (x86)" or "SysWOW64".
x86! - x86 only
x64 - x64 only
Build (Optional)
This will only let you install the addon on certain versions of windows i.e. 7068. This is useful for patches like Themes.
Build=7000! *Build 7000 only
Build=7000 *Build 7000 or newer
Website (Optional)
When the addon is double clicked in the list, it will open the website specified
Step 2: Copying Folders
[CopyFolder]
Mozilla Firefox::Program Files
This is easy...
name of folder::where to put it
Mozilla Firefox will be copied into Program Files folder.
Put Mozilla Firefox folder in your root addon folder (D:\Addon)
Step 3: Copying Files
[CopyFile]
Mozilla Firefox.lnk::Users\Public\Desktop
Mozilla Firefox.lnk::ProgramData\Microsoft\Windows\Start Menu\Programs
Put Mozilla Firefox.lnk in your root addon folder (D:\Addon)
Also easy....
name of file including extension (.exe, .lnk, whatever):: folder to put it in
Firefox links will be copied to both Desktop and Start Menu
Step 3: Registry Entries
Just simply copy the exported .reg file into the root folder of the addon (D:\Addon)
Note: You may want to clean the registry file and remove entries like your name, serial codes, temp stuff like MuiCache and sometimes there is a really long entry and i mean long, remove that too!
Normal Registry File
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\1]
"Example"="This is an example string"
"Example2"=dword:00000001
Delete Key (Note they hyphen (-) before HKEY_LOCAL_MACHINE\)
Windows Registry Editor Version 5.00
[-HKEY_LOCAL_MACHINE\SOFTWARE\1]
"Example"="This is an example string"
"Example2"=dword:00000001
Delete Value (Note the hyphen (-) after the equals sign(=))
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\1]
"Example"="This is an example string"
"Example2"=-
Step 4: Creating the addon file (.WA)
Using the example above you should have something similar to...
D:\Addon
D:\Addon\Mozilla Firefox\ (with firefox files within it)
D:\Addon\Mozilla Firefox.lnk (shortcut)
D:\Addon\Tasks.txt
D:\Addon\Example.reg (optional)
Simply highlight all the files in the folder, right-click, 7zip > Add to Archive
Once its open change .7z to .WA make sure its on Ultra compression and click OK
Tasks.txt Example
7zip x64
Name=7-zip
Creator=Legolash2o
Version=4.65
Arc=x64
Description=7-Zip is an open source file archiver designed originally for Microsoft Windows. Blah.
[CopyFolder]
7-Zip::Program Files
[CopyFile]
7-Zip File Manager.lnk::ProgramData\Microsoft\Windows\Start Menu\Programs
7zip x86 only
Name=7-zip
Creator=Legolash2o
Version=4.65
Arc=x86!
Description=7-Zip is an open source file archiver designed originally for Microsoft Windows. Blah.
[CopyFolder]
7-Zip::Program Files
[CopyFile]
7-Zip File Manager.lnk::ProgramData\Microsoft\Windows\Start Menu\Programs
Crap Cleaner for both x64 and x86
Name=Crap Cleaner
Creator=Legolash2o
Version=2.18.878
Arc=x86
Description=Cleans all the crap on the computer
[CopyFolder]
CCleaner::Program Files
[CopyFile]
CCleaner.lnk::ProgramData\Microsoft\Windows\Start Menu\Programs
Notes
When it comes to the "Description" in tasks.txt it can only be one line, it can not be multiple lines.
For example:
This program has the following features:
*blah
*blah
*blah
The Addon Integrator will only display "This program has the following features:"