Hi Amit,
You can try using the guidelines from the
Show a custom feature selection dialog how-to. For the custom checkboxes you can use the "uninstall" value instead of "install". Also, the VBScript code can be modified like this:
Code: Select all
' Set contants for the INSTALLSTATE_ABSENT and INSTALLSTATE_LOCAL feature states
Const msiInstallStateAbsent = 2
Const msiInstallStateLocal = 3
' Set the install state of the feature with the identifier "Feature1"
If Session.Property("CHECK1") = "uninstall" Then
Session.FeatureRequestState("Feature1") = msiInstallStateAbsent
Else
Session.FeatureRequestState("Feature1") = msiInstallStateLocal
End If
This way, when the checkbox of a feature is checked, the feature will be uninstalled instead of beind installed like in the how-to.
Regards,
Cosmin
FOLLOW US
Get the latest news in Application Packaging