hi actually i have build wix aplication which i want to installed from flash drive to other machine but i want installation should not copy files to target machine it should run only when the flash drive is plugged ,after setting all the feature and component run-from-source , msi installtion copying file in target machine. and in the verbose log it shows all featur and compnent run-from-local. it is not runing from source why?
here is code. <?xml version="1.0" encoding="UTF-8"?> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> <!-- product "APPS-D--> <Product Id="672A115E-4817-4ddb-B8FB-1398C7B129E5" Name="APPS-D_2" Language="1033" Version="1.0.0.0" Manufacturer="I-FLAPPTech" UpgradeCode="CB77C061-4C1A-4c26-8816-09D33FB2EDAA"> <!--packageing of prouct --> <Package InstallerVersion="200" Compressed="yes" /> <!--check privilage/admin right condition before intalltion--> <Condition Message="You need to be an administrator to install this product."> Privileged </Condition> <!--compreson and media embed --> <Media Id="1" Cabinet="media1.cab" EmbedCab="no" DiskPrompt="Disk1" VolumeLabel="Disk 1" /> <Media Id="2" Cabinet="mediaxyz.cab" EmbedCab="no" DiskPrompt="Disk2" VolumeLabel="Disk 2" /> <Property Id="DiskPrompt" Value="[1]" /> <!--dirctory heicrachy otinstall --> <Directory Id="TARGETDIR" Name="SourceDir"> <Directory Id="ProgramFilesFolder"> <Directory Id="INSTALLLOCATION" Name="WixProjectFive_New"> <!-- TODO: Remove the comments around this Component element and the ComponentRef below in order to add resources to this installer. --> <!-- TODO: Insert files, registry keys, and other resources here. --> <!-- </Component> --> <!--First component--> <Component Id="Component_one" Guid="15B302A4-2DDB-4047-89EB-A81A77EFFA6E" DiskId="1" Location="source"> <File Id="RunExe" Name="dllClient.exe" Source="E:\Drive E\JANUARY01012009\220109\Meeting Sample\WixProjectFive\Files\dllClient.exe" DiskId="1" Vital="yes"> <Shortcut Id="RunExeStartMenu" Directory="ProgramMenuFolder" Name="WixSampleNew" WorkingDirectory="INSTALLLOCATION" Icon="DEAT011.ICO" IconIndex="0" Advertise="yes" > </Shortcut> <Shortcut Id="RunExeDesktop" Directory="DesktopFolder" Name="WixSampleNew" WorkingDirectory="INSTALLLOCATION" Icon="DEAT011.ICO" IconIndex="0" Advertise="yes"> </Shortcut> </File> <Registry Id="WixFiveRegInstallDir1" Root="HKLM" Key="Software\WixProjectFive" Name="TextPah" Action="write" Type="string" Value="[INSTALLLOCATION]WixSrcText.txt" > </Registry> <Registry Id="WixFiveRegInstallDir2" Root="HKLM" Key="Software\WixProjectFive" Name="TextPahWrite" Action="write" Type="string" Value="[INSTALLLOCATION]WriteText.txt" > </Registry> <Registry Id="WixFiveRegInstallDir3" Root="HKLM" Key="Software\WixProjectFive" Name="DllPathRead" Action="write" Type="string" Value="[INSTALLLOCATION]WixSrcDll.dll" > </Registry> <File Id ="RunDll" Name="WixSrcDll.dll" Source="E:\Drive E\JANUARY01012009\220109\Meeting Sample\WixProjectFive\Files\WixSrcDll.dll" Vital="yes" DiskId="1"> </File> <File Id ="RunText" Name="WixSrcText.txt" Source="E:\Drive E\JANUARY01012009\220109\Meeting Sample\WixProjectFive\Files\WixSrcText.txt" Vital="yes" DiskId="1"> </File> <!-- remove the file used by program but not part of intallation package--> <RemoveFile Id="RemoveWritefile" On="uninstall" Name="WriteText.txt" /> </Component> <!--second component--> <Component Id="component_two" Guid ="ABA305CB-4C75-4a64-9963-115C2B1E82D8" DiskId="2" Location="source"> <File Id="textfileid" Name="ReadMe.txt" DiskId="2" Source="E:\Drive E\JANUARY01012009\220109\Meeting Sample\WixProjectFive\Files\ReadMe.txt" Vital="yes" > </File> </Component> </Directory> </Directory> <!-- desk top directory and Startmenudirectory--> <Directory Id="ProgramMenuFolder" Name="PMenu"/> <Directory Id="DesktopFolder" Name="Desktop" /> <!--final directory close--> </Directory> <!--features of product APPS-D --> <!--first feature--> <Feature Id="ProductFeature_one" Title="WixProjectFive_FeatureOne" Level="1" InstallDefault="source" > <ComponentRef Id="Component_one"/> </Feature> <!--second feature--> <Feature Id="ProductFeature_two" Title="WixProjectFive_FeatureTwo" Level="1" InstallDefault="source" > <ComponentRef Id ="component_two"/> </Feature> <AdminExecuteSequence /> <InstallExecuteSequence> <RemoveExistingProducts After='InstallFinalize' /> </InstallExecuteSequence> <InstallExecuteSequence> <Custom Action="LaunchFile" After="InstallFinalize"> NOT Installed </Custom> </InstallExecuteSequence> <Icon Id="dllClient.exe" SourceFile="E:\Drive E\JANUARY01012009\220109\Meeting Sample\WixProjectFive\Files\dllClient.exe" > </Icon> <Icon Id="DEAT011.ICO" SourceFile="E:\Drive E\JANUARY01012009\220109\Meeting Sample\WixProjectFive\Files\DEAT011.ICO" > </Icon> <Property Id='NOTEPAD'> Notepad.exe </Property> <CustomAction Id='LaunchFile' Property='NOTEPAD' ExeCommand='[INSTALLLOCATION]ReadMe.txt' Return='asyncNoWait' > </CustomAction> </Product> </Wix> here is the log. (UNKNOWN)  Action start 13:04:46: InstallValidate. (STATE)  MSI (s) (10:30) [13:04:46:984]: Feature: ProductFeature_one; Installed: Absent; Request: Local; Action: Local (STATE)  MSI (s) (10:30) [13:04:46:984]: Feature: ProductFeature_two; Installed: Absent; Request: Local; Action: Local (STATE)  MSI (s) (10:30) [13:04:46:984]: Component: Component_one; Installed: Absent; Request: Local; Action: Local (STATE)  MSI (s) (10:30) [13:04:46:984]: Component: component_two; Installed: Absent; Request: Local; Action: Local On Wed, Apr 29, 2009 at 7:43 AM, John Nannenga <john.nanne...@microsoft.com>wrote: > Features and components both have "state" information which indicate the > current state [status] and requested action of the feature / component. > > Refer to: > > http://msdn.microsoft.com/en-us/library/aa368012(VS.85).aspx<http://msdn.microsoft.com/en-us/library/aa368012%28VS.85%29.aspx> > and perhaps this: > http://msdn.microsoft.com/en-us/library/aa367858(VS.85).aspx<http://msdn.microsoft.com/en-us/library/aa367858%28VS.85%29.aspx> > > > WI allows applications [or portions of an application] to run directly from > a network share without the need for the application to be installed on a > local machine [of course, assuming the application supports this, etc...]. > This is what you refer to as "Run from Source". > > What you refer to as "Run from Local" means pretty much just that...the > feature will be installed locally on the machine. > > I don't have an easy to understand WiX sample for this (not sure if someone > already might have blogged on this) > > > > -----Original Message----- > From: sam desilva [mailto:sam.desilv...@gmail.com] > Sent: Wednesday, April 29, 2009 12:09 AM > To: wix-users@lists.sourceforge.net > Subject: [WiX-users] feature component state source /local > > what does it mean by feature component state > how this state stored in registry.? > what is the meaning of run-from-source or run-from-local > it you give any wix example .with mentioning installation steps would be > good; > > ------------------------------------------------------------------------------ > Register Now & Save for Velocity, the Web Performance & Operations > Conference from O'Reilly Media. Velocity features a full day of > expert-led, hands-on workshops and two days of sessions from industry > leaders in dedicated Performance & Operations tracks. Use code vel09scf > and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > > > ------------------------------------------------------------------------------ > Register Now & Save for Velocity, the Web Performance & Operations > Conference from O'Reilly Media. Velocity features a full day of > expert-led, hands-on workshops and two days of sessions from industry > leaders in dedicated Performance & Operations tracks. Use code vel09scf > and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users