"The specified account already exists" error: Step-by-step solution. Error “the specified account already exists”: Step-by-step solution Installation 1c the specified account already exists

Executing the wix package from the package displays "error 1316: specified Account already exists" during update. As a program Windows installations will output this error code? I'm afraid there is no documentation about this.

We previously released a product consisting of a single msi package and now we are preparing an update consisting of a wix package containing new version this msi package. The product code and file name have not changed between the original msi package and the update.

Change: msi package does not yet support updating. When the user needs to update (when it will be a major update, a minor update or a small update), he must first manually uninstall the previous package...

Edit 2: I just removed the references to using the extension to compile and the installer seems to work fine... I still need to test it fully.

4 answers

Updating an MSI requires the MSI to have a new ProductCode, a ProductVersion increment (in the first three fields), and the same UpgradeCode. So it's not clear to me that you actually get an upgrade based on what it thinks you're drinking. It can't update because you have the same ProductCode. (The MajorUpgrade item in the MSI is required to perform the appropriate upgrade.) So there's some doubt as to whether you're actually getting a full update. If you intend to replace your installed MSI with a full upgrade and a higher version of the product, use the MajorUpgrade function.

Therefore Burn may decide to do an in-place upgrade by reinstalling MSI file(and this is more like a patch than an update) and this is relevant because you don't say if you have any custom actions or WiX usage features (they are still custom actions) that create a user account. If you do this, then the most likely reason for your error is that Burn reinstalled a new MSI as an update, reinstalling the MSI file, and some user actions just started again, and yes, that user still exists because there was no actual deletion which will remove it. Or the ProductVersion of your MSI is the same and you have a maintenance mode repair so the custom action will start again.

I'd get a detailed update log to see exactly what's going on.

There's a lot of guesswork there because you say you want an update, but your MSI isn't built to actually update, and you don't say if you have WiX, which uses a user to create a user account. You also don't say if you've increased the ProductVersion of your new MSI, so again this leads to more guesswork as to what Burn might do. The detailed log will indicate whether it is a custom action issue or something else, what update (if any) you are making.

I had the same problem and since win10 doesn't allow you to run the fixit tool from the internet, I did the following hack to remove Asus Smart Gesture on my Windows laptop 10.

1. You need to spoof the MS site, thinking your computer is not Win10. I installed a Chrome add-on that allowed me to change the user agent of the chrome browser to think I was IE9 and previous version Windows: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)

2. This allows you to see the fixit button and download the portable version of the tool (in case you need to use it for non-network clients)

3. Download and extract to my downloads library in a folder named fixitp.

4.If I run the exe directly I get some an unpleasant mistake script. What I did to get around this was to go to the Resources folder and then to the Troubleshooting folder.

5. I ran Program_Install_and_Uninstall.diagcab which launched and allowed me to uninstall successfully Asus program SmartGesture.

6. Then I installed the new version of ASUS Smart Gesture from their website.

I suspect that any installed application, which you cannot delete, may be resolved by the same process - just not running in any other that is included.

To completely remove the 1C Enterprise program of any version from your computer, I advise you to first delete the information database. Although if you know exactly where the database is located, the order does not matter.

Deleting the 1C Enterprise information database

Let me make a reservation right away that this article discusses deleting only the file version of the database. If the database is server-based, you need to contact the server administrator.

To determine where the database is located, you need to run the 1C program. After launch, the following window will appear with a list of your infobases:

Below is the path to the database directory (I have highlighted the line with a red rectangle). This is the directory that needs to be removed from hard drive(only the last directory in this path, in my example this is “Temp”, which is located in the “1C Bases” directory).

Get 267 video lessons on 1C for free:

Open Explorer and look for the directory we need:

Click on it right click mouse and select “Delete”.

We do the same with other information bases.

If the database is located on another computer (the path will look something like this: “File=\\ALEXPC\1C Databases\Temp”), it is better to go to that computer and delete it there. If your knowledge allows, you can try to remove it from this computer as well.

Removing the 1C Enterprise platform

Platform 1C: “Enterprise” is removed in the same way as a regular program, through the “Control Panel”.

Go to the “Control Panel”. Depending on the Windows versions The panel can be found by clicking either the right or left mouse button on the “Start” button. On Windows 10 you need to right-click:

PowerShell must be installed for the script to work. This program comes bundled with all modern Windows systems, but in Windows XP you will have to install PowerShell separately.

All parameters of the script can be set by editing the file, or they can be passed as the values ​​of the corresponding keys. Let's look at what keys are available and what values ​​need to be passed to them.

Key "dd" (from Distribution Directory), accepts any windows path format, i.e. paths like “C:\Windows” or “\\Server\1CDistr”. Distributions of the 1C platform should be located along the specified path, and each of the distributions should be in its own folder with a version number or with the version number and bitness of the 1C Enterprise platform, for example “8.3.5.1111” or “8.3.9.1818-32” or “8.3.9.1818 -64". Bit depth suffixes must be used if there are computers with operating systems different bits and you want to install a 64-bit platform on a 64-bit system. The specified folder, and all subfolders with platform distributions, must be readable by the user on whose behalf the script will run.

The "dl" key (from Directory Logs), similar to the "dd" key, accepts any windows path format. Script execution logs will be recorded in this folder. The names of the log files correspond to the computer name and are added each time the script is launched. The specified folder must be writable by the user on whose behalf the script will run. If the specified path is not available or there is no recording capability, then all script actions will be written to the file “1C8InstallAndUninstall.log” located in local folder user (approximate path “C:\Users\Vasa\AppData\Local\”).

