Results 1 to 8 of 8

Thread: Inno setup registering my projects dll problems.

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    May 2009
    Posts
    876

    Inno setup registering my projects dll problems.

    Hi Guys i know this isnt about a question in my VB project. But i am begging anyone who know's about inno setup or has used it that can help me, please do.

    I am using the active x plugin on my form by VideoLan - it's the VLC Active X Plugin.

    When I run my installer it doesent seem to be registering the DLL's properly as the VLC plugin wont work on my form on another machine without VLC being installed.


    I know i did something a few weeks back that allowed it to work without it being installed i just cant remember what.

    This is in my source code part for Inno Setup -


    Code:
    Source: "C:\Program Files\VLC\axvlc.dll"; DestDir: "{app}"; Flags: restartreplace uninsneveruninstall sharedfile regserver
    Source: "C:\Program Files\VLC\axvlc.dll"; DestDir: "{sys}"; Flags: restartreplace uninsneveruninstall sharedfile regserver
    Source: "C:\Program Files\VLC\axvlc.dll.manifest"; DestDir: "{app}"; Flags: restartreplace uninsneveruninstall sharedfile regserver
    Source: "C:\Program Files\VLC\libvlc.dll"; DestDir: "{app}"; Flags: restartreplace uninsneveruninstall sharedfile regserver
    Source: "C:\Program Files\VLC\libvlccore.dll"; DestDir: "{app}"; Flags: restartreplace uninsneveruninstall sharedfile regserver

    Is their anything wrong with that could that could suggest why iit's not registering the DLL's mainly the axvlc one.

    Thanks all help is appreciated

    Cheers

  2. #2
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    Re: Inno setup registering my projects dll problems.

    Question. Do the other dlls need to be installed & registered first? Try moving the last 2 lines to the front maybe.

    Suggestion. Browse the "Application Deployment" section of the forums; that's where this should have been posted.
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

  3. #3
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Inno setup registering my projects dll problems.

    Moved To Application Deployment

  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    May 2009
    Posts
    876

    Re: Inno setup registering my projects dll problems.

    The thing is also when running the installer it get's to the part of registering files and it gives the errors

    'libvlc.dll unable to register the dll/ocx regserv32 failed with exit code 0x4'

    'libvlccore.dll unable to register the dll/ocx regserv32 failed with exit code 0x4'


    'axvlc.dll unable to register the dll/ocx regserv32 failed with exit code 0x4'

    'axvlc.dll unable to register the dll/ocx regserv32 failed with exit code 0x4'



    Thanks

  5. #5
    Frenzied Member
    Join Date
    Nov 2005
    Posts
    1,834

    Re: Inno setup registering my projects dll problems.

    I think I'm going to disappoint you here, but VLC contains a 50MB plugin folder that is also required. Just the axvlc.dll, libvlc.dll and libvlccore.dll files are not enough.

    The reason you can't register the DLL properly, is because you first need to set the InstallDir in the registry, for example: HKEY_LOCAL_MACHINE\SOFTWARE\VideoLAN\VLC -> InstallDir

    In other words, VLC needs to be installed before you can use the ActiveX dll.

  6. #6

    Thread Starter
    Fanatic Member
    Join Date
    May 2009
    Posts
    876

    Re: Inno setup registering my projects dll problems.

    Thanks for your relpy.

    I dont mind including the whole plugins folder in my install as the vlc activex control is the main part and idea behind my application. So without it = No app!

    Is there away around VLC physically having to be installed,

    For example including the files in my installer other than having to run the VLC installer?

    If so what would be the best method to do this

    Thanks

  7. #7

    Thread Starter
    Fanatic Member
    Join Date
    May 2009
    Posts
    876

    Re: Inno setup registering my projects dll problems.

    Please someone help me I really need to get the VLC plugin thing to work as it's the main part of my app.

    Please

  8. #8
    Addicted Member
    Join Date
    Mar 2002
    Posts
    135

    Re: Inno setup registering my projects dll problems.

    You can call the VLCInstaller from your Inno Setup Script.

    Code:
    [Run]
    ; NOTE: The following entry contains an English phrase ("Launch"). You are free to translate it into another language if required.
    Filename: "{app}\VLCInstaller.exe"; Description: "Install and Register VLC"; Flags: nowait
    I hope this works....

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width