Contacts

Windows Installer Error - Solutions. Creating msi packages and installing any software using Windows group policies How to run a file with the .msi extension

Some programs and drivers in Windows should be installed only with administrator rights. In the case of EXE files, the option to install as administrator is present in the context menu, which is invoked by clicking on the file with the right mouse button. There is no such option for MSI packages, but it can be added through the Registry Editor.

Instructions

Open the Run dialog from the start menu or by pressing the Win + R keyboard shortcut. In the window that opens, write regedit and press Enter. The Registry Editor will start. Confirmation of starting the editor may be required depending on your User Account Control settings.

Go to the HKEY_CLASSES_ROOT \ Msi.Package \ shell branch. Right-click on "shell" and in the menu that opens, select the option to create a new partition.

A subsection will be added to the "shell" section. Rename it to "runas" (no quotes needed).

In the window on the right, double-click the "Default" key with the left mouse button or right-click once and select "Change ..." In the empty value field, enter "Run as Administrator". Confirm the changes by clicking the OK button.

Now right click on "runas" and select the create partition option again. Create a subkey named "command" (without quotes).

Edit the "Default" key by entering the command "msiexec / i"% 1 "" in the value field (without the herringbone quotes, but with quotes for% 1). Click OK.

If you have a computer installed antivirus software can scan all files on the computer, as well as each file separately... You can scan any file by right-clicking on the file and selecting the appropriate option to scan the file for viruses.

For example, in this figure, my-file.msi file, then you need to right-click on this file, and select the option from the file menu "Scan with AVG"... Selecting this option will open AVG Antivirus which will check of this file for viruses.


Sometimes an error can result from incorrect software installation, which may be due to a problem encountered during the installation process. It may interfere with your operating system link your MSI file to the correct application software tool influencing the so-called "File extension associations".

Sometimes simple reinstalling 7-Zip might solve your problem by linking MSI with 7-Zip correctly. In other cases, problems with file associations may result from poor software programming developer and you may need to contact the developer for further assistance.


Advice: Try upgrading 7-Zip to latest version to make sure the latest patches and updates are installed.


It may seem too obvious, but often the MSI file itself may be causing the problem... If you received the file as an attachment Email or downloaded it from a website and the download process was interrupted (e.g. power outage or other reason), the file may be damaged... If possible, try to get new copy MSI file and try opening it again.


Carefully: A damaged file may result in collateral damage to a previous or existing one. malware on your PC, so it is very important that you have an updated antivirus running on your PC at all times.


If your MSI file related to the hardware on your computer to open the file you may need update device drivers related to this equipment.

This problem usually associated with types of media files that depend on the successful opening of the hardware inside the computer, for example, sound card or video card... For example, if you are trying to open an audio file but cannot open it, you may need to update sound card drivers.


Advice: If, when you try to open the MSI file, you get SYS file related error message, the problem could probably be related to damaged or outdated device drivers that need to be updated. This process can be alleviated by using driver update software such as DriverDoc.


If the steps did not solve the problem and you are still having problems opening MSI files, it could be due to lack of available system resources ... Some versions of MSI files may require significant resources (e.g. memory / RAM, computing power) to open properly on your computer. This problem occurs quite often if you are using an old enough computer Hardware and at the same time much newer operating system.

This problem can occur when the computer has a hard time coping with the task, because the operating system (and other services running in background) can consume too many resources to open the MSI file... Try to close all applications on your PC before opening Windows Installer Package. By freeing up all the available resources on your computer, you will provide a better environment for trying to open the MSI file.


If you completed all the steps above and your MSI file still won't open, you might need to run equipment upgrade... In most cases, even with older hardware versions, the processing power may still be more than adequate for most custom applications (unless you're doing a lot of CPU-intensive work like 3D rendering, financial / scientific modeling, or heavy multimedia work) ... In this way, it is likely that your computer does not have enough memory(more commonly called "RAM", or RAM) to perform the task of opening a file.

Errors when installing applications from files with the .msi extension is one of the manifestations of malfunctions windows services Installer (in the Russian version - Windows installer). Users of all versions of this OS, with the exception of the earliest, encounter a similar phenomenon. So far, the problem with the installer is one of common reasons, according to which users decide to reinstall the system. Let's try to figure out how to avoid this. The reason why Windows Installer is not working may be the following:

  • viral infection, and removing the virus does not always solve the problem;
  • incorrect installation Windows updates;
  • malfunction of security software, when instead of blocking one suspicious msi file, the installation service is blocked entirely;
  • changes in security policies on the computer;
  • damage system files or registry for reasons not related to viruses (removal of installer components, unqualified editing of the registry, "crooked" software, malfunction hard disk etc.).

Checking the integrity of the Windows Installer structure

Windows Installer is represented by the following components:
  • file C: \ Windows \ System32 \ Msiexec.exe - directly by the installer application itself;
  • file C: \ Windows \ System32 \ msi.dll - the Windows library Installer;
  • by the Msiserver service, whose settings are stored in a registry key.
Before diagnostics, it is important to make sure that both of these files are present in the system, that the above section is in the registry and that its parameters have normal values(the values ​​can be viewed in the registry of a similar, workable system). Also open the list of services (press Windows + R and enter the command services.msc in the "Open" line of the "Run" application). Search for "Windows Installer" and make sure it starts. If the files are missing, copy them from another system of the same version or from the installation disc. If missing or damaged partition registry - also transfer it from the production system. To do this, on a working computer, start the registry editor (C: \ Windows \ Regedt.exe) and find the above-named section. Expand the context menu of the msiserver folder by right-clicking and click the "Export" item. Save the file in .reg format and transfer it to the problem machine. Double-click this file and confirm your consent to add data to the registry. Reboot your computer. If the Msiserver service still won't start, check if the RPC (Remote Procedure Call) service it depends on is running. You can re-register the installer files and restart the service using a set of special commands in the command line. For convenience, you can create a batch file: paste the set of actions into notepad and save as with the .bat extension. To run the file, just double-click on it. To make the changes take effect, click on the desktop and press F5.

