[wix-users] Quotes in Property value

Rob Mensching rob at firegiant.com
Thu Mar 22 16:37:55 PDT 2018

Try Shortcut/@Arguments. 

PS: SetProperty should be unnecessary.
 Short replies here. Complete answers over there: http://www.firegiant.com/

-----Original Message-----
From: wix-users <wix-users-bounces at lists.wixtoolset.org> On Behalf Of Carlos Sosa via wix-users
Sent: Thursday, March 22, 2018 3:57 PM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Cc: Carlos Sosa <carlos.sosa.us at outlook.com>
Subject: [wix-users] Quotes in Property value

Hello, I'm trying to create a shortcut pointing to the following URL (This forces a web page to open with Chrome even if Chrome is not the default):

"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"; --profile-directory=Default --app-id=boklmkjica

I'm doing this:

<SetProperty Id="URL" Value='"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --profile-directory=Default --app-id= boklmkjica' Sequence="execute"  Before="CreateShortcuts"/>

And calling it like:

   <Shortcut Id="DesktopShortcut"
                Icon ="icon.ico"/>

The Installer fails creating the short cut:
Warning 1909 Could not créate ShortCut
If I remove the " it creates the shortcut but it doesn't work I need to have the quotes.

Any help is appreciated.

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

More information about the wix-users mailing list