PDA

View Full Version : Problems with Packages...


HJB
06-03-2009, 10:53 AM
Hi,

i've created a setup with 17 packages and added a 'Select Packages' screen to the Uninstall section. When running the Uninstall the previously installed packages are identified succesfully and are checked in the 'Select Packages' dialog correctly. But when continouing the Uninstall, it doesn't remove the selected packages only, instaed it uninstalls ALL packages. I've checked the states of single packages with 'SetupData.GetPackageProperties("PackageXX").Install' and it's 'true' for selected and 'false' for unselected packages. Any idea what's going wrong here? Thanks for any hint on this...

jassing
06-03-2009, 12:40 PM
This has been discussed, and I believe, even is a request-for-change with IR. (I do not have a reference # for it, just going off memory)

While you can add that screen, and it appears to work; indeed, the uninstall goes thru the xml file and removes all files.

You may be able to edit the xml file at runtime to remove files you don't want to delete (ie: they belong to a package that has been de-selected)

A common way around it is to create "mini installers" for each package, and then call each package uninstaller that you need to uninstall.

Another way is to use zip files -- zip up the package files you DO NOT want to remove, then post uninstall, unzip them back into place.

HJB
06-04-2009, 09:08 PM
This has been discussed[...]
Thanks for suggestions, will see what i can do...