Hi everyone.

Thanks for all the responses from everyone, they have all helped me to get
to the basic stage of install and de-install and performing some action. The
final result was (probably not dis-similar to what is posted here) but I
always like to finish threads off

    <Binary Id="wixca" src="c:\wix_v2_orig\wixca.dll"/>

    <CustomAction Id="InstallSwapCom.Command"
      Property="QtExecCmdLine" Value="&quot;perl&quot;
&quot;[INSTALLDIR]first.pl&quot; install"/>

    <CustomAction Id="InstallSwapCom" 
                  BinaryKey="wixca" 
                  DllEntry="CAQuietExec" 
                  Execute="immediate" 
                  Return="check"/>

    <CustomAction Id="DeinstallSwapCom.Command"
                  Property="QtExecCmdLine" Value="&quot;perl&quot;
&quot;[INSTALLDIR]first.pl&quot; deinstall"/>

    <CustomAction Id="DeinstallSwapCom" 
                  BinaryKey="wixca" 
                  DllEntry="CAQuietExec" 
                  Execute="immediate" 
                  Return="ignore"/>

    <InstallExecuteSequence>
      <!-- If not installed, generate the install command and execute it
(after finializing the install) -->
      <Custom Action="InstallSwapCom.Command" After="InstallFinalize">NOT
Installed</Custom>
      <Custom Action="InstallSwapCom" After="InstallSwapCom.Command">NOT
Installed</Custom>

      <!-- If installed, generate the uninstall command and execute it
(before removing any files) -->
      <Custom Action="DeinstallSwapCom.Command"
Before="DeinstallSwapCom">Installed</Custom>
      <Custom Action="DeinstallSwapCom"
Before="RemoveFiles">Installed</Custom>
    </InstallExecuteSequence>

Regards and thanks


John Vottero wrote:
> 
> Here's how we call CAQuietExec twice:
> 
>               <CustomAction 
>                       Id="SetCreateDB" 
>                       Property="CreateDB"
>                       Value="&quot;[#JAMSDBAEXE]&quot; INSTALL"/>
> 
>               <CustomAction 
>                       Id="SetLoadDB" 
>                       Property="LoadDB"
>                       Value="&quot;[#JAMSDBAEXE]&quot; LOAD"/>
> 
>               <Property Id="QtExecCmdTimeout" Value="6000000"/>
>               <CustomAction 
>                       Id="CreateDB" 
>                       BinaryKey="wixca" 
>                       DllEntry="CAQuietExec" 
>                       Execute="deferred" 
>                       Impersonate="yes" 
>                       Return="check"/>
>               <CustomAction 
>                       Id="LoadDB" 
>                       BinaryKey="wixca" 
>                       DllEntry="CAQuietExec" 
>                       Execute="deferred" 
>                       Impersonate="yes" 
>                       Return="check"/>
>  
> 
>> -----Original Message-----
>> From: [EMAIL PROTECTED] 
>> [mailto:[EMAIL PROTECTED] On Behalf Of dave_c
>> Sent: Thursday, February 22, 2007 11:47 AM
>> To: wix-users@lists.sourceforge.net
>> Subject: Re: [WiX-users] run a script passing a parameter
>> 
>> 
>> I'm guessing I am mis-understanding what you are telling me 
>> because if I
>> change my code to read
>> 
>>     <Binary Id="wixca" src="c:\wix_v2_orig\wixca.dll"/>
>> 
>>     <Property Id="QtExecCmdLine" Value="&quot;perl&quot;
>> &quot;[INSTALLDIR]first.pl&quot; install"/>
>>       <CustomAction Id="QtExec" BinaryKey="wixca" 
>> DllEntry="CAQuietExec"
>> Execute="immediate" Return="check"/>
>> 
>>     <InstallExecuteSequence>
>>       <Custom Action="QtExec" After="InstallFinalize">NOT 
>> Installed</Custom>
>>     </InstallExecuteSequence>
>> 
>>     <Property Id="QtExecCmdLine" Value="&quot;perl&quot;
>> &quot;[INSTALLDIR]first.pl&quot; deinstall"/>
>>     <CustomAction Id="QtExecu" BinaryKey="wixca" 
>> DllEntry="CAQuietExec"
>> Execute="immediate" Return="check"/>
>> 
>>     <InstallExecuteSequence>
>>       <Custom Action="QtExecu" 
>> After="InstallFinalize">Installed AND NOT
>> REINSTALL</Custom>
>>     </InstallExecuteSequence>
>> 
>> I get an error message during compilation saying, not un-reasonably
>> 'Duplicate Symbol QtExecCmdLine found'
>> 
>> Could you explain more or better show what I shuld have done 
>> in the snippet
>> of code shown.
>> 
>> Bob Arnson-3 wrote:
>> > 
>> > dave_c wrote:
>> >>     <Property Id="QtExecInstall" Value='"perl" 
>> "[INSTALLDIR]first.pl"
>> >> install'/>
>> >>       <CustomAction Id="QtExec" BinaryKey="wixca" 
>> DllEntry="CAQuietExec"
>> >> Execute="immediate" Return="check"/>
>> >>   
>> > 
>> > QuietExec requires the same QtExecCmdLine property to be 
>> set each time 
>> > it's called. You'll need custom actions to set the property 
>> before each 
>> > call to CAQuietExec.
>> > 
>> > -- 
>> > sig://boB
>> > http://bobs.org
>> > 
>> > 
>> > 
>> > 
>> --------------------------------------------------------------
>> -----------
>> > Take Surveys. Earn Cash. Influence the Future of IT
>> > Join SourceForge.net's Techsay panel and you'll get the 
>> chance to share
>> > your
>> > opinions on IT & business topics through brief surveys-and earn cash
>> > 
>> http://www.techsay.com/default.php?page=join.php&p=sourceforge
>> &CID=DEVDEV
>> > _______________________________________________
>> > WiX-users mailing list
>> > WiX-users@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/wix-users
>> > 
>> > 
>> 
>> -- 
>> View this message in context: 
>> http://www.nabble.com/run-a-script-passing-a-parameter-tf32721
>> 81.html#a9103524
>> Sent from the wix-users mailing list archive at Nabble.com.
>> 
>> 
>> --------------------------------------------------------------
>> -----------
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get the 
>> chance to share your
>> opinions on IT & business topics through brief surveys-and earn cash
>> http://www.techsay.com/default.php?page=join.php&p=sourceforge
>> &CID=DEVDEV
>> _______________________________________________
>> WiX-users mailing list
>> WiX-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wix-users
>> 
>> 
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
> 
> 

-- 
View this message in context: 
http://www.nabble.com/run-a-script-passing-a-parameter-tf3272181.html#a9104039
Sent from the wix-users mailing list archive at Nabble.com.


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to