Click here to Skip to main content
15,942,847 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello All,

I have a windows application with prerequisite as
.NET Framework 4 Client Profile,
MySQL Server,
MySQL .NET Connector

Also i created a Setup Project in VS 2010 for my application.

I have added all the above msi/exe and my application msi in a folder.

To create an installer for my Windows Application, i created a batch file,
which first checks the prerequisites one by one. if it exists continue for next else install it.
After installing the prerequisites, it continue for the main application installation.

I have created a self extracting (sfx) installation file.

Now the setup project i have created doesn't uninstall the previous version.

To uninstall i have an option to create another batch file just to uninstall the application before extracting files.


What will be the best thing you chose if in this condition.
Is i m going in right direction,
or should i go for some installer creating packages and not the batch files..

Please suggest !!
Posted
Updated 14-May-12 19:30pm
v2

1 solution

 
Share this answer
 
Comments
DeepsMann 16-May-12 7:04am    
Thanks,

It didn't solved my problem, but helped me a lot.

Finally what i did is:
Created Registry Key while installing application and saving ProductCode there.
Created another application (app2) just to get registrykey if exists and uninstall application by its ProductCode using msiexec.exe.
Put them all in sfx file and executed the app2 before extraction and the installation continues after extraction.
Sandeep Mewara 16-May-12 12:45pm    
:thumbsup:

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900