Jump to content

put Addon in add/remove windows components


LeGendxp

Recommended Posts

1st you need to make it visible in Add/Rem Win Components by removing HIDE from the sysoc entry

[sysoc]

Example=ocgen.dll,OcEntry,%maininf%,HIDE,7

It will look like

[sysoc]

Example=ocgen.dll,OcEntry,%maininf%,,7

Then in your Optional Component section you add a Uninstall directive which will point to a Uninstall section with DelFiles, DelReg and stuff

[Optional Components]

Example

[Example]

OptionDesc ="Example"

Tip ="Example Add/Rem Win Cmpnts Uninstall."

Modes =0,1,2,3

CopyFiles =CopyFileSection

AddReg =AddRegSection

Uninstall =UninstallSection

[uninstallSection]

DelFiles=DelFilesSection

DelReg =DelRegSection

Take a look and see how Windows does it, open accessor.inf, shl_img.inf and other inf files to get a good idea

Link to comment
Share on other sites

Hello

how can i put Addon (program) in add/remove windows components????

How can i do????

hi! you meant you wanted entries present in add/remove programs? not all addons put entries (specially for true addons that are fully integrated to your os) in arp while some do. which particular addons are you referring to? perhaps you can extract the contents & study the .inf & .ini files contained. if it is for uninstall purposes, try to request from the addon creator an uninstallable ver. cheers!

edit:

hehe! only realized rick already posted after submitting my reply.

LeGendxp, rick likewise answered similar q here: How do addon

Edited by kiki burgh
Link to comment
Share on other sites

1st you need to make it visible in Add/Rem Win Components by removing HIDE from the sysoc entry

It will look like

Then in your Optional Component section you add a Uninstall directive which will point to a Uninstall section with DelFiles, DelReg and stuff

Take a look and see how Windows does it, open accessor.inf, shl_img.inf and other inf files to get a good idea

thanx for replay

i cant use accessor.inf or any files like this

is there any way to make that without those files such as with regestry ??????

like this

[Version]

Signature="$Windows NT$"

[Optional Components]

Name

[VideoLAN]

OptionDesc ="name"

Tip ="%name%"

Modes = 0,1,2,3

AddReg = name.Option.Reg,name.Option.MarkInstalled,name.Option.Installed

[name.Option.Reg]

HKLM,"%SMWCV%\Setup\OptionalComponents","name",,"name"

HKLM,"%SMWCV%\Setup\OptionalComponents\name",INF,,"name.inf"

HKLM,"%SMWCV%\Setup\OptionalComponents\name",Section,,"name"

HKLM,"%SMWCV%\Setup\OptionalComponents\name",Installed,,"0"

[name.Option.MarkInstalled]

HKLM,"%SMWCV%\Setup\OptionalComponents\name",Installed,,"1"

[name.Option.MarkRemoved]

HKLM,"%SMWCV%\Setup\OptionalComponents\name",Installed,,"0"

[name.Option.Installed]

HKLM,"%SMWCV%\Setup\Oc Manager\Subcomponents","name",0x10001,1

[name.Options.Reg]

HKLM,"%SMWCV%\Setup\OptionalComponents","name"

HKLM,"%SMWCV%\Setup\OptionalComponents\name"

HKLM,"%SMWCV%\Setup\Oc Manager\Subcomponents","name"

only

thanx again :giveheart:

Edited by LeGendxp
Link to comment
Share on other sites

hi! you meant you wanted entries present in add/remove programs? not all addons put entries (specially for true addons that are fully integrated to your os) in arp while some do. which particular addons are you referring to? perhaps you can extract the contents & study the .inf & .ini files contained. if it is for uninstall purposes, try to request from the addon creator an uninstallable ver. cheers!

edit:

hehe! only realized rick already posted after submitting my reply.

LeGendxp, rick likewise answered similar q here: How do addon

thanx for replay

i meant i put the addon in windows components not in add/remove program !!

thanx again

Link to comment
Share on other sites

like this man

[Version]

Signature="$Windows NT$"

[Optional Components]

Name

[VideoLAN]

OptionDesc ="name"

Tip ="%name%"

Modes = 0,1,2,3

AddReg = name.Option.Reg,name.Option.MarkInstalled,name.Option.Installed,name.uninstall

[name.Option.Reg]

HKLM,"%SMWCV%\Setup\OptionalComponents","name",,"name"

HKLM,"%SMWCV%\Setup\OptionalComponents\name",INF,,"name.inf"

HKLM,"%SMWCV%\Setup\OptionalComponents\name",Section,,"name"

HKLM,"%SMWCV%\Setup\OptionalComponents\name",Installed,,"0"

[name.Option.MarkInstalled]

HKLM,"%SMWCV%\Setup\OptionalComponents\name",Installed,,"1"

[name.Option.MarkRemoved]

HKLM,"%SMWCV%\Setup\OptionalComponents\name",Installed,,"0"

[name.Option.Installed]

HKLM,"%SMWCV%\Setup\Oc Manager\Subcomponents","name",0x10001,1

[name.Options.Reg]

HKLM,"%SMWCV%\Setup\OptionalComponents","name"

HKLM,"%SMWCV%\Setup\OptionalComponents\name"

HKLM,"%SMWCV%\Setup\Oc Manager\Subcomponents","name"

[name.Uninstall]

UnregisterDlls = Stop.name,Register.

RegisterDlls = Delete.name.Dirs

AddReg = name.Option.MarkRemoved

DelReg = name.DelReg,Organiz.Start.Menu

and entries is

[general]

BuildDate =

Description =

Title =

Version =

Language =

Website =

[sysoc]

name=ocgen.dll,OcEntry,name.inf,,7

what can i do?

pleze help me more

Edited by LeGendxp
Link to comment
Share on other sites

OK let me explain the icon thingy, you can specify a icon (but its really a BMP not a ICO) by using a number, this number points to one of the bitmaps in 1201.bmp in setupapi.dll

1201.png

You start to count from zero: 0,1,2,3,4,5,6,7,8,9,etc and you will get your icon number

This is how you would point to a icon in setupapi.dll

[HoldEm]

OptionDesc = "Hold 'Em"

Tip = "Juego de poker."

Modes = 0,1,2,3

Parent = UltExtras

IconIndex = 34 ;Windows mini-icon for dialogs

SizeApproximation = 22368256

CopyFiles = HoldEm.Files,HoldEm.MUI

ProfileItems = HoldEm.AddShortcut

Uninstall = HoldEm.Uninstall

You can also specify other BMP icons that are in other DLL's, this one points to plusoc.dll BMP number 114 that is in "C:\WINDOWS\system32\Setup"

[WinPlus]

OptionDesc=%PlusWinDescription%

Tip=%PlusWinTip%

IconIndex = *, plusoc.dll, 114

Modes=0,1,2,3

If your DLL is in system32 you do this ..\ and it will go up one level and into system32, example ieaccess.inf

IconIndex    = *, ..\xpsp1res.dll, 200

Link to comment
Share on other sites

the addon which i want to put it in optional compnents and its icon is windows live messenger

Then....bmp for its icon

where i can put this bmp???

can i put it in any file of w.l.m

thanx ricktendo64 :welcome:

Edited by LeGendxp
Link to comment
Share on other sites

If you take a file like ocgen.dll, rename it to wlmoc.dll and create a bmp and add it to that you can maybe do that, that is what onepiece does

Or you can use the one that old Windows Messenger uses

IconIndex = *, msgrocm.dll, 2

thanx many thanx ricktendo64 :giveheart:

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...