Remove \\\\ from path variable
Posted: Wed Mar 23, 2005 8:44 am
I found that the TARGETDIR variable will sometimes contain a double \\ (like c:\\Program Files\\\\MyApp)
I don't want to use
because I'm not sure that $PROGRAMFILES$ will always end with \\.
As a workaround I tried
however this left me with a \\ at the end (c:\\Program Files\\MyApp\\).
So finally
seems to do the trick. Did I overlook something?
I don't want to use
Code: Select all
Set Variable TARGETDIR = $PROGRAMFILES$$TITLE$
As a workaround I tried
Code: Select all
Set Variable TARGETDIR = $PROGRAMFILES$\\$TITLE$\\X
Extract File Folder: TARGETDIR
however this left me with a \\ at the end (c:\\Program Files\\MyApp\\).
So finally
Code: Select all
Set Variable PROGRAMFILES = $PROGRAMFILES$\\X
Extract File Folder: PROGRAMFILES
Set Variable TARGETDIR = $PROGRAMFILES$$TITLE$
seems to do the trick. Did I overlook something?