Msi api error

Ошибка vbs скрипта административной установки
   Crashxxx

1 — 13.07.11 — 14:07

Тему уже успешно поднимали: v8: проблема с установкой 1с v8.2 через скрипт logon

Скрипт с ИТС в студию:

Option Explicit

‘ изменять интерфейс пользователя

Const msiUILevelNoChange = 0

‘Использовать интерфейс пользователя, заданный по умолчанию

Const msiUILevelDefault = 1

‘Не отображать интерфейс пользователя (молчаливая установка)

Const msiUILevelNone = 2

‘Только индикатор прогресса и отображение ошибок

Const msiUILevelBasic = 3

‘Интерфейс пользователя без диалоговых сообщений

Const msiUILevelReduced = 4

‘Полный интерфейс пользователя

Const msiUILevelFull = 5

‘Если используется с msiUILevelBasic, то отображается индикатор

‘прогресса без кнопки Cancel

Const msiUILevelHideCancel = 32

‘Если используется с msiUILevelBasic, то отображается индикатор

‘прогресса без тображения любых диалогов, в т.ч. и ошибок.

Const msiUILevelProgressOnly = 64

‘Если используется с любым из перечисленных значений, инсталлятор

‘выводит сообщение в конце установки о конечном результате.

Const msiUILevelEndDialog = 128

‘***** Необходимо изменить на реальный каталог установки

Const DistrFolder=»\Server1CDistr»

Const shortcutName = «Запуск 1C Предприятия»

Dim shortcutTarget : shortcutTarget = DistrFolder & «1cestart.exe»

‘Константы для определения действия

‘ требуется установка

Const requiredInstall = 1

‘ требуется удаление

Const requiredUninstall = 0

‘Значение параметра ProductCode из файла setup.ini …

‘… для удаляемой версии

Const unInstallUID=»{9173B91C-FF56-4F25-82D1-7F68244044CD}»

‘… для устанавливаемой версии

Const InstallUID=»{0BC98727-04AD-470F-9EEE-0162C543833F}»

‘процедура установки или удаления указанной версии продукта

Sub installOrUninstall (ByVal productCode, ByVal msiPackage, ByVal mstTransform, ByVal requiredAction)

‘productCode — Информация о коде продукта. Находится в файле

‘              setup.ini, ключ ProductCode

‘msiPackage — Установочный пакет 1CEnterprise

‘mstTransform — файл языкового преобразования для инсталлятора

‘requiredAction — требуемое действие requiredInstall или

‘              requiredUninstall

‘Переменная, для формирования дополнительных

‘ параметров инсталлятору

   Dim cmdLine

   On Error Resume Next

   Dim installer, session

   Set installer = Nothing

   Set session = Nothing

   Set installer = Wscript.CreateObject(«WindowsInstaller.Installer») : processError

   installer.UILevel = msiUILevelBasic ‘msiUILevelNone ‘или укажите другой вариант интерфейса пользователя

   ‘проверка установки продукта

   Set session = installer.OpenProduct(productCode)

   If session Is Nothing AND requiredAction = requiredInstall Then

       ‘продукт не установлен и требуется его установка

       cmdLine = «TRANSFORMS=adminstallrelogon.mst;»

       If Not mstTransform Is Empty Then

‘добавим указание инсталлятору разговаривать на указанном языке

           cmdLine = cmdLine & mstTransform

‘можно дополнительно указать, какие компоненты нужно установить

           ‘cmdLine = cmdLine & » DESIGNERALLCLIENTS=1 THINCLIENT=1 WEBSERVEREXT=0 SERVER=0 CONFREPOSSERVER=0 CONVERTER77=0 SERVERCLIENT=1 LANGUAGES=RU»

       End If

‘установим платформу

       Set session = installer.InstallProduct(msiPackage, cmdLine) : processError

‘создадим ярлык на рабочем столе

       createShurtcut()

   ElseIf Not session Is Nothing AND requiredAction = requiredUninstall Then

‘платформа уже установлена и требуется ее удаление

‘обьект session может быть только один!

       Set session = Nothing

‘укажем, что нужно удалить с компьютера пользователя эту версию

       cmdLine = «REMOVE=ALL»

       ‘удалим

       Set session = installer.InstallProduct(msiPackage, cmdLine) : processError

   End If

   Set session = Nothing

   Set installer = Nothing

