Results 1 to 10 of 10

Thread: [RESOLVED] OCA problem [Inno setup]

  1. #1

    Thread Starter
    Lively Member ashokkumard's Avatar
    Join Date
    Aug 2007
    Location
    India
    Posts
    119

    Resolved [RESOLVED] OCA problem [Inno setup]

    Hi
    I am using Inno setup 5.1.12. with this setup i can't able to register MSCOMCTL.OCX or copy the same in system folder. Is there any other possiblities to register that ocx but not by manual. If any one suggest other than inno setup is also welcome.
    Last edited by ashokkumard; Mar 7th, 2008 at 04:54 AM.
    Thanks
    Ashok

    Nothing is permanent except changes!..

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

    Re: OCX problem [Inno setup]

    You have a great installer. Why can't you register it?

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

    Re: OCX problem [Inno setup]

    This always works for me:

    Source: e:\server data\randem\develop\deployable system files\mscomctl.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile;

  4. #4

    Thread Starter
    Lively Member ashokkumard's Avatar
    Join Date
    Aug 2007
    Location
    India
    Posts
    119

    Re: OCX problem [Inno setup]

    I have tried but not the excat what you have mentioned. It said that the you can't register the OCX while the system is using the same(not the excat message thrown by the system). Let me try your code and get back to you. Thank you for providing the script.
    Thanks
    Ashok

    Nothing is permanent except changes!..

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

    Re: OCX problem [Inno setup]

    Quote Originally Posted by ashokkumard
    It said that the you can't register the OCX while the system is using the same
    The line I provided will handle that situation.

  6. #6

    Thread Starter
    Lively Member ashokkumard's Avatar
    Join Date
    Aug 2007
    Location
    India
    Posts
    119

    Re: OCA problem [Inno setup]

    Hi Randem

    I have mistakenly posted the file is OCX, Sorry for the inconvinence its MSCOMCTL.OCA and COMCTL32.DEP. I want to trasfer these two files into system folder while installation, but can't able via inno setup. Is there anyother way to rectify this..?
    Last edited by ashokkumard; Mar 7th, 2008 at 04:27 AM.
    Thanks
    Ashok

    Nothing is permanent except changes!..

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

    Re: OCX problem [Inno setup]

    I don't see why you can't do it. Post your script.

  8. #8

    Thread Starter
    Lively Member ashokkumard's Avatar
    Join Date
    Aug 2007
    Location
    India
    Posts
    119

    Re: OCA problem [Inno setup]

    Hi Randem

    I try to register the OCA and DEP files thats why i got the error message, now i just copy those files into system folder and working fine now. To register that OCX given script is very helpful. Now my setup is working fine. Thanks for your immediate relpy.

    anyhow i want to give my script. Please find the code part
    Code:
    Below script is the file section
    
    [Files]
    #include "E:\INSTALLATIONS\INNOSETUPS\ICS\DLLS\Components.txt"
    Source: "E:\INSTALLATIONS\INNOSETUPS\ICS\EXE\ICS.exe"; DestDir: "{app}"; Flags: ignoreversion
    Source: "E:\INSTALLATIONS\INNOSETUPS\ICS\TEXTFILES\Readme.txt"; DestDir: "{app}"; Flags: ignoreversion
    Source: "E:\INSTALLATIONS\INNOSETUPS\ICS\SYSTEM\srvr.icx"; DestDir: "{app}"; Flags: ignoreversion
    Source: "E:\INSTALLATIONS\INNOSETUPS\ICS\SUPPORTINGFILES\MSCOMCTL.oca"; DestDir: "{sys}"; Flags: onlyifdoesntexist
    
    In component.txt i have the below script
    
    Source: "E:\INSTALLATIONS\INNOSETUPS\ICS\SUPPORTINGFILES\asycfilt.dll"; DestDir: "{sys}"; Flags: restartreplace uninsneveruninstall sharedfile
    Source: "E:\INSTALLATIONS\INNOSETUPS\ICS\SUPPORTINGFILES\COMCAT.DLL"; DestDir: "{sys}"; CopyMode: alwaysskipifsameorolder; Flags: restartreplace uninsneveruninstall sharedfile regserver
    Source: "E:\INSTALLATIONS\INNOSETUPS\ICS\SUPPORTINGFILES\comctl32.ocx"; DestDir: "{sys}"; CopyMode: alwaysskipifsameorolder; Flags: restartreplace uninsneveruninstall sharedfile regserver
    Source: "E:\INSTALLATIONS\INNOSETUPS\ICS\SUPPORTINGFILES\COMDLG32.OCX"; DestDir: "{sys}"; Flags: restartreplace uninsneveruninstall sharedfile regserver
    Source: "E:\INSTALLATIONS\INNOSETUPS\ICS\SUPPORTINGFILES\FM20.DLL"; DestDir: "{sys}"; Flags: restartreplace uninsneveruninstall sharedfile regserver
    Source: "E:\INSTALLATIONS\INNOSETUPS\ICS\SUPPORTINGFILES\msado21.tlb"; DestDir: "{sys}"; Flags: restartreplace uninsneveruninstall sharedfile regtypelib
    Source: "E:\INSTALLATIONS\INNOSETUPS\ICS\SUPPORTINGFILES\MSCOMCTL.OCA"; DestDir: "{sys}"; Flags: ignoreversion
    Source: "E:\INSTALLATIONS\INNOSETUPS\ICS\SUPPORTINGFILES\COMCTL32.DEP"; DestDir: "{sys}"; Flags: ignoreversion
    Source: "E:\INSTALLATIONS\INNOSETUPS\ICS\SUPPORTINGFILES\MSCOMCTL.OCX"; DestDir: "{sys}"; Flags: regserver restartreplace sharedfile
    Source: "E:\INSTALLATIONS\INNOSETUPS\ICS\SUPPORTINGFILES\MSVBVM60.DLL"; DestDir: "{sys}"; Flags: restartreplace uninsneveruninstall sharedfile regserver
    Source: "E:\INSTALLATIONS\INNOSETUPS\ICS\SUPPORTINGFILES\oleaut32.dll"; DestDir: "{sys}"; Flags: restartreplace uninsneveruninstall sharedfile regserver
    Source: "E:\INSTALLATIONS\INNOSETUPS\ICS\SUPPORTINGFILES\olepro32.dll"; DestDir: "{sys}"; Flags: restartreplace uninsneveruninstall sharedfile regserver
    Source: "E:\INSTALLATIONS\INNOSETUPS\ICS\SUPPORTINGFILES\RICHTX32.OCX"; DestDir: "{sys}"; Flags: restartreplace uninsneveruninstall sharedfile regserver
    Source: "E:\INSTALLATIONS\INNOSETUPS\ICS\SUPPORTINGFILES\scrrun.dll"; DestDir: "{sys}"; Flags: restartreplace uninsneveruninstall sharedfile regserver
    Source: "E:\INSTALLATIONS\INNOSETUPS\ICS\SUPPORTINGFILES\stdole2.tlb"; DestDir: "{sys}"; Flags: restartreplace uninsneveruninstall sharedfile regtypelib
    Source: "E:\INSTALLATIONS\INNOSETUPS\ICS\SUPPORTINGFILES\vbscript.dll"; DestDir: "{sys}"; Flags: restartreplace uninsneveruninstall sharedfile regserver
    Thanks
    Ashok

    Nothing is permanent except changes!..

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

    Re: [RESOLVED] OCA problem [Inno setup]

    Hi,

    You don't need to deploy .DEP files, they serve no purpose and you don't register OCA files. You should not deploy the scrrun.dll file, there are documents to read about that sort of thing. Don't use the "uninsneveruninstall " willy-nilly...

    and there is not code section so I guess I will have to find it...

  10. #10

    Thread Starter
    Lively Member ashokkumard's Avatar
    Join Date
    Aug 2007
    Location
    India
    Posts
    119

    Re: [RESOLVED] OCA problem [Inno setup]

    Hi,

    I am not familiar with the script, just came to know from my colleague. with the use of help provided only i did that script and all. I am using this deployment for VBA projects. Sometimes the attached dot file with the word document does not work because of missing sys files, for that only I decided to move dep file too. I am using FilesystemObject in my project, in client system sometimes scrrun.dll may miss to avoid the missing reference i use to transfer this dll also.
    Thanks
    Ashok

    Nothing is permanent except changes!..

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