jcouturier
Posts: 27
Joined: Thu Jul 01, 2021 3:33 pm

Execute PS Inline Script after service postgres is started

Fri Nov 05, 2021 11:44 am

Hello,
I would like to run a power shell script after installing a feature (postgresql), after the postgresql service is started.
How should I do it please ?

I tried doing like the example below, it doesn't work.

Image
https://ibb.co/vXVkLWY

Thank you.

Catalin
Posts: 6541
Joined: Wed Jun 13, 2018 7:49 am

Re: Execute PS Inline Script after service postgres is started

Fri Nov 05, 2021 12:59 pm

Hello,

I am not quite sure I fully understand what you want to achieve here.

Would you like to execute the custom action only if the feature was installed?

If that is the case, you can condition your PowerShell custom action as it follows:

Code: Select all

((&Feature = 3) AND NOT (!Feature = 3))
where "Feature" represents your feature identifier. You can see this by going to "Organization" page, selecting your feature and the checking the "Identifier" field.

Hope this helps!

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

jcouturier
Posts: 27
Joined: Thu Jul 01, 2021 3:33 pm

Re: Execute PS Inline Script after service postgres is started

Fri Nov 05, 2021 1:44 pm

Thank you very much !
That's exactly what i wanted !

Catalin
Posts: 6541
Joined: Wed Jun 13, 2018 7:49 am

Re: Execute PS Inline Script after service postgres is started

Fri Nov 05, 2021 7:44 pm

You are always welcome!

Glad I could help.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”