End Sub

‘обработка ошибок

Sub processError

 Dim msg

 If Err = 0 Then Exit Sub

 msg = Err.Source & » » & Hex(Err) & «: » & Err.Description

 Wscript.Echo msg

 Wscript.Quit 2

End Sub

‘создание ярлыка

Sub createShurtcut

   Dim WshShell, oShellLink

   Set WshShell = WScript.CreateObject(«WScript.Shell»)

   Dim strDesktop : strDesktop = WshShell.SpecialFolders(«Desktop»)

   Set oShellLink = WshShell.CreateShortcut(strDesktop & «» & shortcutName & «.lnk»)

   oShellLink.TargetPath = shortcutTarget

   oShellLink.WindowStyle = 1

   oShellLink.Description = shortcutName

   oShellLink.Save

   Set oShellLink = Nothing

   Set WshShell = Nothing

End Sub

‘удалим версию 260

installOrUninstall unInstallUID, DistrFolder + «8.2.9.260setup1CEnterprise 8.2.msi», «1049.mst», requiredUninstall

‘установим версию 356

installOrUninstall InstallUID, DistrFolder + «8.2.9.356setup1CEnterprise 8.2.msi», «1049.mst», requiredInstall

Click here follow the steps to fix Msi Api Error and related errors.

Instructions

 

To Fix (Msi Api Error) error you need to
follow the steps below:

Step 1:

 
Download
(Msi Api Error) Repair Tool
   

Step 2:

 
Click the «Scan» button
   

Step 3:

 
Click ‘Fix All‘ and you’re done!
 

Compatibility:
Windows 7, 8, Vista, XP

Download Size: 6MB
Requirements: 300 MHz Processor, 256 MB Ram, 22 MB HDD

Limitations:
This download is a free evaluation version. To unlock all features and tools, a purchase is required.

Msi Api Error Error Codes are caused in one way or another by misconfigured system files
in your windows operating system.

If you have Msi Api Error errors then we strongly recommend that you

Download (Msi Api Error) Repair Tool.

This article contains information that shows you how to fix
Msi Api Error
both
(manually) and (automatically) , In addition, this article will help you troubleshoot some common error messages related to Msi Api Error error code that you may receive.

Note:
This article was updated on 2023-02-03 and previously published under WIKI_Q210794

Contents

  •   1. What is Msi Api Error error?
  •   2. What causes Msi Api Error error?
  •   3. How to easily fix Msi Api Error errors

What is Msi Api Error error?

The Msi Api Error error is the Hexadecimal format of the error caused. This is common error code format used by windows and other windows compatible software and driver vendors.

This code is used by the vendor to identify the error caused. This Msi Api Error error code has a numeric error number and a technical description. In some cases the error may have more parameters in Msi Api Error format .This additional hexadecimal code are the address of the memory locations where the instruction(s) was loaded at the time of the error.

What causes Msi Api Error error?

The Msi Api Error error may be caused by windows system files damage. The corrupted system files entries can be a real threat to the well being of your computer.

There can be many events which may have resulted in the system files errors. An incomplete installation, an incomplete uninstall, improper deletion of applications or hardware. It can also be caused if your computer is recovered from a virus or adware/spyware
attack or by an improper shutdown of the computer. All the above actives
may result in the deletion or corruption of the entries in the windows
system files. This corrupted system file will lead to the missing and wrongly
linked information and files needed for the proper working of the
application.

How to easily fix Msi Api Error error?

There are two (2) ways to fix Msi Api Error Error:

Advanced Computer User Solution (manual update):

1) Start your computer and log on as an administrator.

2) Click the Start button then select All Programs, Accessories, System Tools, and then click System Restore.

3) In the new window, select «Restore my computer to an earlier time» option and then click Next.

4) Select the most recent system restore point from the «On this list, click a restore point» list, and then click Next.

5) Click Next on the confirmation window.

6) Restarts the computer when the restoration is finished.

Novice Computer User Solution (completely automated):

1) Download (Msi Api Error) repair utility.

2) Install program and click Scan button.

3) Click the Fix Errors button when scan is completed.

4) Restart your computer.

How does it work?

