cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
venugops
Level 2

Overwriting an existing installation after uninstalling it

Hi,
I need some urgent help when trying to overwrite an existing installation. ( Windows , Installshield 11.5 MultiPlatform SP1 )
1. I have to install a product in the same location as earlier
2. Based on some condition, I am calling the uninstaller.exe -silent from inside the installer
3. The _uninst/uninstall.dat is not removed.
4. When the installation proceeds it does not create the uninstaller.exe in this location ( _uninst ).

My need,
1. The uninstallation should clean up the installed location including the _uninst directory.

Thanks,
Venu.
Labels (1)
0 Kudos
(4) Replies
MEinstaller
Level 7

You could write some code that would delete the file and directory after the application is uninstalled. Then have your installation start.
0 Kudos
venugops
Level 2

Infact I tried to remove the directory after doing a wait for process inside preinstaller's queryexit.
But the directory is not being removed since it is used by the "installer" process itself. Is there a way by which we can get the current process that is using the resource and then use that process to delete it.
0 Kudos
ketanrs
Level 2

I am also facing the same issue. Has anyone found any workaround for this?

Thanks
0 Kudos
jweber
Level 6

I am pretty sure that the recommeneded way to handle this would be to:

1. If previous version found - Run the uninstall code.
2. At the end of uninstall, prompt for reboot - so files can be deleted.
3. On start of machine continue install.
0 Kudos