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

Shelly Horowitz shellyh at microsoft.com
Sun Feb 7 03:49:18 PST 2016


Thanks for your replies!

Eventually it worked with :
Argument='"parameter1string" "%1"'

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Wesley Manning
Sent: Wednesday, February 3, 2016 7:07 PM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Subject: Re: [wix-users] Passing multiple parameters to the target file Argument attribute in ProgId

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 https://na01.safelinks.protection.outlook.com/?url=http%3a%2f%2fwww.firegiant.com%2f&data=01%7c01%7cshellyh%40064d.mgd.microsoft.com%7c6e656435bb944cb7665b08d32cbc78e8%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=fvKQ%2fY344a6lZrcT5gaWW%2bsnjLeWKJOfYNBiNtG6azM%3d

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant https://na01.safelinks.protection.outlook.com/?url=http%3a%2f%2fwww.firegiant.com%2f&data=01%7c01%7cshellyh%40064d.mgd.microsoft.com%7c6e656435bb944cb7665b08d32cbc78e8%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=fvKQ%2fY344a6lZrcT5gaWW%2bsnjLeWKJOfYNBiNtG6azM%3d



More information about the wix-users mailing list