Fixed this issue , i have added include property in nsis config (package.json) and created installation.nsh where i added code for close the application and clear the data , [ but this is only supported for nsis not for msi ]