locked
Custom Application fails to install - Error 2147287038 and error 1720 on Windows Developer Preview

    Question

  • Our application fails to install on Windows 8 Developer Preview Build 8102. Our MSI has a custom action that installs a service and start the service. The step when to start the services fails. The MSI is working on Windows 7 32-bit/64-bit. It is signed and requires elevation.

     The line following line fails

    intRC = objService.StartService

    With the following error

    Error 1720. There is a problem with this Windows Installer package. A script required for this install to complete could not be run. Contact your support personnel or package vendor.  Custom action _B61DD621_3A02_4E09_AF8C_D8D372CF8DDA script error -2147217404, SWbemObjectEx: Provider failure  Line 28, Column 1,  
    MSI (s) (68:20) [11:14:29:973]: Note: 1: 2262 2: Error 3: -2147287038 
    MSI (s) (68:20) [11:14:29:973]: Product: Acme 3.3 -- Error 1720. There is a problem with this Windows Installer package. A script required for this install to complete could not be run. Contact your support personnel or package vendor.  Custom action _B61DD621_3A02_4E09_AF8C_D8D372CF8DDA script error -2147217404, SWbemObjectEx: Provider failure  Line 28, Column 1,  
    

    ' Service Type
    Const KERNEL_DRIVER = 1
    Const FS_DRIVER = 2
    Const ADAPTER = 4
    Const RECOGNIZER_DRIVER = 8
    Const OWN_PROCESS = 16
    Const SHARE_PROCESS = 32
    Const INTERACTIVE_PROCESS = 256
    
    ' Error Control
    Const NOT_NOTIFIED = 0
    Const USER_NOTIFIED = 1
    Const SYSTEM_RESTARTED = 2
    Const SYSTEM_STARTS = 3
    
    Const HKEY_LOCAL_MACHINE = &H80000002
    
    strComputer = "."
    strSvcName = "Audio Sync"
    customPath = Session.Property("CustomActionData") & "MawellAudioSync.exe"
    
    set objWMI = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
    set objService = objWMI.Get("Win32_Service")
    intRC = objService.Create(strSvcName, strSvcName, customPath, OWN_PROCESS, NOT_NOTIFIED, "Automatic", false)
    Set objService = Nothing
    
    set objService = objWMI.Get("Win32_Service.Name='" & strSvcName & "'")
    intRC = objService.StartService
    Set objService = Nothing
    
    Set objWMI = Nothing
    
    Set objRegistry = GetObject("winmgmts:\\" & strComputer & "\root\default:StdRegProv")
    objRegistry.SetStringValue HKEY_LOCAL_MACHINE, "System\CurrentControlSet\Services\" & strSvcName, "Description", "Uploads in the background."
    Set objRegistry = Nothing
    
    Set wsShellObj = CreateObject("WScript.Shell")
    wsShellObj.Run "SC failure """ + strSvcName + """ reset= 0 actions= restart/60000" , 1, false
    
    
    

    Original Title: Application fails to install - works on Windows 7


    Wednesday, December 28, 2011 12:04 PM

All replies

  • MrBean_Stockholm,

    Try installing the application in compatibility mode.

    You can do this by following the below instructions:

    ·         Enter the Start screen

    ·         Move your mouse to the bottom left of the screen to expand the Charms section

    ·         Select Search

    ·         Type Compatibility

    ·         Click Settings in the right column

    ·         Click Run programs made for previous versions of Windows

    ·         Then follow the prompts and direct the troubleshooter to the installer for your computer's driver.

    Please post back with your results.

    Thanks,


    Chris
    Wednesday, December 28, 2011 12:20 PM
  • Hello

    It did not help to run the "Program Compatibility Troubleshooter"

    Here is the result

    " Program Compatibility Troubleshooter Publisher details


    Issues found
    Incompatible Application
    Incompatible Application
    SetupOurApp(29792) is incompatible. Detected 
    Fix application SetupOurApp(29792) Completed 

    Issues found Detection details


    6 Incompatible Application Detected   
    SetupOurApp(29792) is incompatible.
    Fix application SetupOurApp(29792) Completed 
    Provides steps to fix the incompatible application. 
     
    Compatibility Mode  
    Compabitiliy modes applied:  
    Run as administrator  
    Skip Version Check  
    User verification: Fix didn't work  

    Detection details 

    Collection information
    Computer Name:  win8test
    Windows Version: 6.2
    Architecture: x86
    Time: Wednesday, December 28, 2011 1:03:37 PM

    Publisher details 

    Program Compatibility Troubleshooter
    Make older programs run in this version of Windows.
    Package Version: 1.5
    Publisher: Microsoft Windows

    Program Compatibility Troubleshooter
    Make older programs run in this version of Windows.
    Package Version: 1.0
    Publisher: Microsoft Corporation"

    Monday, January 16, 2012 1:52 PM
  • Since the Windows Developer Preview is a preview intended for developers to create and test Metro apps, not all applications are compatible.
    You have already tried the applications in compatibility mode and they didn't work.
    I suggest you contact the manufacturer of the applications or wait for the next release of the operating system.

    Thanks,
    Marilyn
    Thursday, January 19, 2012 10:24 PM
    Moderator
  • We are the manufacture of the application and the application installs fine in Window 7 32/64-bit, 2008 R2 and XP.

    But your probably right that not all functionality is in place so we will wait for the next test version.

    Thursday, February 9, 2012 11:54 AM