Results 1 to 11 of 11

Thread: inno problem with registering ActiveX Exe files

  1. #1

    Thread Starter
    Member
    Join Date
    Apr 2005
    Posts
    39

    Resolved inno problem with registering ActiveX Exe files

    Hi, Gugus
    I got a lot of help since I registered here, now at the end of my project, I got a problem which has annoyed me almost a week. Finnally I located the problem but I don't know how to resolve it. Hopefully I will get some help from you nice guys here.

    I use some ActiveX exe files in my project, and these ActiveX exe files are also created by myself. When I use PDW, it registered my ActiveX exes fine. I checked the registry and find the objects in the ActiveX exe modules are all there.

    Then I created installation package using inno. inno script and innosetup, both of them. I installed the program to my target machine and find inno didn't register my ActiveX exe objects. Well, it does register my dlls, since I have regserver flags for dlls. But I don't know how to instruct inno to register my AcitveX exes, because regserver only works for dll/ocx as I know.

    It took me few days to locate the problem. Now I'm a little happier, since I know what the problem is. But if anyone can tell me how to fix it, I really appreciate. Tons of thanks to you guys.
    Last edited by ordnance; May 17th, 2005 at 03:59 PM.

  2. #2
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: inno problem with registering ActiveX Exe files

    ordnance,

    Post your script and a description of the files you think that were not registered. If you look in ********** View->Registered Components you can see all the files/components that are registered on you system.

  3. #3

    Thread Starter
    Member
    Join Date
    Apr 2005
    Posts
    39

    Re: inno problem with registering ActiveX Exe files

    Quote Originally Posted by randem
    ordnance,

    Post your script and a description of the files you think that were not registered. If you look in ********** View->Registered Components you can see all the files/components that are registered on you system.
    Thanks randem, here is my script
    ; ********** Version 4.0.5
    ; Randem Systems, Inc.
    ; Copyright 2003, 2004
    ; website: http://www.***********
    ; support: http://www.**********.com/cgi-bin/discus/discus.cgi

    ; Date: May 16, 2005

    ; VB Runtime Files Folder: D:\Program Files\Randem Systems\**********\********** 4.0\VB 6 Redist Files\
    ; Visual Basic Group Project File (.vbg): D:\myfiles\projects\encoder_agent\encoder_manager\EncoderManager.vbg
    ; Inno Setup Script Output File (.iss): D:\myfiles\projects\encoder_agent\setup.iss

    ; ------------------------
    ; Visual Basic References
    ; ------------------------

    ; Microsoft Scripting Runtime
    ; XTimers - Example code-only timer using AddressOf and SetTimer API
    ; FILEMGMT 1.0 Type Library
    ; Microsoft VBScript Regular Expressions 5.5
    ; Windows Media Encoder


    ; --------------------------
    ; Visual Basic Components
    ; --------------------------



    [Setup]
    AppName=EncoderAgent
    AppVerName=EncoderAgent 1.0.0
    AppPublisher=insinc.com
    AppVersion=1.0.0
    VersionInfoVersion=1.0.0
    AllowNoIcons=no
    DefaultGroupName=EncoderAgent
    DefaultDirName={pf}\EncoderAgent
    AppCopyright=
    PrivilegesRequired=Admin
    MinVersion=4.1,5.0
    OutputBaseFilename=Setup

    [Tasks]

    [Files]
    Source: d:\program files\randem systems\**********\********** 4.0\vb 6 redist files\msvbvm60.dll; DestDir: {sys}; Flags: sharedfile
    Source: d:\program files\randem systems\**********\********** 4.0\vb 6 redist files\oleaut32.dll; DestDir: {sys}; Flags: sharedfile
    Source: d:\program files\randem systems\**********\********** 4.0\vb 6 redist files\olepro32.dll; DestDir: {sys}; Flags: sharedfile
    Source: d:\program files\randem systems\**********\********** 4.0\vb 6 redist files\asycfilt.dll; DestDir: {sys}; Flags: sharedfile
    Source: d:\program files\randem systems\**********\********** 4.0\vb 6 redist files\stdole2.tlb; DestDir: {sys}; Flags: regtypelib
    Source: d:\program files\randem systems\**********\********** 4.0\vb 6 redist files\comcat.dll; DestDir: {sys}; Flags: sharedfile
    Source: d:\program files\windows media components\encoder\wmenc.exe; DestDir: {app}; Flags: ignoreversion
    Source: d:\myfiles\projects\encoder_agent\file_server\private.ppk; DestDir: {app}; Flags: ignoreversion
    Source: d:\myfiles\projects\encoder_agent\file_server\pscp.exe; DestDir: {app}; Flags: ignoreversion
    Source: d:\myfiles\projects\encoder_agent\encoder_utilities\encoderutilities.dll; DestDir: {app}; Flags: regserver restartreplace
    Source: d:\myfiles\projects\encoder_agent\xtimer\xtimers.dll; DestDir: {app}; Flags: regserver restartreplace
    Source: d:\myfiles\projects\encoder_agent\encoder_agent\encoderagent.exe; DestDir: {app}; Flags: ignoreversion
    Source: d:\myfiles\projects\encoder_agent\encoder_manager\encodermanager.exe; DestDir: {app}; Flags: ignoreversion
    Source: d:\myfiles\projects\encoder_agent\file_server\fileserver.dll; DestDir: {app}; Flags: regserver restartreplace
    Source: d:\myfiles\projects\encoder_agent\encoder_support\encodersupport.exe; DestDir: {app}; Flags: ignoreversion
    Source: d:\myfiles\projects\encoder_agent\eps_agent\epsagent.exe; DestDir: {app}; Flags: ignoreversion

    [Icons]
    Name: {group}\EncoderManager; Filename: {app}\EncoderManager.exe; WorkingDir: {app}
    Name: {group}\Uninstall EncoderAgent; Filename: {uninstallexe}

    [Run]
    Filename: {app}\EncoderManager.exe; Description: Launch EncoderAgent; Flags: nowait postinstall skipifsilent; WorkingDir: {app}

    Of which "encoderagent.exe", "encodersupport.exe", "epsagent.exe" are ActiveX exes and are not registered. I find I can register them by double click these files. But is that the correct way to register? Thanks.

  4. #4

    Thread Starter
    Member
    Join Date
    Apr 2005
    Posts
    39

    Re: inno problem with registering ActiveX Exe files

    Hi all,
    I find a solution but I'm searching for a better solution. My solution is run myexe.exe /regserver. And I know I can embed it into the [run] section of innosetup. But is there a builtin flag I can use? regserver invocate regsvr32 and only work for .ocx and .dll. Anyone had the experience before?

  5. #5
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: inno problem with registering ActiveX Exe files

    ordnance,

    Could you upload one of the files you did not get registered, I need to check it. You can also just change the lines of the script to look like this for the files you want to register.

    Change

    Source: d:\myfiles\projects\encoder_agent\encoder_manager\encodermanager.exe; DestDir: {app}; Flags: ignoreversion

    To

    Source: d:\myfiles\projects\encoder_agent\encoder_manager\encodermanager.exe; DestDir: {app}; Flags: regserver restartreplace

    If these files are truly ActiveX files that need to be registered.

  6. #6

    Thread Starter
    Member
    Join Date
    Apr 2005
    Posts
    39

    Re: inno problem with registering ActiveX Exe files

    Quote Originally Posted by randem
    ordnance,

    Could you upload one of the files you did not get registered, I need to check it. You can also just change the lines of the script to look like this for the files you want to register.

    Change

    Source: d:\myfiles\projects\encoder_agent\encoder_manager\encodermanager.exe; DestDir: {app}; Flags: ignoreversion

    To

    Source: d:\myfiles\projects\encoder_agent\encoder_manager\encodermanager.exe; DestDir: {app}; Flags: regserver restartreplace

    If these files are truly ActiveX files that need to be registered.
    Well randem, This won't work and I've already tried this. If you check the manual, you will see flag regserver only work for dll and ocx. When I tried with this, it gave me the same error if I run regsvr32 somthing.exe manually. Fortunately, path/something.exe /regserver will work. I added a few these lines under [Run] and [UninstallRun] section, they work just fine. I think inno just doesn't have this flag for exe files.

    You can create any Active Exe files and try with innosetup. I'm sure it won't work unless you use some other flags. But I can't find these "other flags" according to inno help. If you can leave your email address, I will send you my exe file. Thanks Guys.
    Last edited by ordnance; May 17th, 2005 at 02:15 PM.

  7. #7
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: inno problem with registering ActiveX Exe files

    ordnance,

    Sorry, you are correct. That is the proper way to register ActiveX EXE's in the RUN section with the /REGSERVER switch.

  8. #8

    Thread Starter
    Member
    Join Date
    Apr 2005
    Posts
    39

    Re: inno problem with registering ActiveX Exe files

    Quote Originally Posted by randem
    ordnance,

    Sorry, you are correct. That is the proper way to register ActiveX EXE's in the RUN section with the /REGSERVER switch.
    Not a problem!

  9. #9
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: inno problem with registering ActiveX Exe files

    ordnance,

    I will also update ********** to handle ActiveX exe registration. If you want the Beta let me know.

    Mahalo
    Last edited by randem; May 17th, 2005 at 04:05 PM.

  10. #10

    Thread Starter
    Member
    Join Date
    Apr 2005
    Posts
    39

    Re: inno problem with registering ActiveX Exe files

    Quote Originally Posted by randem
    ordnance,

    I will also update ********** to handle ActiveX exe registration. If you want the Beta let me know.

    Mahalo
    Oh my God, I didn't notice you are the author of Inno! I feel so exciting to know I'm talking to a real author who I previously believe only live in one's imagination! This is amazing!
    I'm fine with the current version of Inno. But I will be happy to download a new version with my suggestion integrated when you think it's the time for a stable release. Well, this is great!

  11. #11
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: inno problem with registering ActiveX Exe files

    ordnance,

    Just the author of ********** not Inno Setup. If you go to Help->Subscribe to email updates in ********** you will be added to our update list.

    Mahalo

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