I am trying to make a setup that does NOT install on Windows 2000. Here's what I have so far:
<CustomAction Id="AssignTargetDir" Property="TARGETDIR" Value="C:\" Execute="firstSequence" /> <CustomAction Id="IDWIN2KSP4EXISTS" Property="WIN2KSP4EXISTS" Value="[VersionNT] = 500 AND [ServicePackLevel] >=4"/> <CustomAction Id="IDWINXPSP2EXISTS" Property="WINXPSP2EXISTS" Value="[VersionNT] = 501 AND [ServicePackLevel] >=2"/> <CustomAction Id="IDWIN2K3SP1EXISTS" Property="WIN2K3SP1EXISTS" Value="[VersionNT] = 502 AND [ServicePackLevel] >=1"/> <CustomAction Id="IDWINVISTAORBETTEREXISTS" Property="WINVISTAORBETTEREXISTS" Value="[VersionNT] > 502"/> <InstallUISequence> <Custom Action="AssignTargetDir" Before="CostInitialize">TARGETDIR=""</Custom> <Custom Action="IDWIN2KSP4EXISTS" Before="LaunchConditions"/> <Custom Action="IDWINXPSP2EXISTS" Before="LaunchConditions"/> <Custom Action="IDWIN2K3SP1EXISTS" Before="LaunchConditions"/> <Custom Action="IDWINVISTAORBETTEREXISTS" Before="LaunchConditions"/> </InstallUISequence> <InstallExecuteSequence> <Custom Action="AssignTargetDir" Before="CostInitialize">TARGETDIR=""</Custom> <Custom Action="IDWIN2KSP4EXISTS" Before="LaunchConditions"/> <Custom Action="IDWINXPSP2EXISTS" Before="LaunchConditions"/> <Custom Action="IDWIN2K3SP1EXISTS" Before="LaunchConditions"/> <Custom Action="IDWINVISTAORBETTEREXISTS" Before="LaunchConditions"/> </InstallExecuteSequence> <CustomAction Id="CheckingPID" BinaryKey="CheckPID" DllEntry="CheckPID" /> <Binary Id="CheckPID" SourceFile="C:\Maap5tst\Pc\WIXBuilder\Release\PwAuth.dll" /> <Property Id="PIDKEY" Hidden="yes" /> <UIRef Id="WixUI_FeatureTree" /> <Condition Message="This setup requires the .NET Framework 2.0."><![CDATA[MsiNetAssemblySupport >= "2.0.50727"]]></Condition> <Condition Message="This setup requires Windows XP with Service Pack 2."><![CDATA[WINXPSP2EXISTS OR WIN2K3SP1EXISTS OR WINVISTAORBETTEREXISTS]]></Condition> When I run the MSI on a Win2K machine, here's the beginning of the log file... === Logging started: 5/10/2007 11:27:12 === Action 11:27:12: INSTALL. Action start 11:27:12: INSTALL. Action 11:27:12: PrepareDlg. Action start 11:27:12: PrepareDlg. Info 2898. WixUI_Font_Bigger, Tahoma, 0 Info 2898. WixUI_Font_Normal, Tahoma, 0 Action 11:27:12: PrepareDlg. Dialog created Action ended 11:27:12: PrepareDlg. Return value 1. Action 11:27:13: AppSearch. Searching for installed applications Action start 11:27:13: AppSearch. Action ended 11:27:13: AppSearch. Return value 0. Action 11:27:13: IDWIN2KSP4EXISTS. Action start 11:27:13: IDWIN2KSP4EXISTS. Action ended 11:27:13: IDWIN2KSP4EXISTS. Return value 1. Action 11:27:13: IDWINXPSP2EXISTS. Action start 11:27:13: IDWINXPSP2EXISTS. Action ended 11:27:13: IDWINXPSP2EXISTS. Return value 1. Action 11:27:13: IDWIN2K3SP1EXISTS. Action start 11:27:13: IDWIN2K3SP1EXISTS. Action ended 11:27:13: IDWIN2K3SP1EXISTS. Return value 1. Action 11:27:13: IDWINVISTAORBETTEREXISTS. Action start 11:27:13: IDWINVISTAORBETTEREXISTS. Action ended 11:27:13: IDWINVISTAORBETTEREXISTS. Return value 1. Action 11:27:13: LaunchConditions. Evaluating launch conditions Action start 11:27:13: LaunchConditions. Action ended 11:27:13: LaunchConditions. Return value 1. Action 11:27:13: ValidateProductID. Action start 11:27:13: ValidateProductID. Action ended 11:27:13: ValidateProductID. Return value 1. Action 11:27:13: AssignTargetDir. Action start 11:27:13: AssignTargetDir. Action ended 11:27:13: AssignTargetDir. Return value 1. Action 11:27:13: CostInitialize. Computing space requirements Action start 11:27:13: CostInitialize. Action ended 11:27:13: CostInitialize. Return value 1. Action 11:27:13: FileCost. Computing space requirements Action start 11:27:13: FileCost. Action ended 11:27:13: FileCost. Return value 1. Action 11:27:13: CostFinalize. Computing space requirements Action start 11:27:13: CostFinalize. Action ended 11:27:13: CostFinalize. Return value 1. Action 11:27:13: WelcomeDlg. Action start 11:27:13: WelcomeDlg. What am I missing here? Why does it install on Win2K??? I know I had a similar question before, but I can't find that thread... ------------------------------------------------------------------------- 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 WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users