BUG #18012: Installer fails to run .bat files when they are registered to Notepad++

Started by PG Bug reporting formalmost 3 years ago4 messagesbugs
Jump to latest
#1PG Bug reporting form
noreply@postgresql.org

The following bug has been logged on the website:

Bug reference: 18012
Logged by: Matt Feemster
Email address: matt.feemster@gmail.com
PostgreSQL version: 15.3
Operating system: Windows 10 Pro
Description:

When running the installer it proceeds until just about the end, then hangs
indefinitely trying to initialize the database.
I noticed that when this happened, Notepad++ would open two .bat temporary
batch files.
I realized that the .bat file extension was registered to be opened with
Notepad++, which caused the scripts not to be run, but rather just opened as
text.
Once I de-registered Notepad++ as the default program for .bat files, the
installer completed successfully.

I think you may need to explicitly use cmd.exe to run the .bat files, rather
than just "opening" them.

#2Sandeep Thakkar
sandeep.thakkar@enterprisedb.com
In reply to: PG Bug reporting form (#1)
Re: BUG #18012: Installer fails to run .bat files when they are registered to Notepad++

Hi Matt,

Thanks for reporting the issue and for the analysis. We will look further
and try to address this issue. Thank you

On Mon, Jul 3, 2023 at 4:24 PM PG Bug reporting form <noreply@postgresql.org>
wrote:

The following bug has been logged on the website:

Bug reference: 18012
Logged by: Matt Feemster
Email address: matt.feemster@gmail.com
PostgreSQL version: 15.3
Operating system: Windows 10 Pro
Description:

When running the installer it proceeds until just about the end, then hangs
indefinitely trying to initialize the database.
I noticed that when this happened, Notepad++ would open two .bat temporary
batch files.
I realized that the .bat file extension was registered to be opened with
Notepad++, which caused the scripts not to be run, but rather just opened
as
text.
Once I de-registered Notepad++ as the default program for .bat files, the
installer completed successfully.

I think you may need to explicitly use cmd.exe to run the .bat files,
rather
than just "opening" them.

--
Sandeep Thakkar

#3Manika Singhal
manika.singhal@enterprisedb.com
In reply to: Sandeep Thakkar (#2)
Re: BUG #18012: Installer fails to run .bat files when they are registered to Notepad++

Hi Matt,
We addressed this issue in our recently released installer with package
revision no.3 (postgresql-15.3-3-windows-x64.exe).

Please try downloading the installer from
https://www.enterprisedb.com/downloads/postgres-postgresql-downloads

--
Thanks & Regards
Manika Singhal
EDB Pune

On 04-Jul-2023, at 4:24 PM, Sandeep Thakkar <
sandeep.thakkar@enterprisedb.com> wrote:

Hi Matt,

Thanks for reporting the issue and for the analysis. We will look further
and try to address this issue. Thank you

On Mon, Jul 3, 2023 at 4:24 PM PG Bug reporting form <noreply@postgresql.org>
wrote:

The following bug has been logged on the website:

Bug reference: 18012
Logged by: Matt Feemster
Email address: matt.feemster@gmail.com
PostgreSQL version: 15.3
Operating system: Windows 10 Pro
Description:

When running the installer it proceeds until just about the end, then hangs
indefinitely trying to initialize the database.
I noticed that when this happened, Notepad++ would open two .bat temporary
batch files.
I realized that the .bat file extension was registered to be opened with
Notepad++, which caused the scripts not to be run, but rather just opened
as
text.
Once I de-registered Notepad++ as the default program for .bat files, the
installer completed successfully.

I think you may need to explicitly use cmd.exe to run the .bat files,
rather
than just "opening" them.

--
Sandeep Thakkar

#4Matt Feemster
matt.feemster@gmail.com
In reply to: Manika Singhal (#3)
Re: BUG #18012: Installer fails to run .bat files when they are registered to Notepad++

Thank you. I downloaded the new installer, set Notepad++ as the default
handler for .bat files, and ran the installer successfully to completion.
So you can close this ticket.

-Matt

On Thu, Jul 13, 2023 at 7:05 AM Manika Singhal <
manika.singhal@enterprisedb.com> wrote:

Hi Matt,
We addressed this issue in our recently released installer with package
revision no.3 (postgresql-15.3-3-windows-x64.exe).

Please try downloading the installer from
https://www.enterprisedb.com/downloads/postgres-postgresql-downloads

--
Thanks & Regards
Manika Singhal
EDB Pune

On 04-Jul-2023, at 4:24 PM, Sandeep Thakkar <
sandeep.thakkar@enterprisedb.com> wrote:

Hi Matt,

Thanks for reporting the issue and for the analysis. We will look further
and try to address this issue. Thank you

On Mon, Jul 3, 2023 at 4:24 PM PG Bug reporting form <
noreply@postgresql.org> wrote:

The following bug has been logged on the website:

Bug reference: 18012
Logged by: Matt Feemster
Email address: matt.feemster@gmail.com
PostgreSQL version: 15.3
Operating system: Windows 10 Pro
Description:

When running the installer it proceeds until just about the end, then
hangs
indefinitely trying to initialize the database.
I noticed that when this happened, Notepad++ would open two .bat temporary
batch files.
I realized that the .bat file extension was registered to be opened with
Notepad++, which caused the scripts not to be run, but rather just opened
as
text.
Once I de-registered Notepad++ as the default program for .bat files, the
installer completed successfully.

I think you may need to explicitly use cmd.exe to run the .bat files,
rather
than just "opening" them.

--
Sandeep Thakkar

--
*fractorium.com <http://fractorium.com&gt;*