Im making an installer for an add-on pack to an existing product. When I install, it is crusial that the user has a certain version of the product. Let's say v1.2. So I need to revert all patches and install v1.2 to be sure. When I install I try to do following last thing in OnFirstUIBefore()
Code Sample |
SdShowMsg("Reverting to version 1.2..please wait",TRUE); Delay(1); ComponentSelectItem ( MEDIA , "XPack Files" , FALSE ); ComponentSelectItem ( MEDIA , "Patch Files" , TRUE ); Disable(LOGGING); ComponentTransferData ( MEDIA ); Enable(LOGGING); ComponentSelectItem ( MEDIA , "XPack Files" , TRUE ); ComponentSelectItem ( MEDIA , "Patch Files" , FALSE ); Delay(1); SdShowMsg("Done",FALSE); |
This works fine until I try to uninstall because the registry entries are left behind. This is probably because I call ComponentTransferData ( MEDIA ) when logging is turned off. So what I need is either to make sure that ComponentTransferData wont install the registry entries the FIRST time it's called, or to use another way to install "patch files" with logging turned of. Any ideas?
Thanks in advance,
Jonas