PDA

View Full Version : Shared Components



Bhanudas Abhale
07-30-2002, 04:55 AM
We have already shipped a product (e.g A) in which some of the files are shipped in Common Files folder and we have marked them as shared.

We are developing one more product (e.g. B) in which we require the the same common files shipped in A and one more dependency file (e.g. File1) has been added to common files which we will ship with product B.

Our problem is if Product B is uninstalled File1 will get deleted which actually we don't want (as the common files will be of the higher verison and they will refer to File1). The File1 should go only when both are uninstalled.

Making File1 as Permanent component is one solution but if Product A is uninstalled at last, File1 will not get removed.

Any suggestion.

TIA,

Bhanudas Abhale
BindView India Pvt.Ltd.

Joshua
07-30-2002, 09:31 AM
Bhanudas,

I would suggest marking this file as permanent, then in the OnMaintUIAfter event (after uninstall) include some custom code that detects what versions are currently installed. If you detect that no versions exist, then manually delete this file using DeleteFile.

Bhanudas Abhale
07-31-2002, 12:21 AM
Hi Joshua,

Thanks for quick reply.

We are using Basic MSI setups. We are using InstallShield for Windows Installer from starting (v1.2) and we are comfirtable with basic MSI setups.

We think you have answered keeping in mind Standard Setup.

Please suggest keeping Basic MSI setups in mind.
Also please let us know on how we accomplish this in already shipping product (do we patch the installation)

Thanks,
Bhanudas Abhale