[wix-users] Quotes in Property value
Carlos Sosa
carlos.sosa.us at outlook.com
Fri Mar 23 09:23:46 PDT 2018
Hello tried the Argument by itself but I would get the default dir in front (If I suppressed the target argument)
After testing a few things I ended using both as follows, (I did use the Argument tag) it is now working as expected:
<Property Id="myProperty"
Value=""C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"" />
***********************************
<Shortcut Id="DesktopShortcut"
Name="MyApp" Target="[myProperty]"
Arguments=" --profile-directory=Default --app-id=bakjdbhddeoklmkjica"
Icon ="icon.ico"/>
1000 Thanks for the pointer.
Best.
-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Rob Mensching via wix-users
Sent: Thursday, March 22, 2018 5:38 PM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Cc: Rob Mensching <rob at firegiant.com>
Subject: Re: [wix-users] Quotes in Property value
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"
Name="HelloWorld"
Target="[URL]"
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.
Tnx.
____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/
____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/
More information about the wix-users
mailing list