1s 8.3 silent installation. Installing and updating "1C Enterprise v8" using group policies (GPO)

When installing or updating a 1C Enterprise program, many administrators are faced with the impossibility of correctly performing these tasks using group policies. The most common error is 1720:

Product: 1C:Enterprise 8.1 - 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 customDetectPrevVersion script error -2147467259, Msi API Error: ProductInfo,Product,Attribute Line 7, Column 5

This error is caused by incorrect operation of the program update mechanism, that is, we cannot install a fresh build on top of the installed previous version.

To perform the update, you must manually edit the installation msi file before creating the group policy. To do this, we use Microsoft's free msi file editing tool called Orca. This utility is part of the Microsoft Windows Software Development Kit (SDK), and can also be downloaded separately.

  1. Download and install Orca;
  2. Open the file with the program 1CEnterprise 8.1.msi
  3. Find the section " CustomAction" and in it the parameter " customDetectPrevVersion". Delete this parameter and save the changes;
  4. We copy the distribution that is currently installed (if we are updating the build) and the new version to a public network folder 1C with the msi file we modified. We copy, naturally, to different folders

Now we need to create a group policy and create in the section " Installing programs» two installation packages - old (for example 8.1.11) and new (8.1.13) versions (Fig. 2).


Then, in the properties of the installation package for the new version of 1C, we need to indicate that this package updates the old version 8.1.11 (Fig. 3). After assigning a policy, an additional restart of the computer may be required, since the removal of the old and installation of the new software versions are not synchronized.

A bad specialist is the one who has to run to all the workplaces and work with his feet. You need to work with your head :)

You can install the platform on each client computer manually.

But then the administrator will have to go through all the computers sequentially.
If there are 2-3 computers, then this is not a problem. But if there are a dozen or more computers, then this process may take a long time.

Updating the platform on client computers will also be a challenge.

To automate this process, you can use the ability to install the platform on a large number of computers through a shared network directory.

This method can be used when client computers have Windows installed.
The administrator places platform distribution kits and a set of configuration files in a common network directory.
To update the platform, you only need to place the new platform distribution in the common directory.

Mass installation and update of 1C: 9 videos and PDF

We invite you to look at more detailed materials:

Shared directory structure

This video describes how a network directory with platform distributions should be organized so that it can be used for installation on a large number of computers.
It is explained in what form the platform distributions should be uploaded and what configuration files are needed.

Preparing a shared directory on the server

This video discusses in practice how to fill out a network directory with platform distributions. The platform distribution is uploaded and the configuration launch is edited. Shows how to find the launcher for the desired release.

Actions on the client computer

This video discusses the features of installing the platform from a shared network directory on a client computer.

Platform update

This video explains how to correctly place the distribution kit of the new release platform in a common network directory. It describes what actions need to be performed on the client computer for the platform to be updated.

Configuration file defining the location of the shared network directory

This video explains where the network share settings are stored on the client computer, which should be accessed to check for a platform update.

Access rights when installing the platform through a shared network directory

This video explains the most common error that occurs when working with a network shared directory.

Working as a user without administrative rights

This video describes how you can install the platform on a client computer for a user without administrative rights. Attention is drawn to the disadvantages of this method.

Potential security issues when using the AlwaysInstallElevated policy

This video explains why the AlwaysInstallElevated policy is a serious problem for computer security and why you should avoid using it in practice if possible.

And the last day of starting discounts.

This course will allow you to solve ALL problems related to the deployment and support of information systems on 1C.

Here are some topics from the course:

  • Installing and updating the 1C:Enterprise 8 platform – manual and automatic, for Windows and Linux
  • Automatic start to perform routine operations
  • Updating configurations from user mode
  • Updating non-standard configurations. How to avoid problems when updating modified standard configurations
  • Create your own delivery cfu files
  • BSP tools: external forms, processing of filling out documents, etc.
  • Usage free DBMS PostgreSQL
  • Installation and launch server cluster 1C:Enterprise 8
  • Administration Utility for setting up a cluster and worker servers
  • Settings RLS using the example of UPP 1.3 and ERP 2
  • What to do, if data in information security is corrupted
  • Settings data exchanges between configurations
  • Organization group development
  • Setup and use hardware protection keys
  • 1C software licenses: installation and binding to external equipment

In any case, at some point you will have to deploy 1C, configure reservations, access rights, various launch modes, test the integrity of the databases, ensure the operation of servers, etc.

And it’s better to do it right right away.

So that it doesn't happen later “...! Well what the...! Yours...!” – and other expressions of regret :)

