Jump to content


Photo

Guide: Creating addons


  • Please log in to reply
48 replies to this topic

#1 Legolash2o

Legolash2o

    Win Toolkit Programmer

  • Global Mods
  • 4,016 posts
  • Location:Hull, UK.

Posted 04 April 2009 - 09:43 AM

Requirements: 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
[attachment=1833:Folder.png]

Once its open change .7z to .WA make sure its on Ultra compression and click OK
[attachment=1834:7zip.png]


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:"

Edited by Legolash2o, 27 September 2010 - 09:49 PM.


#2 SeanDeC

SeanDeC

    Lurker

  • Members
  • Pip
  • 4 posts

Posted 04 August 2009 - 02:15 PM

I am having trouble installing Installwatch. Whenever I run the setup file I get am error saying "Unable to execute. "C:\Users\Sean\AppData\Local\Temp\pft1~tmp\SETUP.EXE" /SMS" Then I click on the ok button and get the dialog box saying "Package for the web error. Unable to execute the specified command line!" I took ownership of the file and have full rights but it's still not working. Any ideas anyone? Thanks in advance. BTW, I am running Vista Ultimate 32. Thanks again. Sean

#3 snakecracker

snakecracker

    Who Dares Wins

  • Members
  • PipPipPipPipPipPip
  • 738 posts
  • Location:London, England
  • OS:Windows 7 x64

Posted 04 August 2009 - 03:03 PM

I had trouble with that download.
I Think its to do with UAC What i did was turn it off and then restart the system and i ran the installtion and it worked..

#4 SeanDeC

SeanDeC

    Lurker

  • Members
  • Pip
  • 4 posts

Posted 04 August 2009 - 03:07 PM

I had trouble with that download.
I Think its to do with UAC What i did was turn it off and then restart the system and i ran the installtion and it worked..



Yeah, I tried that but still didn't work. This is driving me nuts, lol. Thanks for the reply though, any more ideas? Sean.

#5 snakecracker

snakecracker

    Who Dares Wins

  • Members
  • PipPipPipPipPipPip
  • 738 posts
  • Location:London, England
  • OS:Windows 7 x64

Posted 04 August 2009 - 03:13 PM

Have you tried downloading it again? http://www.epsilonsq...nstallwatch.htm

#6 SeanDeC

SeanDeC

    Lurker

  • Members
  • Pip
  • 4 posts

Posted 04 August 2009 - 04:32 PM

Yeah, I have tried downloading it from several different places, including the official site but with no luck. Is there any other program I could use for help making addons?

#7 DaRk MaDnEsS

DaRk MaDnEsS

    Live Free or Die Hard

  • Contributors
  • 971 posts
  • Location:Some where out computer
  • OS:Windows 7

Posted 04 August 2009 - 04:48 PM

try this topic

http://www.wincert.n...h__1

#8 ricktendo

ricktendo

    Group: Banned

  • Global Mods
  • 7,765 posts
  • Location:La Ceiba
  • OS:Windows 8 x64

Posted 04 August 2009 - 08:15 PM

Yea, manually install my addon using the inf file:

1- Extract the addon to a sub dir
2- Create a folder called i386 (Optional)
3- Move the .cab file into the i386 folder (Optional)
4- Right click the .inf file and choose install
5- Show the .inf installer the location of the .cab file (if steps 2+3 were skipped) and click ok

#9 SeanDeC

SeanDeC

    Lurker

  • Members
  • Pip
  • 4 posts

Posted 04 August 2009 - 10:57 PM

Thanks! worked like a charm!

#10 zzzzzzzzzz

zzzzzzzzzz

    Member

  • Members
  • PipPip
  • 15 posts
  • OS:Windows 7

Posted 29 August 2009 - 02:59 PM

can i use a silent program
:rolleyes:

#11 Legolash2o

Legolash2o

    Win Toolkit Programmer

  • Global Mods
  • 4,016 posts
  • Location:Hull, UK.

Posted 29 August 2009 - 09:23 PM

Im gonna do some work to the Addon Maker so it lets you create silent installers, but you can still make one manually and integrate using the new alpha.

#12 DaRk MaDnEsS

DaRk MaDnEsS

    Live Free or Die Hard

  • Contributors
  • 971 posts
  • Location:Some where out computer
  • OS:Windows 7

Posted 29 August 2009 - 10:51 PM

Im gonna do some work to the Addon Maker so it lets you create silent installers, but you can still make one manually and integrate using the new alpha.


if you mean by Silent Installer an exe file

then Yay i hope it's done sson

so i can add it's support to my tool :D

#13 Legolash2o

Legolash2o

    Win Toolkit Programmer

  • Global Mods
  • 4,016 posts
  • Location:Hull, UK.

