Hi Team,
I have a requirement where my application has apache,Mysql binaries that get installed along with my application.After the install of version 1.0 I want to run a batch file which starts apache and mysql required for the application.
From then on when ever I send some patches(say 1.0.1,1.0.2 etc) to the clients machine I need to
1)Run the batch file to Stop the apache and mysql.
2)Run another batch file to start apache and mysql.
Below are the steps I followed to test the step2 above for my first installation(version 1.0):
1.Created a sample bat script(attached below) which would start the notepad.exe.I want to run this bat file after the installation is complete.
2.Created a install finalize custom action from Custom action->Show standard action->Before Finalization->Install Finalize->New Installed Custom Action.Attached are the exact steps I followed(install Finalize Custom Action.zip)
During the installation everything works normally and a notepad gets opened.But During the uninstall I get the error below and also a fatal error popup:
Please suggest me how to solve this problem.
Also during the patach upgrades I want to run a batch file that has to close the notepad.exe first and after patch installation it performs the steps above(open a notepad).
I could do this also by following similar steps as above Custom action->Show standard action->Before File Installation->Install initialize->New Installed Custom Action.It works fine during the patch installation but during uninstall it shows the same errors as above.Please suggest an approach for this one also.
FOLLOW US
Get the latest news in Application Packaging