cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
janosh
Level 3

substitute file separator?

Hello all,

when I am installing on Windows I need $USER_INSTALL_DIR$ with file separator '/'.

In ISMP resolveString("$N(C:\Temp, /)") returned "C:/Temp". The function $N could be used within the IDE to modify text files.

How can I get a similar action in IA? Is a custom action required?
Labels (1)
0 Kudos
(3) Replies
pv7721
Level 20

Hello Janosh

You've got the built-in Search And Replace action in IA, but I'm afraid that it only works for files, not for variables.
0 Kudos
janosh
Level 3

I wrote a custom action to set USER_INSTALL_DIR_SUB and USER_MAGIC_FOLDER_1_SUB with the file.separator of the "other" (Windows <-> Unix) OS.
This is working.
0 Kudos
walking_vart
Level 3

IA 2008 has a plug-in available for download that can modify strings (replace one substring with another, get parent folder of the path provided and soon)
0 Kudos