Posted 29 August 2009 - 11:12 PM

For those who want files in the user profile folders...

Use something like:
[CopyFolder]
Folder1::Users\Default
Folder1::Users\Default\AppData::

[CopyFile]
Folder2\1.exe::Users\Default
Folder2\1.exe::Users\Default\AppData

if you have any registry values or shortcuts (.lnk) then use

"%HomePath%\..." within those values/shortcut itself

Every user account created will have the folders/files by default :)

#14 DaRk MaDnEsS

DaRk MaDnEsS

    Live Free or Die Hard

  • Contributors
  • 971 posts
  • Location:Some where out computer
  • OS:Windows 7

Posted 08 September 2009 - 10:55 PM

For those who want files in the user profile folders...

Use something like:
[CopyFolder]
Users\Default:Folder1
Users\Default\AppData:Folder1

[CopyFile]
Users\Default:Folder2\1.exe
Users\Default\AppData:Folder2\1.exe

if you have any registry values or shortcuts (.lnk) then use

"%HomePath%\..." within those values/shortcut

Every user account created will have the folders/files by default :)


well Lego i got a few questions

since i'm working on the WA Installer

i wanted to make sure

of some stuff

Users\Default:Folder1

<< shouldn't that be double :: not only a :
,

Users\Default:Folder2\1.exe

<< i didn't get that line shouldn't the other side be the destination dir

and

"%HomePath%\..." within those values/shortcut

<< that in the task.txt or in the shortcut path it self

and if it's in the task is the the only variable or there would be more ?

#15 Legolash2o

Legolash2o

    Win Toolkit Programmer

  • Global Mods
  • 4,016 posts
  • Location:Hull, UK.

Posted 09 September 2009 - 07:34 AM

well Lego i got a few questions

since i'm working on the WA Installer

i wanted to make sure

of some stuff

<< shouldn't that be double :: not only a :
,
<< i didn't get that line shouldn't the other side be the destination dir

and

<< that in the task.txt or in the shortcut path it self

and if it's in the task is the the only variable or there would be more ?


Opps, sorry.

1. Yep double ::
2. Fixed
3. shortcut or registry value itself not in the task.txt

#16 fernis264

fernis264

    Member

  • Members
  • PipPip
  • 10 posts
  • Location:Lancaster, CA
  • OS:Windows 7

Posted 19 September 2009 - 05:21 AM

I was wondering if %DefaultProfile% means it will go to all the user profiles. Where does %Desktop% Go to ?
Only the first time user?

#17 snakecracker

snakecracker

    Who Dares Wins

  • Members
  • PipPipPipPipPipPip
  • 738 posts
  • Location:London, England
  • OS:Windows 7 x64

Posted 19 September 2009 - 08:28 AM

I was wondering if %DefaultProfile% means it will go to all the user profiles. Where does %Desktop% Go to ?
Only the first time user?

%Desktop% will go to the desktop of all users, so if you have a shortcut that you want to put onto the desktop use %Desktop% to get that file to the desktop. :)

Edited by snakecracker, 19 September 2009 - 08:29 AM.


#18 LUZR4LIFE

LUZR4LIFE

    LUZR of the WORLD

  • Addon Maker
  • 1,457 posts
  • Location:Detroit, MI
  • OS:Windows 7

Posted 12 October 2009 - 06:35 PM

Hey Lego. I have a few questions on making addons for 7. Under [CopyFolder], do you add all of the other folder names also, plus the folders?

Ex. System32 etc.

#19 testesser1

testesser1

    Member

  • Members
  • PipPip
  • 25 posts
  • OS:Windows 7 x64

Posted 07 November 2009 - 12:11 AM

Hi,

i've a problem with registy-entries in an addon. I created a addon for "VLC Media Player" (German). For the contextmenu on directories the following code is used:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\AddToPlaylistVLC]
@="Zur VLC's Wiedergabeliste hinzufügen"
The Problem is that after integration with W7T and installation the "ü" from "hinzufügen" is converted to somthing strange. The Reg is saved as "Unicode". Do i have to save the Reg as "ANSI" or "UTF-8"? What can i do? Maybe its a bug in W7T?

Please help me
Thanks

Edited by testesser1, 07 November 2009 - 12:15 AM.


#20 Jonnyboy

Jonnyboy

    Lazzy Trucker

  • Contributors
  • 537 posts
  • Location:Georgia
  • OS:Windows 7 x64

Posted 12 November 2009 - 07:30 PM

I am updating my addon maker and tryng to incorporate this into it and I have 2 question.
1 - Will "Mozilla Firefox::Program Files" install into "Program Files (x86)" on 64-bit systems?
2 - can i run a command or installer, yet?
Thanks




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users