Hi All, I am basically reposting this question with an example.
The following code executes even when you put Installed or NOT Installed. The windows installer proceeds without an error. Why is it so? The following is my sample code from one of the files in the sample.zip : <?xml version="1.0" encoding="utf-8"?> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> <Product Name='Foobar 1.0.1' Id='{69F6534A-2BCB-4FE0-A473-F87AD7B56CCD}' UpgradeCode=' {FCACE5B2-7C9E-4798-97A4-A773E2B97885}' Language='1033' Codepage='1252' Version='1.0.1' Manufacturer='Acme Ltd.'> <Package Id='{CBD29230-14A0-418C-BAFB-D3900853102A}' Keywords='Installer' Description="Acme's Foobar 1.0.1 Updater" Comments='Foobar is a registered trademark of Acme Ltd.' Manufacturer='Acme Ltd.' InstallerVersion='200' Languages='1033' Compressed='yes' SummaryCodepage=' 1252' /> <Condition Message='Installation of the product failed as it is already installed.'> Installed </Condition> <Media Id='1' Cabinet='Sample.cab' EmbedCab='yes' DiskPrompt="CD-ROM #1" /> <Property Id='DiskPrompt' Value="Acme's Foobar 1.0 Installation [1]" /> <Directory Id='TARGETDIR' Name='SourceDir'> <Directory Id='ProgramFilesFolder' Name='PFiles'> <Directory Id='Acme' Name='Acme'> <Directory Id='INSTALLDIR' Name='Foobar10'> <Component Id='MainExecutable' Guid='{D0E396B8-8DBB-449e-8834-A49ED4807C2C}' > <File Id='FoobarEXE' Name='Foobar10.exe' DiskId='1' Source='FoobarAppl10.exe' Vital='yes'> </File> <Shortcut Id="startmenuFoobar10" Directory="ProgramMenuDir" Name="Foobar10" LongName="Foobar 1.0" WorkingDirectory='INSTALLDIR' Icon="Foobar10.exe" IconIndex="0" /> <Shortcut Id="desktopFoobar10" Directory="DesktopFolder" Name="Foobar10" LongName="Foobar 1.0" WorkingDirectory='INSTALLDIR' Icon="Foobar10.exe" IconIndex="0" /> <RemoveFolder Id='ProgramMenuDir' On='uninstall' /> </Component> <Component Id='HelperLibrary' Guid='{4162542D-223D-4c93-B298-A81DAEC04ED9}'> <File Id='HelperDLL' Name='Helper.dll' DiskId='1' Source='Helper.dll' Vital= 'yes' /> </Component> <Component Id='Manual' Guid='{92A02395-0924-4270-A4BF-B89AE0188924}'> <File Id='Manual' Name='Manual.pdf' DiskId='1' Source='Manual.pdf'> </File> </Component> </Directory> </Directory> </Directory> <Directory Id="ProgramMenuFolder" Name="PMenu" > <Directory Id="ProgramMenuDir" Name='Foobar10'/> </Directory> <Directory Id="DesktopFolder" Name="Desktop" /> </Directory> <Feature Id='Complete' Title='Foobar 1.0' Description='The complete package. ' TypicalDefault='install' Display='expand' Level='1' ConfigurableDirectory='INSTALLDIR'> <Feature Id='MainProgram' Title='Program' Description='The main executable.' TypicalDefault='install' Level='1'> <ComponentRef Id='MainExecutable' /> <ComponentRef Id='HelperLibrary' /> </Feature> <Feature Id='Documentation' Title='Description' Description='The instruction manual.' Level='1'> <ComponentRef Id='Manual' /> </Feature> </Feature> <Icon Id="Foobar10.exe" SourceFile="FoobarAppl10.exe" /> </Product> </Wix> Regards, Kamal ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users