The Id of the property with the command line needs to match the Id of the
custom action you are executing. Also, I don't think CAQuietExec how to execute
non-executable files. In my experience you need to provide the executable to
execute first _in quotes_ before any arguments you want to pass to the
executable.
In the case of opening a file in notepad you would want to use something like
this:
<SetProperty Id="QtExecExample" Value=""[SystemFolder]\notepad.exe"
[DirectoryId]\foo.txt" Before="QtExecExample"/>
<CustomAction Id="QtExecExample" BinaryKey="WixCA" DllEntry="CAQuietExec"
Execute="immediate" Return="check"/>
<InstallExecuteSequence>
<Custom Action="QtExecExample" After="AppSearch"/>
</InstallExecuteSequence>
The above is just an example, you'll need to change SetProperty/@Value to what
you need. I think Directory Ids and File Ids are not available until later in
the sequence but I forget the specific action that needs to complete before
they resolve correctly.
You'll want to look at the documentation for <SetProperty/> to learn more about
it. It schedules a custom action to set the QtExecExample property that will
contain the command line to execute.
I think you'll need to use AppSearch to find the perl executable and then use
<SetProperty/> to set the command line using the perl executable to execute
your script.
Edwin G. Castro
Software Developer - Staff
Digital Channels
Fiserv
Office: 503-746-0643
Fax: 503-617-0291
www.fiserv.com
Please consider the environment before printing this e-mail
> -----Original Message-----
> From: Dmuller720 [mailto:[email protected]]
> Sent: Friday, June 08, 2012 7:35 AM
> To: [email protected]
> Subject: Re: [WiX-users] Perl Script on initialization
>
> yes, perl is in my path, but I do not think that it is a problem with perl, I
> think
> that it is something that I am not doing right in Wix.
>
> So me and my team have sort of refocused and we are at the moment, just
> trying to make wix open notepad.exe after AppSearch.
>
> ...
> <Property Id="QtExecCmdLine" Value="dir > foo.txt"/>
> <CustomAction Id="QtExecExample" BinaryKey="WixCA"
> DllEntry="CAQuietExec" Execute="immediate" Return="check"/>
> </Product>
> <Fragment>
> <InstallExecuteSequence>
> <Custom Action="QtExecExample" After="AppSearch"/>
> </InstallExecuteSequence>
> </Fragment>
> ...
>
> Are we on the right track?
>
>
> --
> View this message in context: http://windows-installer-xml-wix-
> toolset.687559.n2.nabble.com/Perl-Script-on-initialization-
> tp7578584p7578740.html
> Sent from the wix-users mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and threat
> landscape has changed and how IT managers can respond. Discussions will
> include endpoint security, mobile security and the latest in malware threats.
> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> WiX-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users