[wix-users] Passing multiple parameters to the target file Argument attribute in ProgId

Wesley Manning wmanning at dynagen.ca
Wed Feb 3 09:07:11 PST 2016


Here is what I do: Argument="/program "%1""

You have quotations around parameter1string which is affecting things.  Also there needs to be double quotes around %1.  You need to escape it to satisfy xml.

Wes

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Shelly Horowitz
Sent: February-03-16 12:14 PM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Subject: [wix-users] Passing multiple parameters to the target file Argument attribute in ProgId

Hi,

I'm adding a file association in my installer using ProgId.

I need to pass 2 arguments to the target file  (through Argument), see as follows:

<ProgId Id="FileAssociation" Description="My file>

   <Extension Id="myfile" ContentType="myfile">

       <Verb Id="open" Command="Open" TargetProperty="MyApp.exe" Argument="'parameter1string' %1"/>

   </Extension>

</ProgId>

The first parameter I want to pass is 'parameter1string'
The second parameter is the name of the file.

This is not working this way obviously,
How do I do that?

Any thought?

-Shelly

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/



More information about the wix-users mailing list