The "ip" key (from Install Parameters) is responsible for the installation parameters when running the script. The key can take one of the following values:

  • “no” - do not install
  • “last” - install the latest platform found in the distribution folder
  • “8.3.5.1111” - version number of the specific platform that needs to be installed

The "dp" (from Delet Parameters) key is responsible for the deletion parameters when running the script. The key can take one of the following values:

  • “no” - do not delete
  • “ael” (from all except last) - remove all platforms found on the computer that match all platforms found in the distribution folder, except for the last platform. Important! This key will delete only those platforms whose versions are available in the folder with platform distribution kits; if some version is installed on the computer, but it is not in the folder with distribution kits, then it will not be deleted.
  • “8.3.5.1111” - version number of the specific platform that needs to be removed
  • “all” - delete all versions of the 1C platform on the computer. This meaning is overwhelming and extensive. Overwhelming, because for the script to work with this value, it is necessary to pass the path for recording logs, or you can not even pass it, all values ​​of the other keys will be ignored. Extensive, because all products on the computer that even vaguely resemble the 1C platform will be deleted.

The "iod" key (from Installation Options Distribution) is responsible for the 1C platform components that will be installed. The key must be passed a value of the form “DESIGNERALLCLIENTS=1 THINCLIENT=1 THINCLIENTFILE=1”, in which you can change 1 to 0 or back, depending on which parts of the platform you want to install. If you pass any other value to this key that is not similar to the line above, then all components for the system to operate in client mode will be installed.

  • “DESIGNERALLCLIENTS” - main client and configurator
  • “THINCLIENT” - thin client for client-server operation
  • “THINCLIENTFILE” - thin client with the ability to work with file infobases

How to install, update or remove the 1C Platform if you have many computers, are too lazy to run to each one, and don’t have a domain?

The bad news: you'll have to run around and configure each computer to run the task scheduler

The good news is that you only have to do this once.

First, let's prepare:

  1. We create 2 public folders, one with read permissions for everyone, and the other with write permissions for everyone. Be sure to create 2 independent folders, otherwise everything can end very badly.
  2. In a folder with “read-only” rights for everyone, we put folders with distributions, each folder should be named by the version number of the distribution that is located in it. Here we also put the script and the bat file that runs the script.

A little digression! Why do we need a bat file to run a PowerShell script? Because using the bat file we kill two birds with one stone:

  • By default, the Windows system prohibits the launch of any PowerShell script for security reasons, so the bat file will first allow the script to run, and then prohibit it again after it runs.
  • IN bat file you can change the script launch parameters without editing the script file itself by changing the default values ​​​​set in it.

Now let's start setting up local computers users. In the absence of a domain, it is assumed that all users work under local accounts with “Users” rights, and for administrative actions there is an account with “Administrators” rights.


How to install, update or remove the 1C Platform if you have a domain?

Everything couldn't be simpler


Note

  • The functionality of the script has been tested on the following systems: Windows 7 (x86, x64), Windows 8.1 (x86, x64), Windows 10 (x86, x64) with all mandatory and optional updates for 2016-11-10.
  • If you are not satisfied with the delay when the script is executed in the domain, then you need to set the “Configure Logon Script Delay” parameter to “0”. The setting can be found: Computer Configuration > Administrative Templates > System > Group Policy > Configure Logon Script Delay (Computer Configuration > Policies > Administrative Templates > System > Group Policy> Configure entry script delay). Thank you very much for this information.

upd:2015-12-07

  1. The way to traverse directories with the platform has been completely rewritten. This part of the code had the most complaints; this part did not work for everyone, and for some it worked incorrectly. Now everything works correctly, because... Only the simplest constructions are used to traverse the distribution directory.
  2. Part of the search for the latest (oldest) distribution in folders with distributions has been completely rewritten. Now this is normal, understandable code, and not the horror that was before.
  3. Parts of the code have changed, now the script tries to install the platform first, and then everything else.
  4. Many different checks have been added to avoid strange behavior or unnecessary attempts to install the platform. The log file now contains more information about the script's operation.

upd:2016-11-21

  1. The logic of the script has been changed. Now the installation of the platform is checked and if there is no installed platform on client computer the script stops working.
  2. Added functionality that allows you to install a 64-bit platform on 64-bit systems on a network with computers of different bit rates. For this functionality to work, folders with platforms must be of the form “Х.Х.Х.Х-32” and “Х.Х.Х.Х-64”.

. Yesterday, with the help of the installer, I finally updated my eight to the newfangled ten on all machines. However, I encountered one significant problem.

The fact is that the Classic Shell program, which returns a more convenient view of the Start menu, suddenly refused to work; when I tried to reinstall it, the error “the specified account already exists” began to appear. The same message appeared when I tried to delete it.

After a long dance with a tambourine, about the same as in the case of the error, I suddenly found a simple solution.

Solution

So, if your channel allows you to watch videos, then you can follow my steps in eliminating the “the specified account already exists” problem.

If your Internet is rather weak, then here’s what you need to do:

  1. Delete the folder with installed program, for this we go to C:\Program Files if our ill-fated program is not there, then go to C:\Program Files (X86).
  2. Open it, go to the Important Registry Sections section, enter the name of the program in the search box at the top, then go through all the tabs, and if any entries appear, delete them.

Attention!!! Do not delete anything unnecessary, only what is relevant to the program.

  1. We go to the “Cleaning the Registry” section and search for problems, which we then fix automatically.

We are happy about the working installer or the remote program. The error “the specified account already exists” will no longer bother you.

Subscribe to my channel on YouTube! There are many more useful videos waiting for you!