John S <jshaw20032002 <at> yahoo.com> writes: > > > Thank you for your reply. Can you please give me an example of how i write this in my .wxs file and how to check if its install or repair. The scenario is that a user has installed the product and lets say he has changed the content one of the installed file. Now he runs the installer again by double clicking the setup msi and now it asks for Repair option. when the user select the repair radio button and completes the install, nothing hapens to the changed file. It has to be restored back to the original. Can i do this in my .wxs file and how? Thanks for any help John S
To use REINSTALLMODE and REINSTALL: <?xml version='1.0' encoding='windows-1252'?> <Wix xmlns='http://schemas.microsoft.com/wix/2003/01/wi'> <Product Name='ProductName' Id='GUID' Version='1.0.0'> <Package Id='????????-????-????-????-????????????'/> <Media Id='1' Cabinet='MyCompany.cab' EmbedCab='yes' DiskPrompt='DiskPrompt'/> <Property Id='DiskPrompt' Value='I-Gear DTU 5.6.2 Installation' /> <Property Id='REINSTALLMODE' Value='amus'/> <Property Id='REINSTALL' Value='all'/> <Directory Id='TARGETDIR' Name='Source'> <Directory Id='ProgramFilesFolder' Name='PFolder' LongName='MyCompany'> <Component Id='MyFile' Guid='GUID'> <File Id='MyFile.ext' Name='MyFile.ext' Source='SomeSourceDirectory'/> </Component> </Directory> </Directory> <Feature Id='MyFeature' Level='1'> <ComponentRef Id='MyComponent'/> </Feature> </Product> </Wix> The value 'all' for the REINSTALL property means that all features will be affected. You can replace that with the feature Id's, separated by commas, that you want to be affected. I'm not the best authority on this, but I think Windows Installer should automatically know the difference between repair and install, or is that not what you were asking? Someone else may have to bail me out on this one, because I'm not entirely sure how this works. ------------------------------------------------------------------------- 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