Bug #23346 agent cannot install into a dir which remains after an uninstall
Submitted: 16 Oct 2006 20:52 Modified: 18 Nov 2006 15:27
Reporter: Carsten Segieth Email Updates:
Status: No Feedback Impact on me:
None 
Category:MySQL Enterprise Monitor: Installing Severity:S3 (Non-critical)
Version:0.7.2 OS:
Assigned to: Assigned Account CPU Architecture:Any

[16 Oct 2006 20:52] Carsten Segieth
Description:
I tried to install using a test script, but forgot, that I already installed into the same directory. I got the advice to change the dir or to delete the existing install. So I started the uninstall and after this I started the install again - but it failed with the same message. So the unInstall does not clean up so that the install accepts this as a 'clean' directory:

/users/csegieth/merlin/mysqlserviceagent-0.7.2-rhas4-x86_64-installer.bin --prefix /users/csegieth/mysql/network/agent/0.7.2/rh-x86-64/rhas4-x86_64 --debugtrace
 /users/csegieth/mysql/network/agent/0.7.2/rh-x86-64/rhas4-x86_64/install_debug.log --mysqlhost win2003a-x86 --mysqlport 3300 --mysqluser agent --mysqlpass mysq
l --checkMysqlhost yes --merlinhost win2003a-x86 --merlinport 8080 --merlinuser agent --merlinpass mysql --merlinservername 0.7.2-rhas4-x86_64(rh-x86-64)-win200
3a-x86 --mode text
----------------------------------------------------------------------------
Welcome to the MySQL Network Service Agent Setup Wizard.
Created with an evaluation version of BitRock InstallBuilder

----------------------------------------------------------------------------
Please specify the directory where MySQL Network Service Agent will be installed

Installation directory [/users/csegieth/mysql/network/agent/0.7.2/rh-x86-64/rhas4-x86_64]:

Warning: The selected directory already contains a product installation. Please
delete the existing installation or select an alternate installation directory.
Press [Enter] to continue :
----------------------------------------------------------------------------
Please specify the directory where MySQL Network Service Agent will be installed

Installation directory [/users/csegieth/mysql/network/agent/0.7.2/rh-x86-64/rhas4-x86_64]:

How to repeat:
install
uninstall
install

Suggested fix:
- clean up all at uninstall what the install checks (better sync install and uninstall)
[18 Oct 2006 15:27] Keith Russell
This is a response from Bitrock - 

The problem you are running into is derived by the fact that our uninstaller does not delete the installation directory, so the new installer "complains" about installing in an existing directory.
The reason for our uninstaller not to delete totally the installation directory, is the fact that log and mysqlagent.pid files remain in the installation directory. 
Normally we tend to choose the safest option so the uninstaller prevents against the loss of data avoiding the deletion of the directory structure. 

If you want to change this behaviour and sacrifice the potential information present in older installations, please confirm us to do so.
[19 Nov 2006 0:00] Bugs System
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".