Thread: BUG #18673: Uninstallation of second instance

BUG #18673: Uninstallation of second instance

From
PG Bug reporting form
Date:
The following bug has been logged on the website:

Bug reference:      18673
Logged by:          Adarsha Nadig S
Email address:      adarshanadig@live.com
PostgreSQL version: 16.4
Operating system:   Window 11
Description:

Hi, 

Postgres has been bundled using Wix installer packages with other
application . Based on the condition, if Postgres is already installed, a
new instance will be created in the Wix Installer's custom action.

using below command
<Postgres installation path>\16\bin> initdb.exe $"-D \"{pgDataPath}\"  -U
postgres -E 'UTF-8'" using command line tool. 

once its succeeded will register the service using below command line 
<Postgres installation path>\16\bin> g_ctl.exe register -N {pgServiceName}
-D \"{pgDataPath}\" -o \"-p {pgPortNumber}\""

But uninstallation of the main application will fail without any errors or
logs.  We only see the following logs in EventViewer.
Windows Installer installed the product. Product Name: {application name}.
Product Version: {application version}. Product Language: 1033.
Manufacturer: {Manufacturer Name}. Installation success or error status:
1603.