Installer gives error 2732: Directory Manager is not initialized

I have an msi installer that works fine. I added an external merge module. There were some directory merge errors during compilation. I deleted the directories causing the error from the directory table of the merge module.

I get an error message:

MSI Error 2732: Directory Manager is not initialized.

Help solve the problem.

+4
source share
4 answers

The Windows Installer error message in the documentation for error 2732 says:

"The directory manager is responsible for determining the destination and source paths. It is initialized during the costing actions (CostInitialize action, FileCost action and CostFinalize action). A standard action or custom action called a function that requires the directory manager before initializing the directory manager. This action should be ordered after costing actions. "

+5
source

One possibility is that you cannot put a backslash (\) after the directory path in the action of the specified directory or the custom action must be CostInitialize

0
source

As Mike Dimmick said, get the CostIntialize sequence number from the "InstallUISequence" table. Now go to the InstallExecuteSequence table and find your custom action and update the sequence value to the CostIntialize value.

It worked for me. You have to check your business.

0
source

Another possible place to view is the installation log. Try installing the package using logging:

msiexec /i <package.msi> /l*v 

Checking the log, we look for a string containing " Return Value 3 ". A failed custom action will be displayed right above.

0
source

Source: https://habr.com/ru/post/1277213/


All Articles