IT Management Suite

  • 1.  Install ActiveX (Cab)

    Posted Nov 18, 2015 05:58 PM

    Hi,

    One of our vendor's webapp required activeX. They do NOT provide any method to install the activeX remotely. All they provide to are five CAB files. If I extract those CAB files, they are dll, ocx and inf.

    How to install install these CAB files and/or ocx files via SWD?

     

    Thanks,



  • 2.  RE: Install ActiveX (Cab)

    Posted Nov 19, 2015 02:34 AM

    https://obinshah.wordpress.com/2011/03/29/how-to-install-cab-file-on-windows/

    https://technet.microsoft.com/en-us/library/cc749465%28v=ws.10%29.aspx

    pkgmgr /ip /m:<path><file name>.cab /quiet

    Or,

    start /wait pkgmgr /ip /m:<path><file name>.cab /quiet



  • 3.  RE: Install ActiveX (Cab)

    Posted Nov 19, 2015 08:58 AM

    If Mistral's suggestion doesn't work you can try (this is more for driver files):

    rundll32.exe advpack.dll,LaunchINFSectionEx inf_filename,[section name],[cab name],<flags>[,smart reboot]

    INF Filename: INF filename you want to launch. If the given name is not full pathname, advpack.dll will extract the INF from the given CAB file.

    Section Name: INF install section name you want to launch. If it is empty string or NULL, DefaultInstall section name will be called.

    Cab Name: Specify the fully qualified CAB file pathname which contains the files or INF you want to install to the user's system.

    Flags

    Flag Meaning

    4 Quiet Mode, no UI

    8 Don't Run GrpConv

    16 Force Self-Updating on User's System

    32 Backup Data Before Install

    64 Rollback to Previous State

    128 Validate the Backup Data

    256 Complete Rollback to Previous State

    512 Force Delay of OCX Registration

    Smart Reboot

    N No Reboot

    A Always Reboot

    I Reboot if Needed (default value)

    Example:

    rundll32.exe advpack.dll,LaunchINFSectionEx myinf.inf,,c:\temp\mydata.cab,36

    This means to extract myinf.inf file from c:\temp\mydata.cab file and launch myinf.inf with DefaultInstall section in Quiet|Backup install mode, reboot if needed.

    rundll32.exe advpack.dll,LaunchINFSectionEx c:\windows\inf\myinf.inf,,,256

    This means to rollback to the state before installing myinf.inf DefaultInstall section.



  • 4.  RE: Install ActiveX (Cab)

    Posted Nov 19, 2015 08:59 AM

    Or there's this:

    PNPUTIL -a "c:\Path to Driver File\Driver.inf"


  • 5.  RE: Install ActiveX (Cab)

    Posted Nov 19, 2015 09:04 AM

    When you right-click and "install" on an .inf file you are carrying out the command here:

    HKEY_CLASSES_ROOT\inffile\shell\Install\command

    which is for Windows 7:

    %SystemRoot%\System32\InfDefaultInstall.exe "%1"


  • 6.  RE: Install ActiveX (Cab)

    Posted Nov 19, 2015 11:03 AM

    I guess I need to tried out whether their inf have "Install" option...

    Do you know for Windows XP?

     

    Thanks,



  • 7.  RE: Install ActiveX (Cab)

    Posted Nov 19, 2015 12:45 PM

    You can look in HKEY_CLASSES_ROOT\inffile\shell\Install\command in XP to get the command. If you can right-click the inf file and install it in XP then the command in that reg key is what is being used and should work.



  • 8.  RE: Install ActiveX (Cab)

    Posted Nov 19, 2015 02:12 PM

    The document say Windows Vista...., we have XP and Win7

    And it seem to install cab into an image. does it work for live Windows?



  • 9.  RE: Install ActiveX (Cab)

    Posted Nov 19, 2015 02:17 PM

    XP has this

    %SystemRoot%\System32\rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 %1

     

    I guess I have to try it.