Re: [WiX-users] Error when trying to conditionally run something (2753)
Thanks for the response. This would make sense. I only want to run this customAction if I am installing the client side of things. When I select the server side to be installed the executable is not selected for install (it is a feature of the client). So I guess I need to add extra control to the definition of the CustomAction/InstallExecuateSequence over and above on install, but the question now becomes how do I add this extra control. I presume there may be a way of saying Only do on install and if server feature selected. Do you know what this syntax is? Wilson, Phil wrote: Not marked for installation means that the custom action can't run because the target file isn't going to be installed. That could be a consequence of your feature/component arrangement, although sometimes you get it if there is an existing file of an equal or higher version so the one in your package isn't going to be installed. If you run the file from the Binary table the error should go away, or put it in a hidden feature that's always installed. Phil Wilson -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of dave_c Sent: Friday, February 09, 2007 7:31 AM To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Error when trying to conditionally run something (2753) Basically the user would select to install the Client software from the Feature Selection screen Once all the client software has been installed it would then perform a post install action to install the seperate installer (svgview.exe which is an installer in itself) If adding the svgview.exe as a feature can I prevent this from being displayed on the Feature Selection screen also how would this be executed. For the time being I have added the code to my Client Fragment of code ?xml version='1.0' encoding='windows-1252'? Wix xmlns='http://schemas.microsoft.com/wix/2003/01/wi' Fragment Id='ClientFeatures' !-- Called by Business Dashboard.wxs. This file describes the list of possible installable components followed by the actual components we are going to install -- Feature Id='CLIENT' Title='Client Configuration' Description='Features to be installed on the Client PC' Display='collapse' Absent='allow' Level='1' InstallDefault='local' FeatureRef Id='ClientDocs'/ FeatureRef Id='ClientExes'/ FeatureRef Id='ClientLinks'/ !-- Note, no condiition here because we want the ability to install the client on either a client machine or on the server itself-- /Feature Feature Id ='ClientDocs' Level='1' Title='Documents relating to the Agilent Business Dashboard' AllowAdvertise='no' Description='End User documentation' Absent='allow' InstallDefault='local' ComponentGroupRef Id='ClientDocuments' / /Feature Feature Id ='ClientExes' Level='1' Title='Executables that need to be installed on the client machine' AllowAdvertise='no' Description='At the present time only installs svgviewer to view traffic lights in Business Objects.' Absent='allow' InstallDefault='local' ComponentGroupRef Id='ClientExecutables' / /Feature Feature Id ='ClientLinks' Level='1' Title='Links applications' AllowAdvertise='no' Description='At the present time only creates a link to launching the Business Dashboard' Absent='allow' InstallDefault='local' ComponentGroupRef Id='ClientLinks' / /Feature CustomAction Id='LaunchFile' FileKey='svg' ExeCommand='' Return='asyncNoWait' / InstallExecuteSequence Custom Action='LaunchFile' After='InstallFinalize'NOT Installed/Custom /InstallExecuteSequence /Fragment /Wix Interestingly, when I run the installer in debug I get the following error message DEBUG: Error 2753: The File 'svg' is not marked for installation. The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2753. The arguments are: svg, , MSI (s) (BC:7C) [15:25:21:649]: Product: Agilent Business Dashboard -- The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2753. The arguments are: svg, , This hopefulyl provides more insight to the problem and hopefully someone can provide an answer. david adams-2 wrote: Is this function that can be accomplished using the Feature elements? Do you want your Install User to select particular features or do you envision something like a custom dialog that allows them to select Client or Server? Pending their selection on the custom dialog, the correct set of features
Re: [WiX-users] Error when trying to conditionally run something (2753)
Hi there, I've managed to find some more information on the subject and think I have solved the problem I was having. In the CustomAction I've changed the condition from NOT Installed to CustomAction Id='LaunchFile' FileKey='svg' ExeCommand='' Return='asyncNoWait' / InstallExecuteSequence Custom Action='LaunchFile' After='InstallFinalize'$Install=3/Custom /InstallExecuteSequence I.E. Only run if the client component is being installed. I've tried it once and it apeared to work okay. Wilson, Phil wrote: Not marked for installation means that the custom action can't run because the target file isn't going to be installed. That could be a consequence of your feature/component arrangement, although sometimes you get it if there is an existing file of an equal or higher version so the one in your package isn't going to be installed. If you run the file from the Binary table the error should go away, or put it in a hidden feature that's always installed. Phil Wilson -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of dave_c Sent: Friday, February 09, 2007 7:31 AM To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Error when trying to conditionally run something (2753) Basically the user would select to install the Client software from the Feature Selection screen Once all the client software has been installed it would then perform a post install action to install the seperate installer (svgview.exe which is an installer in itself) If adding the svgview.exe as a feature can I prevent this from being displayed on the Feature Selection screen also how would this be executed. For the time being I have added the code to my Client Fragment of code ?xml version='1.0' encoding='windows-1252'? Wix xmlns='http://schemas.microsoft.com/wix/2003/01/wi' Fragment Id='ClientFeatures' !-- Called by Business Dashboard.wxs. This file describes the list of possible installable components followed by the actual components we are going to install -- Feature Id='CLIENT' Title='Client Configuration' Description='Features to be installed on the Client PC' Display='collapse' Absent='allow' Level='1' InstallDefault='local' FeatureRef Id='ClientDocs'/ FeatureRef Id='ClientExes'/ FeatureRef Id='ClientLinks'/ !-- Note, no condiition here because we want the ability to install the client on either a client machine or on the server itself-- /Feature Feature Id ='ClientDocs' Level='1' Title='Documents relating to the Agilent Business Dashboard' AllowAdvertise='no' Description='End User documentation' Absent='allow' InstallDefault='local' ComponentGroupRef Id='ClientDocuments' / /Feature Feature Id ='ClientExes' Level='1' Title='Executables that need to be installed on the client machine' AllowAdvertise='no' Description='At the present time only installs svgviewer to view traffic lights in Business Objects.' Absent='allow' InstallDefault='local' ComponentGroupRef Id='ClientExecutables' / /Feature Feature Id ='ClientLinks' Level='1' Title='Links applications' AllowAdvertise='no' Description='At the present time only creates a link to launching the Business Dashboard' Absent='allow' InstallDefault='local' ComponentGroupRef Id='ClientLinks' / /Feature CustomAction Id='LaunchFile' FileKey='svg' ExeCommand='' Return='asyncNoWait' / InstallExecuteSequence Custom Action='LaunchFile' After='InstallFinalize'NOT Installed/Custom /InstallExecuteSequence /Fragment /Wix Interestingly, when I run the installer in debug I get the following error message DEBUG: Error 2753: The File 'svg' is not marked for installation. The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2753. The arguments are: svg, , MSI (s) (BC:7C) [15:25:21:649]: Product: Agilent Business Dashboard -- The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2753. The arguments are: svg, , This hopefulyl provides more insight to the problem and hopefully someone can provide an answer. david adams-2 wrote: Is this function that can be accomplished using the Feature elements? Do you want your Install User to select particular features or do you envision something like a custom dialog that allows them to select Client or Server? Pending their selection on the custom dialog, the correct set of features should already be enabled / scheduled. David Adams MSN
Re: [WiX-users] Error when trying to conditionally run something (2753)
Wix syntax isn't something I'm very familiar with, but in general you need a feature-action condition based on the feature transitioning to an installed state, FeatureName=3. Phil Wilson -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of dave_c Sent: Wednesday, February 14, 2007 2:16 AM To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Error when trying to conditionally run something (2753) Thanks for the response. This would make sense. I only want to run this customAction if I am installing the client side of things. When I select the server side to be installed the executable is not selected for install (it is a feature of the client). So I guess I need to add extra control to the definition of the CustomAction/InstallExecuateSequence over and above on install, but the question now becomes how do I add this extra control. I presume there may be a way of saying Only do on install and if server feature selected. Do you know what this syntax is? Wilson, Phil wrote: Not marked for installation means that the custom action can't run because the target file isn't going to be installed. That could be a consequence of your feature/component arrangement, although sometimes you get it if there is an existing file of an equal or higher version so the one in your package isn't going to be installed. If you run the file from the Binary table the error should go away, or put it in a hidden feature that's always installed. Phil Wilson -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of dave_c Sent: Friday, February 09, 2007 7:31 AM To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Error when trying to conditionally run something (2753) Basically the user would select to install the Client software from the Feature Selection screen Once all the client software has been installed it would then perform a post install action to install the seperate installer (svgview.exe which is an installer in itself) If adding the svgview.exe as a feature can I prevent this from being displayed on the Feature Selection screen also how would this be executed. For the time being I have added the code to my Client Fragment of code ?xml version='1.0' encoding='windows-1252'? Wix xmlns='http://schemas.microsoft.com/wix/2003/01/wi' Fragment Id='ClientFeatures' !-- Called by Business Dashboard.wxs. This file describes the list of possible installable components followed by the actual components we are going to install -- Feature Id='CLIENT' Title='Client Configuration' Description='Features to be installed on the Client PC' Display='collapse' Absent='allow' Level='1' InstallDefault='local' FeatureRef Id='ClientDocs'/ FeatureRef Id='ClientExes'/ FeatureRef Id='ClientLinks'/ !-- Note, no condiition here because we want the ability to install the client on either a client machine or on the server itself-- /Feature Feature Id ='ClientDocs' Level='1' Title='Documents relating to the Agilent Business Dashboard' AllowAdvertise='no' Description='End User documentation' Absent='allow' InstallDefault='local' ComponentGroupRef Id='ClientDocuments' / /Feature Feature Id ='ClientExes' Level='1' Title='Executables that need to be installed on the client machine' AllowAdvertise='no' Description='At the present time only installs svgviewer to view traffic lights in Business Objects.' Absent='allow' InstallDefault='local' ComponentGroupRef Id='ClientExecutables' / /Feature Feature Id ='ClientLinks' Level='1' Title='Links applications' AllowAdvertise='no' Description='At the present time only creates a link to launching the Business Dashboard' Absent='allow' InstallDefault='local' ComponentGroupRef Id='ClientLinks' / /Feature CustomAction Id='LaunchFile' FileKey='svg' ExeCommand='' Return='asyncNoWait' / InstallExecuteSequence Custom Action='LaunchFile' After='InstallFinalize'NOT Installed/Custom /InstallExecuteSequence /Fragment /Wix Interestingly, when I run the installer in debug I get the following error message DEBUG: Error 2753: The File 'svg' is not marked for installation. The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2753. The arguments are: svg, , MSI (s) (BC:7C) [15:25:21:649]: Product: Agilent Business Dashboard -- The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2753
Re: [WiX-users] Error when trying to conditionally run something (2753)
Is this function that can be accomplished using the Feature elements? Do you want your Install User to select particular features or do you envision something like a custom dialog that allows them to select Client or Server? Pending their selection on the custom dialog, the correct set of features should already be enabled / scheduled. David Adams MSN MessengerID: [EMAIL PROTECTED] I actually have two questions relating to this, not sure if I should post one question seperately though I have broken my installer down into having two features, CLIENT and SERVER. What I want to happen is when I install the client feature, upon completion it runs another small installer to lay down some extra functionality that is required If I install the Server component then I do not want the second small installer to run. What I am seeing is, if I install just the CLIENT, then the installer runs to completion correctly. If I install bothe CLIENT and SERVER on the same machine then the installer runs to completion correctly. If I install just the SERVER I get the following error message being displayed The installer has encountered an unexpected error instaling the package. This may indicate a problem with this package. Te error code is 2753 If I check Add/Remove Programs I do see my main installer as having been installed so just not sure if I am handling the condition correctly, possibly related to the (NOT Installed) AND (NOT SVGEXISTS) condition specified. I have the following definitions Condition to check for before running. Idea being check that this is an install and only run if it finds the file in question -- Fragment Id='POSTINSTALL' CustomAction Id='LaunchFile' FileKey='svg' ExeCommand='' Return='asyncNoWait' / InstallExecuteSequence Custom Action='LaunchFile' After='InstallFinalize'(NOT Installed) AND (NOT SVGEXISTS)/Custom /InstallExecuteSequence /Fragment Definition of svg -- DirectoryRef Id='ProgramFilesFolder' Directory Id='Agilent' Name='Agilent' Directory Id='Dashb' Name='dashb' LongName='Business Dashboard' Directory Id='inst' Name='install'/Directory Directory Id='manuals' Name='manuals'/Directory Directory Id='bin' Name='bin'/Directory Directory Id='scripts' Name='scripts'/Directory /Directory /Directory /DirectoryRef Property Id=SVGEEXISTS DirectorySearch Id=CheckFileDir Path=inst Depth=0 FileSearch Id=CheckSVGFile Name=SVGView.exe / /DirectorySearch /Property This bring me to the second question My thinking behind controlling this is to check for a file being laid down as part of the client install. Is there a better mechanism for determining which features were selected during installion in order to decide what to do at the end. -- View this message in context: http://www.nabble.com/Error-when-trying-to-conditionally-run-something-%282753%29-tf3200556.html#a8886179 Sent from the wix-users mailing list archive at Nabble.com. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users _ Dont miss your chance to WIN 10 hours of private jet travel from Microsoft Office Live http://clk.atdmt.com/MRT/go/mcrssaub0540002499mrt/direct/01/ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Error when trying to conditionally run something (2753)
Basically the user would select to install the Client software from the Feature Selection screen Once all the client software has been installed it would then perform a post install action to install the seperate installer (svgview.exe which is an installer in itself) If adding the svgview.exe as a feature can I prevent this from being displayed on the Feature Selection screen also how would this be executed. For the time being I have added the code to my Client Fragment of code ?xml version='1.0' encoding='windows-1252'? Wix xmlns='http://schemas.microsoft.com/wix/2003/01/wi' Fragment Id='ClientFeatures' !-- Called by Business Dashboard.wxs. This file describes the list of possible installable components followed by the actual components we are going to install -- Feature Id='CLIENT' Title='Client Configuration' Description='Features to be installed on the Client PC' Display='collapse' Absent='allow' Level='1' InstallDefault='local' FeatureRef Id='ClientDocs'/ FeatureRef Id='ClientExes'/ FeatureRef Id='ClientLinks'/ !-- Note, no condiition here because we want the ability to install the client on either a client machine or on the server itself-- /Feature Feature Id ='ClientDocs' Level='1' Title='Documents relating to the Agilent Business Dashboard' AllowAdvertise='no' Description='End User documentation' Absent='allow' InstallDefault='local' ComponentGroupRef Id='ClientDocuments' / /Feature Feature Id ='ClientExes' Level='1' Title='Executables that need to be installed on the client machine' AllowAdvertise='no' Description='At the present time only installs svgviewer to view traffic lights in Business Objects.' Absent='allow' InstallDefault='local' ComponentGroupRef Id='ClientExecutables' / /Feature Feature Id ='ClientLinks' Level='1' Title='Links applications' AllowAdvertise='no' Description='At the present time only creates a link to launching the Business Dashboard' Absent='allow' InstallDefault='local' ComponentGroupRef Id='ClientLinks' / /Feature CustomAction Id='LaunchFile' FileKey='svg' ExeCommand='' Return='asyncNoWait' / InstallExecuteSequence Custom Action='LaunchFile' After='InstallFinalize'NOT Installed/Custom /InstallExecuteSequence /Fragment /Wix Interestingly, when I run the installer in debug I get the following error message DEBUG: Error 2753: The File 'svg' is not marked for installation. The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2753. The arguments are: svg, , MSI (s) (BC:7C) [15:25:21:649]: Product: Agilent Business Dashboard -- The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2753. The arguments are: svg, , This hopefulyl provides more insight to the problem and hopefully someone can provide an answer. david adams-2 wrote: Is this function that can be accomplished using the Feature elements? Do you want your Install User to select particular features or do you envision something like a custom dialog that allows them to select Client or Server? Pending their selection on the custom dialog, the correct set of features should already be enabled / scheduled. David Adams MSN MessengerID: [EMAIL PROTECTED] I actually have two questions relating to this, not sure if I should post one question seperately though I have broken my installer down into having two features, CLIENT and SERVER. What I want to happen is when I install the client feature, upon completion it runs another small installer to lay down some extra functionality that is required If I install the Server component then I do not want the second small installer to run. What I am seeing is, if I install just the CLIENT, then the installer runs to completion correctly. If I install bothe CLIENT and SERVER on the same machine then the installer runs to completion correctly. If I install just the SERVER I get the following error message being displayed The installer has encountered an unexpected error instaling the package. This may indicate a problem with this package. Te error code is 2753 If I check Add/Remove Programs I do see my main installer as having been installed so just not sure if I am handling the condition correctly, possibly related to the (NOT Installed) AND (NOT SVGEXISTS) condition specified. I have the following definitions Condition to check for before running. Idea being check that this is an install and only run if it finds the file in question -- Fragment Id='POSTINSTALL' CustomAction Id='LaunchFile'
Re: [WiX-users] Error when trying to conditionally run something (2753)
Not marked for installation means that the custom action can't run because the target file isn't going to be installed. That could be a consequence of your feature/component arrangement, although sometimes you get it if there is an existing file of an equal or higher version so the one in your package isn't going to be installed. If you run the file from the Binary table the error should go away, or put it in a hidden feature that's always installed. Phil Wilson -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of dave_c Sent: Friday, February 09, 2007 7:31 AM To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Error when trying to conditionally run something (2753) Basically the user would select to install the Client software from the Feature Selection screen Once all the client software has been installed it would then perform a post install action to install the seperate installer (svgview.exe which is an installer in itself) If adding the svgview.exe as a feature can I prevent this from being displayed on the Feature Selection screen also how would this be executed. For the time being I have added the code to my Client Fragment of code ?xml version='1.0' encoding='windows-1252'? Wix xmlns='http://schemas.microsoft.com/wix/2003/01/wi' Fragment Id='ClientFeatures' !-- Called by Business Dashboard.wxs. This file describes the list of possible installable components followed by the actual components we are going to install -- Feature Id='CLIENT' Title='Client Configuration' Description='Features to be installed on the Client PC' Display='collapse' Absent='allow' Level='1' InstallDefault='local' FeatureRef Id='ClientDocs'/ FeatureRef Id='ClientExes'/ FeatureRef Id='ClientLinks'/ !-- Note, no condiition here because we want the ability to install the client on either a client machine or on the server itself-- /Feature Feature Id ='ClientDocs' Level='1' Title='Documents relating to the Agilent Business Dashboard' AllowAdvertise='no' Description='End User documentation' Absent='allow' InstallDefault='local' ComponentGroupRef Id='ClientDocuments' / /Feature Feature Id ='ClientExes' Level='1' Title='Executables that need to be installed on the client machine' AllowAdvertise='no' Description='At the present time only installs svgviewer to view traffic lights in Business Objects.' Absent='allow' InstallDefault='local' ComponentGroupRef Id='ClientExecutables' / /Feature Feature Id ='ClientLinks' Level='1' Title='Links applications' AllowAdvertise='no' Description='At the present time only creates a link to launching the Business Dashboard' Absent='allow' InstallDefault='local' ComponentGroupRef Id='ClientLinks' / /Feature CustomAction Id='LaunchFile' FileKey='svg' ExeCommand='' Return='asyncNoWait' / InstallExecuteSequence Custom Action='LaunchFile' After='InstallFinalize'NOT Installed/Custom /InstallExecuteSequence /Fragment /Wix Interestingly, when I run the installer in debug I get the following error message DEBUG: Error 2753: The File 'svg' is not marked for installation. The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2753. The arguments are: svg, , MSI (s) (BC:7C) [15:25:21:649]: Product: Agilent Business Dashboard -- The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2753. The arguments are: svg, , This hopefulyl provides more insight to the problem and hopefully someone can provide an answer. david adams-2 wrote: Is this function that can be accomplished using the Feature elements? Do you want your Install User to select particular features or do you envision something like a custom dialog that allows them to select Client or Server? Pending their selection on the custom dialog, the correct set of features should already be enabled / scheduled. David Adams MSN MessengerID: [EMAIL PROTECTED] I actually have two questions relating to this, not sure if I should post one question seperately though I have broken my installer down into having two features, CLIENT and SERVER. What I want to happen is when I install the client feature, upon completion it runs another small installer to lay down some extra functionality that is required If I install the Server component then I do not want the second small installer to run. What I am seeing is, if I install just the CLIENT, then the installer runs to completion correctly. If I install bothe CLIENT and SERVER on the same