I've run into a problem that sounds fairly simple to resolve, however,
I've been spinning my wheels on it for a while.

I've created a CustomAction that requires the install path parameter.
However, the string does not come across correctly in my arguments of
the exe because of the "\".  I need to set it to "/", but my wxs will
not recognize the path.

I've tried all of the following:

C:\Program Files\MyPath\ -- produces incorrect string in exe (C:\Program
Files\MyPath")
C:\\Program Files\\MyPath\\ -- produces incorrect string in exe
(C:\Program Files\MyPath")
C:/Program Files/MyPath/ -- produces error when running MyInstall.msi
(Could not access network location C:/Program Files/MyPath.)
[C:\Program Files\MyPath\] -- produces error when running MyInstall.msi
(Could not access network location [C:\Program Files\MyPath\].)


    <Property Id="INSTALLDIR">C:\Program Files\MyPath\</Property>

    <Binary Id="configupdater"
SourceFile="c:\temp\my_csharp_executable.exe" />

    <CustomAction 
      Id="MyAction" 
      ExeCommand="[mybinary] &quot;[INSTALLDIR]&quot;" 
      BinaryKey="mybinary" Return="check" Execute="immediate" 
      />

Any help is greatly appreciated.

Regards,
~mark

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to