Good afternoon

Inspired by a recent post - “Managing a list of 1C 8.2 databases using Active Directory”, I will share an alternative solution to this problem:

  • without using scripts
  • without editing 1C files (ibases.v8i, 1CEStart.cfg)
The automation tasks are similar: there are many 1C databases and an AD directory; it is necessary for a user in a certain AD group to be given the opportunity to launch a certain 1C database.

This method is convenient only if the user works with a small number of 1C databases (from one to ten), since it involves placing a separate shortcut on the desktop for each database.

Step 1.

Let's create a group in AD that includes a list of computers on which the 1C client is installed - it will include terminal farm servers, as well as computers on which the 1C client is installed. In fact, this may not be necessary, but we will use this group as an additional filter:

Step 2.

Let's create groups in AD for 1C database users:

You may notice that a separate group is created to launch the database with other parameters (in this case in thick client mode).

Step 3.

Create a group policy that controls user shortcuts:

Unfortunately, for 1C there is not yet a client version for the x64 platform, so the default location of the client depends on the bitness of the platform. For version 1C 8.3 on the 32-bit version of Windows, the client is installed in %ProgramFiles%\1cv8\common\1cestart.exe, and on 64-bit Windows - %ProgramFiles(x86)%\1cv8\common\1cestart.exe

Now let's take a closer look at the creation of each element.

On the “General” tab, set the parameters for connecting to the database and the location of the shortcut (in this case, the desktop). An example of creating a shortcut for the Win x64 platform

A small digression for those who are just planning to migrate from the 1C 8.2 platform to 8.3:

In the “General Settings” tab, let’s target our shortcut to the previously created AD groups:

Setting for Win x86 platform:

And for Win x64:

Adding a new database involves creating a new AD group, copying the shortcut to the GPO, and editing the connection to the database.

P.S. If you have employees who independently place shortcuts on the desktop, then it is better not to use this method of accessing databases.

Thank you for your attention, I hope this post will be useful to you.

Tags: 1c, ad, gpo, links

So, what methods of deploying our software does 1C offer us?

1. Installation using logon script

2. Installation by placing it in a shared network directory

3. Installation using group policies

We reject the first two methods, because In this article we will look at installation using group policies (GPO).

The information on the 1C:ITS pages that the manufacturer offers us about deploying its product using group policies is very sparse:

When installing via group policies, to specify the installation language, you must specify the appropriate language transformation file. The file names correspond to the Microsoft Windows decimal LCID representation (with the .mst extension). The transformation file for the Russian language is called 1049.mst.

In addition, you additionally need to specify the transformation file adminstallrestart.mst. In this case, the 1C:Enterprise system, if the client and server versions do not match, will prompt you to restart the computer to install the new version. The administrator must ensure that the new distribution has already been added in group policies.

Using group policies, you can install several versions of 1C:Enterprise.

To install a new version, you must create a new installation in Group Policy.

1049.mst is obvious, but adminstallrestart.mst is not very useful. Therefore, we will create our own transformation file.
First of all, I would like to understand how we can indicate to the installer which components of the product we want to install and which we do not? Despite the fact that the documentation from 1c is generally quite extensive and detailed, for some reason not a word is said about this. But the logon script, which we rejected at the very beginning, will help us get out of this situation. In the script we can see the following lines:

CmdLine = cmdLine & " DESIGNERALLCLIENTS=1 THINCLIENT=1 WEBSERVEREXT=0 SERVER=0 CONFREPOSSERVER=0 CONVERTER77=0 SERVERCLIENT=1 LANGUAGES=RU"

Where:
DESIGNERALLCLIENTS – all clients and configurator.
THINCLIENT is a thin client for client-server operation.
THINCLIENTFILE – thin client with the ability to work with file infobases.
SERVER – 1C:Enterprise server. If the installer is run from the launcher, the server will be installed as an application.
WEBSERVEREXT – extension components for the web server.
CONFREPOSSERVER – 1C:Enterprise configuration storage server.
SERVERCLIENT – components for administering a cluster of 1C:Enterprise servers.
CONVERTER77 is a converter of information bases from version 1C:Enterprise 7.7.
LANGUAGES – list of interface languages ​​for installation. If several languages ​​are specified, they are listed separated by “,”.

This line of the script generates a command line that will be sent to the msiexec installer for processing.

