Jump to content

Recommended Posts

Posted (edited)

It's a dll file jetaudio register file extension with located in Program Files\JetAudio\JetFlExt.dll

I try to make an addon for jetaudio 7, everything went fine except the shell extension of the program. After several trials I figure out that this dll 's responsible for the shell extension. I register it manually and it works but how to make this via an addon.

Edited by eliteos
Posted

in the install section

add

RegisterDLLs=Dll.Register

and

make

[Dll.Register]

and add after it

16422,%ProgramFolder%,%dllFile%,1

that should do it

Posted

This should do it (OCEntry should be changed to whatever you have under [Optional Components])

[OCEntry]
OptionDesc=...
Tip=...
Modes=...
CopyFiles=...
AddReg=...
RegisterDLLs=ShellExt.DLL

[ShellExt.DLL]
16422,JetAudio,JetFlExt.dll,1

  • 2 weeks later...
Posted
Hey Rick....

Using your example....

How would you un-register a dll when

uninstalling a program?

i will answer this one

use

UnregisterDlls=

just as simple as this

Posted

Yes use UnRegisterDLLs with the same section you used to Register them (it runs before DelFiles) example:

[DefaultInstall]
CopyFiles=...
AddReg=...
RegisterDLLs=DLL.Files

[DLL.Files]
16422,SubDir\SubSubDir,dllname.dll,1
11,,dllname.dll,1 ; if there is no SubDir leave that part blank

[Uninstall]
UnRegisterDLLs=DLL.Files
DelFiles=...
DelReg=...

As you can see by the example I use the same section to register and un-register one or more dll's

But sometimes UnRegisterDLLs will not work if you use advpack.dll to launch the uninstall section, then you have to use RunPreSetupCommands like this:

[Uninstall]
BeginPrompt=...
RunPreSetupCommands=DLL.UnRegServer
DelFiles=...
DelReg=...
EndPrompt=...

[DLL.UnRegServer]
"REGSVR32 /u /s ""%16422%\SubDir\SubSubDir\dllname.dll"""
"REGSVR32 /u /s %11%\dllname.dll"

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...