You still validate it and fail the install if it doesn't pass that validation.
If someone runs the MSI silently your UI never runs anyway. The commandline is how they would pass what they would have typed into the UI. -----Original Message----- From: Dan Giambalvo [mailto:danie...@microsoft.com] Sent: Friday, October 23, 2009 5:32 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Blocking install if property isn't set If I make it public, can't someone just pass it in from the command line then? Doesn't that similarly defeat the purpose? -----Original Message----- From: Blair [mailto:os...@live.com] Sent: Friday, October 23, 2009 5:22 PM To: 'General discussion for Windows Installer XML toolset.' Subject: Re: [WiX-users] Blocking install if property isn't set If you have a custom action that validates your property and returns failure if it doesn't validate, run that custom action as Execute="immediate" and schedule it in both InstallUISequence AND InstallExecuteSequence (so it runs up to twice). Make sure that the property you check is a "secure" property, which means it also must be a "public" property, so that it can be passed from the UI sequence to the execute sequence so it doesn't fail then. Condition that action in both sequences on "NOT Installed" so it doesn't block uninstalls/upgrades/repairs/etc. -----Original Message----- From: Dan Giambalvo [mailto:danie...@microsoft.com] Sent: Friday, October 23, 2009 12:37 PM To: wix-users@lists.sourceforge.net Subject: [WiX-users] Blocking install if property isn't set Our installer has some UI which requests and validates a product key from the user during InstallUISequence. I want to add an additional checks so that if some clever user tries to silently install our msi to bypass the UI (and hence the validation UI) that they install will fail. I have a private property in the installer which I can check to know if we've successfully validated a key, I'm just not sure how to make the entire InstallExecute sequence contingent on it (and only so on clean installs, but not uninstalls/upgrades/repairs/etc.) I'm guessing there's a right way to do this. Can anyone tell me what it is? Thanks! -Dan ---------------------------------------------------------------------------- -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ---------------------------------------------------------------------------- -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ---------------------------------------------------------------------------- -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users