Archive: Default directory for DirRequest field?


Default directory for DirRequest field?
I'm able to put a default directory in the DirRequest field I'm using i.e. D:\programs\product. However, when I run the installer it comes up as D:\\programs\\product. These two back slashes cause problems later in the install, is there any way to get round this and display the original D:\programs\product?


I guess you'll have to use:
http://nsis.sourceforge.net/StrReplace_v4

-Stu


Found a way around it! I was originally setting the State of this field in EclipseNSIS, but instead I now put the following code in on the required page:

InitPluginsDir
File /oname=$PLUGINSDIR\Main_Screen_1.ini "Main_Screen_1.ini"
WriteIniStr "$PLUGINSDIR\Main_Screen_1.ini" "Field 4" "State" "D:\Programs\Product"


This worked a treat!