PDA

View Full Version : substitute file separator?



janosh
02-05-2008, 08:17 AM
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?

pv7721
02-05-2008, 08:40 AM
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.

janosh
02-11-2008, 12:33 PM
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.

walking_vart
02-12-2008, 05:12 AM
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)