eliteos Posted November 6, 2008 Posted November 6, 2008 Sorry if this seems sillybut i'd like if someone explains how can I register dll files via addons thanks in advance Quote
ricktendo Posted November 6, 2008 Posted November 6, 2008 Can you say what DLL and where its located on the Windows install Quote
eliteos Posted November 6, 2008 Author Posted November 6, 2008 (edited) It's a dll file jetaudio register file extension with located in Program Files\JetAudio\JetFlExt.dllI 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 November 6, 2008 by eliteos Quote
Guest Posted November 6, 2008 Posted November 6, 2008 in the install section add RegisterDLLs=Dll.Registerand make[Dll.Register]and add after it16422,%ProgramFolder%,%dllFile%,1that should do it Quote
ricktendo Posted November 6, 2008 Posted November 6, 2008 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 Quote
eliteos Posted November 7, 2008 Author Posted November 7, 2008 Thanks for help DaRk MaDnEsS & ricktendo64 It finally works perfectly :thumbsup_anim: Quote
*Reaper* Posted November 11, 2008 Posted November 11, 2008 Hey Rick....Using your example....How would you un-register a dll whenuninstalling a program? Quote
Guest Posted November 25, 2008 Posted November 25, 2008 Hey Rick....Using your example....How would you un-register a dll whenuninstalling a program?i will answer this oneuse UnregisterDlls=just as simple as this Quote
ricktendo Posted November 25, 2008 Posted November 25, 2008 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,111,,dllname.dll,1 ; if there is no SubDir leave that part blank[Uninstall]UnRegisterDLLs=DLL.FilesDelFiles=...DelReg=...As you can see by the example I use the same section to register and un-register one or more dll'sBut 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.UnRegServerDelFiles=...DelReg=...EndPrompt=...[DLL.UnRegServer]"REGSVR32 /u /s ""%16422%\SubDir\SubSubDir\dllname.dll""""REGSVR32 /u /s %11%\dllname.dll" Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.