Same way you're passing your other parameters to your perl script. Only
difference is you need to put square brackets around Properties e.g.
[INSTALLDIR] and you might need to make them Public.


Palbinder Sandher 
Software Deployment & IT Administrator
T: +44 (0) 141 945 8500 
F: +44 (0) 141 945 8501 

http://www.iesve.com 
**Design, Simulate + Innovate with the <Virtual Environment>**
Integrated Environmental Solutions Limited. Registered in Scotland No.
SC151456 
Registered Office - Helix Building, West Of Scotland Science Park,
Glasgow G20 0SP
Email Disclaimer 

 

-----Original Message-----
From: DaveCory [mailto:dave_c...@agilent.com] 
Sent: 09 March 2009 11:10
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Passing parameters to install scripts


Hi there,

I have create two controls where I want tohe user to enter some text. I
want to then pass these two parameters to a script which does some
further work.
The controls are defined as

<Control Id="DBLabel" Type="Text" X="45" Y="73" Width="100" Height="15"
TabSkip="no" Text="UserName" />
<Control Id="DBEdit" Type="Edit" X="45" Y="85" Width="220" Height="18"
Property="DBName" Text="{80}"/>

<Control Id="DBStringLabel" Type="Text" X="45" Y="110" Width="100"
Height="15" TabSkip="no" Text="Connnection String" /> <Control
Id="DBStringEdit" Type="Edit" X="45" Y="122" Width="220"
Height="18" Property="DBString" Text="{80}"/>

I then have a CustomAction wxs file that I want to pass DBName and
DBString parameters to the serviceCheck.pl script in the following wxs
file. How do you do that?

<?xml version='1.0' encoding='windows-1252'?> <Wix
xmlns='http://schemas.microsoft.com/wix/2003/01/wi'>
  <Fragment Id='CUSTOMACTIONS'>

    <Binary Id="wixca" src="..\..\..\wix\wixca.dll"/>

    <CustomAction Id="InstallCommon.Command"
      Property="QtExecCmdLine" Value="&quot;perl&quot;
&quot;[bin]serviceCheck.pl&quot; &quot;install&quot;
&quot;[bin]&quot;"/>

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

    <CustomAction Id="DeinstallCommon.Command"
                  Property="QtExecCmdLine" Value="&quot;perl&quot;
&quot;[bin]serviceCheck.pl&quot; &quot;deinstall&quot;
&quot;[bin]&quot;"/>

    <CustomAction Id="DeinstallCommon" 
                  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="InstallCommon.Command" After="InstallFinalize">NOT
Installed</Custom>
      <Custom Action="InstallCommon" After="InstallCommon.Command">NOT
Installed</Custom>

      <!-- If installed, generate the uninstall command and execute it
(before removing any files) -->
      <Custom Action="DeinstallCommon.Command"
Before="DeinstallCommon">Installed</Custom>
      <Custom Action="DeinstallCommon"
Before="RemoveFiles">Installed</Custom>
    </InstallExecuteSequence>
    
  </Fragment>
</Wix>
--
View this message in context:
http://n2.nabble.com/Passing-parameters-to-install-scripts-tp2448392p244
8392.html
Sent from the wix-users mailing list archive at Nabble.com.


------------------------------------------------------------------------
------
Open Source Business Conference (OSBC), March 24-25, 2009, San
Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the
Enterprise
-Strategies to boost innovation and cut costs with open source
participation
-Receive a $600 discount off the registration fee with the source code:
SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to