To create a transformation file we need the “Orca” editor. (http://www.technipages.com/download-orca-msi-editor)
And so, after installation, we launch the program. “File” – “Open”, and select “1CEnterprise 8.msi” from the 1C distribution kit. A list of tables appeared on the left side of the program, and table values ​​appeared on the right. Because 1C itself does not recommend changing the msi package, so we go to the “Transform” – “New Transform” menu.

You need to go to the “Property” table. On the right side we look for the line “DEFLANGUAGE”, with the value “Auto”. The value must be changed to “RU” (Without quotes, of course).

For most users, you need to install a minimum of components, these are Thin Client, Thick Client, and language (for example Russian)
Therefore, let's create new fields (Ctrl+R), where you need to specify a name and value.
DESIGNERALLCLIENTS = 1
THINCLIENT = 1
THINCLIENTFILE = 1
SERVER = 0
WEBSERVEREXT = 0
CONFREPOSSERVER = 0
SERVERCLIENT = 0
CONVERTER77 = 0
LANGUAGES = RU

Those. It should look like in the pictures:

Next, go to the “Transform” menu – “Generate Transform...”. Save the file, maybe in the folder with the distribution, for example Client.mst
This completes the generation of the transformation file.
To check the installation, you need to open the “cmd” program. Go to the distribution folder. And run the command:
setup.exe /S TRANSFORMS=Client.mst TRANSFORMS =1049.mst
or
msiexec /i "<каталог с дистрибутивом >"TRANSFORMS="<каталог с дистрибутивом >"\Client.mst TRANSFORMS="<каталог с дистрибутивом >"\1049.mst/passive

In the first command, the “/S” parameter and in the second command, the “/passive” parameter means that the installation will take place in the background.

After some time you can check. Thick client, Thin client and Russian interface should be installed.

Next, you need to create a new installation in domain group policies.
You also need to create a shared directory on your network where the installation files will be stored. Check that domain users have read permissions from this directory.
Open the GP editor. We create a new policy. Open it for editing. Go to the section “Computer Configuration” - “Installing Programs”.

Let's create a new package. We select the file 1CEnterprise 8.2.msi, the path to the file must be specified through the network environment \\SRV\…..\1CEnterprise 8.msi, we select the deployment method - a special one, so that modifications can be made.

After creating the package, the package properties window will open.
You need to go to the “Modifications” tab and add a transformation file for the Russian language called 1049.mst and a transformation file Client.mst.

After you click “OK”, it will not be possible to add modification files.
The package is ready. It is worth noting that the package must be applied to a group of computers; to do this, you need to create such a group in AD and place the computers for which installation is intended there.

Near the rector July 26, 2014 at 01:09 pm

Connecting 1C 8 databases using AD/GPO

  • System administration

Good afternoon

Inspired by a recent post, I’ll share an alternative solution to this problem:

  • without using scripts
  • without editing 1C files (ibases.v8i, 1CEStart.cfg)
The automation tasks are similar: there are many 1C databases and an AD directory; it is necessary for a user in a certain AD group to be given the opportunity to launch a certain 1C database.

This method is convenient only if the user works with a small number of 1C databases (from one to ten), since it involves placing a separate shortcut on the desktop for each database.

Step 1.

Let's create a group in AD that includes a list of computers on which the 1C client is installed - it will include terminal farm servers, as well as computers on which the 1C client is installed. In fact, this may not be necessary, but we will use this group as an additional filter:

Step 2.

Let's create groups in AD for 1C database users:

You may notice that a separate group is created to launch the database with other parameters (in this case in thick client mode).

Step 3.

Create a group policy that controls user shortcuts:

Unfortunately, for 1C there is not yet a client version for the x64 platform, so the default location of the client depends on the bitness of the platform. For version 1C 8.3 on the 32-bit version of Windows, the client is installed in %ProgramFiles%\1cv8\common\1cestart.exe, and on 64-bit Windows - %ProgramFiles(x86)%\1cv8\common\1cestart.exe

Now let's take a closer look at the creation of each element.

On the “General” tab, set the parameters for connecting to the database and the location of the shortcut (in this case, the desktop). An example of creating a shortcut for the Win x64 platform

A small digression for those who are just planning to migrate from the 1C 8.2 platform to 8.3:

In the “General Settings” tab, let’s target our shortcut to the previously created AD groups:

Setting for Win x86 platform:

And for Win x64:

Adding a new database involves creating a new AD group, copying the shortcut to the GPO, and editing the connection to the database.

P.S. If you have employees who independently place shortcuts on the desktop, then it is better not to use this method of accessing databases.

Thank you for your attention, I hope this post will be useful to you.

Tags: 1c, ad, gpo, links