Hi,
I am upgrading several files (Example: VB6 runtime and additional OCX/DLL controls). As the product was not MSI based, I am aware that there is manual/custom action implementation work to be done and it cannot be done automatically. Currently, the OCX/DLL controls (libraries) reside in the SystemFolder. Based on what I can deduce from MSI best practices, I should not install libraries into the SystemFolder. Therefore, here is my situation:
A client's PC may have several versions of a library depending on what version of our software they have installed.
Disregarding any and all version specific information, I'd like to:
1. Perform an unconditional uninstall of all these libraries (especially those currently in the SystemFolder folder).
2. Ensure that their registry entries are properly deleted.
3. Reset their shared reference count to 0 so that they are deleted the SharedDLL's registry key)
4. Delete the library files.
5. Install the newest version of the libraries as well as any additional MSM/MSI's into an MSI compliant folder(s) and register them.
This is to ensure a clean uninstall and ensure that Windows Vista and Windows 7 don't have invalid file/registrey references or cause UAC type warnings (or at least avoid as many as possible).
I am aware that some users have used a custom action of using RegSvr32.exe, but I was wondering if this was the right approach or is there a another method by which I can perform the same tasks
(without having to resort to RegSvr32.exe)? If RegSvr32 is the best way to accomplish this, are there any sample AIP's that exist to demonstrate this process in a clean/safe way?
Please remember that the legacy libraries may have different versions (6.6.0.18 or 6.0.0.0, etc.) so the technique must uninstall any and all existing versions and thus it cannot be version specific.
One of my current problems is that I must uninstall the Visual Basic 6.0 SP6 libraries, and reinstall them with the newer cumulative update for VB6 SP6 which provides many enhancements/bug fixes.
Giovanni
FOLLOW US
Get the latest news in Application Packaging