javnav07
15th November 2006 11:28 UTC
Uninstaller
HI
I have some strange situation.I have developed one installer for my application.(Version 1)
Now if we are trying to install the new version (say version2) with out uninstalling the version 1.Then i have to run the unistaller to remove the previous version.
I can do that with command : Exec $INSTDIR\Uninstall.exe
which is previous unistaller.
But i want to run the new uninstaller ( I have changed some logic in the uninstaller which are required for my new installer),not the previous one.
Is there any way to run the new uninstaller code.
Please Help me.
If my explanation is not clear then please let me know.
Thanks
Sorry for my english
onad
15th November 2006 13:25 UTC
Yes,
1) Make a build of your new installer + uninstaller (v2)
2) On a clean machine run your installer
3) copy the new v2 uninst.exe (v2) to some storage/dir on a development PC
4) Add some scripting code to your installer(v2) which copies the NEW uninst.exe (v2) OVER the old uninst.exe (v1) at installetime.
5) Make a NEW build of your installer where the uninst.exe(v2) is now included in the files.
(Yes, this will make your installer bigger, but could solve you problem.)
Success
javnav07
16th November 2006 03:26 UTC
Thanks for the reply .I will try this today.
Animaether
17th November 2006 12:28 UTC
shouldn't you just be able to use WriteUninstaller at the beginning of your installation, execute it, then proceed with your installation, and use WriteUninstaller again (presuming your uninstaller deletes itself!) at the end of your installation?