I had dealt with this issue before, you may find the discussion if you search
the archives.
Note, if you disable a feature from the installation tree, a savvy user can
still use something like Orcas and extract *all* the files that are sitting in
your .msi file...
What I ultimately did was this; I made a basic installer with the basic
features, and added a dialog like this:
<Control Id="Next" Type="PushButton" X="236" Y="243" Width="56"
Height="17" Default="yes" Text="&Next">
<Publish Event="DoAction" Value="CheckingPID">1</Publish>
<Publish Event="SpawnDialog" Value="InvalidPidDlg">PIDACCEPTED =
"1"</Publish>
<Publish Event="NewDialog"
Value="[WixUI_UserRegistrationDlgNext]">PIDACCEPTED = "0"</Publish>
<Publish Event="EndDialog" Value="Exit">PIDACCEPTED = "2"</Publish>
</Control>
In my custom action...
I create a password. I encrypt it, and include the public key in my dll. I
include the encrypted password in my dll. If the password they typed in can be
verified against the encrypted password (this is all .NET stuff), then I take
the hash of the password, and use it to decrypt a second installer, the one
with all the features. My dll launches the second installer, and sets
PIDACCEPTED to 2. Then the original MSI terminates (see code above).
On 5/10/07, Lewis Henderson <[EMAIL PROTECTED]> wrote:
>
>
>
> Hi All,
>
>
>
> Ive got an install that prompts for a product key, and based on the value
> of that key, certain features may not be available. How do I disable these
> features and remove them from the subsequent FeatureTree dialog? My key
> validation custom action can set a property value for each feature
> indicating if its authorized or not, if that helps.
>
>
>
> Thanks for the help.
>
> Lewis
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> WiX-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users