Checking security settings and access rights

Windows Installer may also not work due to the fact that it is blocked by security software or the operating system does not have the necessary rights. First, let's figure out the software. If you have an antivirus installed, temporarily disable it. Each product has its own disabling methods, but most often this is done through the context menu of the antivirus icon in the system tray. Now let's get into the rights. Open the context menu of Msiexec.exe and expand its properties. Look at the list of groups and users on the Security tab. Among them must be "System" and the service "Trustedinstaller", and the latter must have full access to the file and be its owner. The system must have "read" and "read and execute" permissions. The Trustedinstaller service first appeared in Windows Vista, therefore, in Windows XP, full access must be granted to the system. Everything written below applies to versions released after XP. To check who the owner of Msiexec.exe is, click the Advanced button on the same tab. In the next window, expand the "Owner" tab. Take ownership of the Trustedinstaller service if specified otherwise. If it's not in the Change Owner To list, click the Change button followed by Other Users and Groups. Enter Trustedinstaller in the "Enter names ..." field, click "Check Names" and OK. Return to the previous window. On the Effective Permissions tab, assign the required rights to the Trustedinstaller and the system. The msi.dll library should have exactly the same security settings. Now let's check if there are any restrictions for the "System" user to access the following:
  • system drive (usually drive C);
  • temporary folders (these are C: \ Windows \ Temp and C: \ Users \ Current_user \ AppData \ Temp);
  • folder C: \ Config.Msi;
  • the folder where the msi file from which you are trying to install the program is located.
The system must be given full access to all these objects. This is done in the same way as we discussed above. After these operations, in most cases, the problem with the installer is successfully resolved. If our advice did not help you, the cause of the failure lies in something else and specialists should already deal with it.

Introduction

Our installers for Windows contain full package installation of the client part of the program (MSI) (built on the basis of Windows Installer v2.0). Instructions for network installation assumes that the user is familiar with the basics of Windows Installer, in particular deployment MSI files... This package can be used with any operating room. Windows system that supports Windows Installer v2.0.

Installation on a network server

  1. Double click on the resulting file ( Yenka_Setup_ (MSI) .exe)
  2. Install this package to the folder general access to your programs.
  3. Attention : The program must be activated BEFORE deploying the package on the network. To do this, run "Yenka.exe" from the folder where you installed the program (<путь установки>\ program files \ Yenka \ Software \ Yenka.exe), and follow the activation instructions.

Installation

Installing an MSI package using the command line

  1. In the command box, enter the line:
    msiexec / i "<путь к MSI файлу>\ YK.msi "
    where:<путь к MSI файлу>this is the file path Windows package Installer. For example, a line might look like this: msiexec / i "C: \ Program Files \ Yenka \ YK.msi"
  2. Press the ENTER key
    Attention: Windows Service Installer allows you to install in a "stealth" mode using the "/ q" switch. For instance: msiexec / i "C: \ Program Files \ Yenka \ YK.msi" / q... To show the progress bar of the installation, you can use the " / qb".

Uninstalling an MSI Package Using the Command Line

  1. From the "Start" menu, select the "Run ..."
  2. In the command box, enter the line:
    msiexec / x "<путь к MSI файлу>\ YK.msi "
    where:<путь к MSI файлу>this is the path to the Windows Installer package file
  3. Press the ENTER key

The windows installer error is one of the most common pop-up problems encountered by users of the Windows operating system.

The error can appear regardless of your OS version.

Reasons for the error

You can scan the OS using the Sfc / scannow command. You need to enter it in the command line window.

Run command line can also be done in two other ways:

  • Start -> All Programs -> Accessories -> Command Prompt.
  • Start -> Run and enter the program name cmd.exe

In a few minutes you will be provided with detailed information about OS disks, corrupted files, problems with services and other system programs.

The command line will not only find damaged and damaged files, but also replace them with workable ones.

After scanning, close Command Prompt and reboot your Personal Computer or laptop. Try running the installation process of any executable file.

Microsoft also offers users automatic utility, which is able to solve the problem of the installer.

Go to the official website of the company https://support.microsoft.com/en-us/mats/program_install_and_uninstall

In the window that opens, click on the "Run now" button. The utility will restore the correct configuration of the installer.

It should be noted that the utility does not work with the eighth version of the operating system.

Configuring installer access to msi files

An installation problem may be caused by the installer not having access to the .msi files. The user can solve this problem on his own.

Follow the instructions below:

  • Find your installation file and right-click on it;
  • Select the properties window;
  • Go to the security settings tab;
  • In the group or user text box, check to see if there is a user named "system". If it is not there, you need to add the user manually;

  • To add a new user, click on the Modify button and then on the Add button;
  • In the text box for the name of the object to select, write the word "system" (without the quotes). If you are using an English version of the operating system, enter the word System;
  • The entered word should instantly become underlined, as shown in the figure below;

  • Check the box next to full access and now click on the OK button;

The installer will now be able to access the executable file. The installation should complete without problems.

Note that in some cases, blocking access to installation file can antivirus software.

To solve this problem, you need to go to the operating system under account administrator, disable the antivirus and enable compatibility with other OS versions in the antivirus properties settings, as shown in the figure below.

Windows Installer Error - Solutions



Did you like the article? Share it