Hi,
You can replace a string in another string by using a
custom action. Here is a sample VBScript custom action which does what you need for the
MY_PATH property:
Code: Select all
Dim text
text=Session.Property("MY_PATH")
text=Replace(text,"\","/")
Session.Property("MY_PATH")=text
Note that this custom action must be set as
Immediate in order to access installer properties. If you want to do this for the path of a file you can use a "Property set with formatted" custom action which sets the MY_PATH property to the path of the file.
Regards,
Cosmin
FOLLOW US
Get the latest news in Application Packaging