This tool will scan and diagnose, then repairs, your PC with patent
pending technology that fix your windows operating system registry
structure.
basic features: (repairs system freezing and rebooting issues , start-up customization , browser helper object management , program removal management , live updates , windows structure repair.)

I am getting an error when I build our product on our build machine that is running Window Server 2012; however, the same script runs without problem on my development laptop that is running Windows 7 Pro. The full error message is:

Error calling MSI API: 1627 Method: MsiDatabaseImport Table: InstallExecuteSequence. Extended Error: 1: 2216 2: C:SVNTrunkIdenticoTrueID5Prj_GTInstallSetup FilesSingleTrueIDInstall.msi 3: InstallExecuteSequence.idt 4: 27 .

Selecting to see the details provides the following information:

Advanced Installer 14.5.2 build 83143
*** Stack Trace (x86) ***

[0x753c5608] RaiseException()
[0x01bb9372] ——
[0x00a3e2cd] ——
[0x00a39915] ——
[0x00ae3e43] ——
[0x00ae28f4] ——
[0x00a1d129] ——
[0x00a23176] ——
[0x008ba345] ——
[0x00a182db] ——
[0x0063993c] ——
[0x0057e488] ——
[0x00585b7c] ——
[0x01338c80] ——
[0x00d98be1] ——
[0x7727ad2f] RtlInitializeExceptionChain()
[0x7727acfa] RtlInitializeExceptionChain()
[0x002d0000] MODULE_BASE_ADDRESS

The full output from the build is as follows:

Checking builds status
Build required.

[ SingleExeBuild ]
Building package: C:SVNTrunkIdenticoTrueID5Prj_GTInstallSetup FilesSingleTrueIDSetup.exe
Prepare build
Preparing files
Creating CAB file(s)
Signing CAB file(s)
Creating MSI database
Error calling MSI API: 1627 Method: MsiDatabaseImport Table: InstallExecuteSequence. Extended Error: 1: 2216 2: C:SVNTrunkIdenticoTrueID5Prj_GTInstallSetup FilesSingleTrueIDInstall.msi 3: InstallExecuteSequence.idt 4: 27 .
Error details

Build finished because an error was encountered.

I found several articles about the error 1627 in method MsiDatabaseImport; however, none of them references the table InstallExecuteSequence.

Here is what I have tried.

1. One of the changes in this build is the addition of a code signing certificate. The log output during the build appears to make it past the first code certificate application without error; however I read some articles about errors similar to this that involved code signing. Therefore, I disabled the code signing, and I get the same error.

2. The table InstallExecuteSequence is involved with custom actions. Therefore, I removed all custom actions from the build, and I still get the same error.

I have attached the aip file that generates this error.

Any help will be greatly appreciated.

Dave Smith


Пытаюсь установить с помощью скрипта

(Взят из документации по установке 8.3)

Но установка не проходить :(

Ошибка Msi API Error 80004005: InstallProduct,PackagePath,PropertyValues

Подскажите куда рыть?

Option Explicit

‘ изменять интерфейс пользователя
Const msiUILevelNoChange = 0
‘Использовать интерфейс пользователя, заданный по умолчанию
Const msiUILevelDefault = 1
‘Не отображать интерфейс пользователя (молчаливая установка)
Const msiUILevelNone = 2
‘Только индикатор прогресса и отображение ошибок

Const msiUILevelBasic = 3
‘Интерфейс пользователя без диалоговых сообщений

Const msiUILevelReduced = 4
‘Полный интерфейс пользователя
Const msiUILevelFull = 5
‘Если используется с msiUILevelBasic, то отображается индикатор
‘прогресса без кнопки Cancel
Const msiUILevelHideCancel = 32
‘Если используется с msiUILevelBasic, то отображается индикатор
‘прогресса без отображения любых диалогов, в т. ч. и ошибок.
Const msiUILevelProgressOnly = 64
‘Если используется с любым из перечисленных значений, инсталлятор
‘выводит сообщение в конце установки о конечном результате.
Const msiUILevelEndDialog = 128

‘***** Необходимо изменить на реальный каталог установки
Const DistrFolder=»\Server1CDistr»

Const shortcutName = «Запуск 1C Предприятия»
Dim shortcutTarget: shortcutTarget = DistrFolder & «1cestart.exe»

‘Константы для определения действия
‘ требуется установка
Const requiredInstall = 1
‘ требуется удаление
Const requiredUninstall = 0

‘Значение параметра ProductCode из файла setup.ini…
‘… для удаляемой версии
Const unInstallUID=»{9173B91C-FF56-4F25-82D1-7F68244044CD**»
‘… для устанавливаемой версии
Const InstallUID=»{4ABF35FE-3FA6-4816-AD64-CDBB6BD1B492**»

‘процедура установки или удаления указанной версии продукта
Sub installOrUninstall (ByVal productCode, ByVal msiPackage, ByVal mstTransform, ByVal requiredAction)
‘productCode – Информация о коде продукта. Находится в файле
‘ setup.ini, ключ ProductCode
‘msiPackage – Установочный пакет 1CEnterprise

‘mstTransform – файл языкового преобразования для инсталлятора
‘requiredAction – требуемое действие requiredInstall или
‘ requiredUninstall

‘Переменная для формирования дополнительных
‘ параметров инсталлятору
Dim cmdLine

On Error Resume Next

Dim installer, session

Set installer = Nothing
Set session = Nothing
Set installer = Wscript.CreateObject(«WindowsInstaller.Installer») : processError
installer.UILevel = msiUILevelBasic ‘msiUILevelNone ‘или укажите другой вариант интерфейса пользователя
‘проверка установки продукта
Set session = installer.OpenProduct(productCode)

If session Is Nothing AND requiredAction = requiredInstall Then
‘продукт не установлен, и требуется его установка

cmdLine = «TRANSFORMS=adminstallrelogon.mst;»
If Not mstTransform Is Empty Then
‘добавим указание инсталлятору разговаривать на указанном языке
cmdLine = cmdLine & mstTransform
‘можно дополнительно указать, какие компоненты нужно установить

‘cmdLine = cmdLine & » DESIGNERALLCLIENTS=1 THINCLIENT=1 WEBSERVEREXT=0 SERVER=0 CONFREPOSSERVER=0 CONVERTER77=0 SERVERCLIENT=1 LANGUAGES=RU»
End If
‘установим платформу
Set session = installer.InstallProduct(msiPackage, cmdLine): processError
‘создадим ярлык на рабочем столе
createShurtcut()

ElseIf Not session Is Nothing AND requiredAction = requiredUninstall Then
‘платформа уже установлена, и требуется ее удаление
‘обьект session может быть только один!
Set session = Nothing
‘укажем, что нужно удалить с компьютера пользователя эту версию

cmdLine = «REMOVE=ALL»
‘удалим
Set session = installer.InstallProduct(msiPackage, cmdLine): processError
End If

Set session = Nothing
Set installer = Nothing

End Sub

‘обработка ошибок
Sub processError
Dim msg
If Err = 0 Then Exit Sub
msg = Err.Source & » » & Hex(Err) & «: » & Err.Description
Wscript.Echo msg
Wscript.Quit 2
End Sub

‘создание ярлыка
Sub createShurtcut
Dim WshShell, oShellLink
Set WshShell = WScript.CreateObject(«WScript.Shell»)
Dim strDesktop: strDesktop = WshShell.SpecialFolders(«Desktop»)
Set oShellLink = WshShell.CreateShortcut(strDesktop & «» & shortcutName & «.lnk»)
oShellLink.TargetPath = shortcutTarget
oShellLink.WindowStyle = 1
oShellLink.Description = shortcutName
oShellLink.Save
Set oShellLink = Nothing
Set WshShell = Nothing
End Sub

‘удалим версию 260
installOrUninstall unInstallUID, DistrFolder + «8.2.9.260setup1CEnterprise 8.2.msi», «1049.mst», requiredUninstall
‘установим версию 356
installOrUninstall InstallUID, DistrFolder + «8.3.3.641setup1CEnterprise 8.2.msi», «1049.mst», requiredInstall

Понравилась статья? Поделить с друзьями:
  • Msi afterburner как изменить шрифт мониторинга
  • Msi afterburner как изменить частоту памяти
  • Msi afterburner как изменить цвет мониторинга
  • Msi afterburner как изменить скорость кулера процессора
  • Msi afterburner как изменить интерфейс