Old 8th March 2009, 03:01   #1
CloudSquall
Junior Member
 
Join Date: Mar 2009
Posts: 3
CoreFLACDecoder_0.4

Hi,

A while ago i downloaded this file wwwfree-codecs.com/download/CoreFLAC_Decoder_Encoder.htm because i needed it, but then my curiosity got hold of me and i extracted the file.
What i found out was amazing, it had only a file called [NSIS].nsi and $SYSDIR folder which had the CoreFLACDecoder.ax in it.

Now this should be easy, I just compile it back again by downloading and installing NSIS, but it was harder then i thought, as am a complete noob with this thing.

When i put the script and try to compile it gives me and error.

Now i come here to seek for help and see if anyone has any idea how to fix this script:
Quote:
MessageBox 4 1 6 3 0
Abort
Return
SetOutPath $SYSDIR
File CoreFLACDecoder.ax
WriteReg 2147483650 105 194 206 1
WriteReg 2147483650 105 257 273 1
WriteUninstaller $SYSDIR\CoreFLACDecoder-uninstall.exe 217092 756
RegisterDLL $SYSDIR\CoreFLACDecoder.ax DllRegisterServer 4294967258
Return
If i learn how to do this then i would use the same manner to get some of my files working like CLVSD.AX
CloudSquall is offline   Reply With Quote
Old 8th March 2009, 04:24   #2
Animaether
Major Dude
 
Join Date: Jun 2001
Posts: 1,173
yeahhh... that's pretty much what you get when you try to extract the script from an NSIS installer.

"MessageBox 4 1 6 3 0"
Is gobbledeegook that will make sense only if you have some fairly good hacking skills

The normal script syntax is something like 'messagebox MB_OK "the message goes here" ID_YES gotoo_yes' etc.

In short - you can't recompile that script 'as is' because it isn't a valid script.

Anyway - if you just want to register an ActiveX component, why not have a peek at...
http://nsis.sourceforge.net/ActiveX_...onent_Register

Which will tell you that registering an ActiveX is no different from registering any other DLL %)
Animaether is offline   Reply With Quote
Old 8th March 2009, 12:36   #3
CloudSquall
Junior Member
 
Join Date: Mar 2009
Posts: 3
You see i refuse to be believe that the script in the first post just had the code:

;To Register a DLL
RegDLL "$INSTDIR\MyDLL.dll"

;To Unregister a DLL
UnRegDLL "$INSTDIR\MyDLL.dll"

to register a file like CLVSD.AX.

Simply becuase i can do it manully by copying the file to system32 and use the regsvr32 command.

But that JUST WONT work for some reason, thats why i believe there is more to it, even to get it work with Windows Media Player.

Last edited by CloudSquall; 8th March 2009 at 12:52.
CloudSquall is offline   Reply With Quote
Old 8th March 2009, 13:06   #4
Animaether
Major Dude
 
Join Date: Jun 2001
Posts: 1,173
have you tried with that FLAC codec?

some codec pack...
http://74.125.77.132/search?q=cache:...ient=firefox-a
...seems to indicate that RegDll is indeed all you'd need (that is, I don't see any calls later that might be related).

Perhaps CLVSD.AX itself is the problem?
Animaether is offline   Reply With Quote
Old 8th March 2009, 13:57   #5
CloudSquall
Junior Member
 
Join Date: Mar 2009
Posts: 3
I see...

You might find this weird but here is the thing.

I have downloaded a codec pack which has the file CLVSD.AX and if i install the codec it works like a charm.

But if i take the same file from the same codec and try to register myself, and guess what... it JUST WONT work lol.

dont you find this weird?
CloudSquall is offline   Reply With Quote
Old 8th March 2009, 14:53   #6
Animaether
Major Dude
 
Join Date: Jun 2001
Posts: 1,173
depends on what else might happen when you "install the codec"
Animaether is offline   Reply With Quote
Old 8th March 2009, 15:04   #7
Comperio
Major Dude
 
Comperio's Avatar
 
Join Date: Jan 2005
Location: Oregon Coast
Posts: 737
Well said, Animaether.

In addition, I also have to wonder if in fact you are getting all the components when you extract the EXE. Decompiling an NSIS EXE file is not a build-in function of NSIS itself (requires a 3rd part program to do so), so would you really expect that the output would always dump everything correctly each time? (Perhaps there are missing files or script commands in the extraction output.)
Comperio is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump