1
votes

How to RUN SCRIPT or EXE before installation begins on msi? I am using Visual Studio 2010's setup project.

I want to have the script or exe run, to exit the previous version of my application. I was looking on the CUSTOM ACTION but the exe will only run after the installation was completed.

Is there a way that the custom action will run before the installation happens?

1
yes i need help in this, because when run msi it first copied all files to target directory and then start Install custom action. so i need take back up of web.config before msi start copying... means With customs actions seems to be impossible since they are executed after the MSI wizard forms are showed.! - Muhammad Mubashir

1 Answers

0
votes

One approach would be to write another project, maybe just as console application and there execute the EXE and after this starting the MSI package. But I don't know if that satisfies you.