I think I found the source of my uninstall issue.  I was reusing the same GUID for every component within my install.  I had created a generic target to create an msm file based on some properties that I would set before calling the target.  Unfortunately, the 'id' attribute of the <component> element does not allow for script execution.  Therefore, I could not execute a script to create a new GUID, nor could I set a new GUID into a property and evaluate that.  To get past this I simply hard-coded the GUID!  I believe that only one of my components was actually getting uninstalled.  I have noticed an inconsistent behavior within the <msi> and <msm> tasks regarding 'id' attributes.  For instance, unlike the <component>'s 'id' attribute, the <msm>'s 'id' attribute fully supports script.  This inconsistency should probably be rectified by allowing all 'id's to call scripts and evaluate properties.
 
- Tom



From: Foster, Richard - PAL [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 02, 2005 9:06 AM
To: Burton, Kevin; nant-users@lists.sourceforge.net
Cc: Whitner, Tom
Subject: RE: [Nant-users] Removing files on uninstallation.

Kevin,
 
What I meant was that many installations allow the user to choose a different directory. I have had cases in the past (although not with the Microsoft installer) where if the user selected a different directory for installation (for example the D drive instead of the C drive), then uninstalled the software that an attempt was made to uninstall the files from the default installation directory, instead of the one where the files would actually be found!
 
Could you possibly post a sample MSI task exhibiting the fault?
 
Regards,
Richard


From: Burton, Kevin [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 02, 2005 08:55
To: Foster, Richard - PAL; Byrd, Payton; nant-users@lists.sourceforge.net
Cc: [EMAIL PROTECTED]
Subject: RE: [Nant-users] Removing files on uninstallation.

Richard,

 

Thank you for your response. The “variable” as far as I know is [TARGETDIR]. I am not sure how it gets set on uninstall. I think this variable is getting set correctly on uninstall because some files are removed, just not all of them. That could be a possibility though. I am not sure what you mean by “does it make any difference”. The installer chooses this directory so if the installation arbitrarily used the default directory instead it would matter, at least to the installer.

 

Regards,

 

Kevin

 


From: Foster, Richard - PAL [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 02, 2005 6:57 AM
To: Burton, Kevin; Byrd, Payton; nant-users@lists.sourceforge.net
Cc: [EMAIL PROTECTED]
Subject: RE: [Nant-users] Removing files on uninstallation.

 

Kevin,

 

This may be a stupid question, but most installations I have created use a variable to determine where the file should be placed. Is there any chance that variable could be set differently on uninstall verses installation? Also, does it make any difference if you accept the default installation directory or choose a different one?

 

Regards,

Richard

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Burton, Kevin
Sent: Tuesday, March 01, 2005 16:38
To: Byrd, Payton; nant-users@lists.sourceforge.net
Cc: [EMAIL PROTECTED]
Subject: RE: [Nant-users] Removing files on uninstallation.

The files that are not removed are not touched. I can install and immediately uninstall and the files remain.

 

Kevin

 

Reply via email to