fortify icon indicating copy to clipboard operation
fortify copied to clipboard

MSI Installer: force shutdown of currently executing fortifyapp

Open defacto64 opened this issue 4 years ago • 6 comments

Hello, I would like to know if it is possible - when installing Fortify in a Windows environment - to force shutdown of the active instance of the Fortifyapp. Is there any command-line option that can be passed to the .MSI installer to that aim?

defacto64 avatar Nov 23 '21 09:11 defacto64

Hi, can you give me an answer?

defacto64 avatar Dec 14 '21 11:12 defacto64

@defacto64 We have this realization on Linux and macOS. @microshine Can we add it to the Windows installer too?

donskov avatar Dec 15 '21 08:12 donskov

There is the WixCloseApplications action in the Win32 installer which (I hope) must close the application

<Custom Action="WixCloseApplications" Before="InstallInitialize" />

I'll do some tests

microshine avatar Dec 15 '21 09:12 microshine

@defacto64 Here are some screens of how WixCloseApplications works

If Fortify is running it shows the next dialog image

On OK button click without Fortify stopping it shows the next dialog

image

Standard Win32 Setup process doesn't allow to continue application installing with the previous version running. You need to stop the application manually or use the case with System rebooting.

I think it's possible to use a custom action to close the Fortify application as we do it in Linux and macOS.

Something like calling command line

taskkill /IM "fortify.exe" /F

@rmhrisk What do you think?

microshine avatar Dec 15 '21 12:12 microshine

Yes, I am aware of how the thing works at UI level...

I think it's possible to use a custom action to close the Fortify application as we do it in Linux and macOS.

This could be a solution to the need I have described, in fact. Of course it should be an optional behavior (command line driven), not the default one.

defacto64 avatar Dec 15 '21 12:12 defacto64

Sounds good let’s do it

rmhrisk avatar Dec 16 '21 03:12 rmhrisk