blue_harvester
6th June 2006 09:32 UTC
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?
Afrow UK
6th June 2006 11:11 UTC
I guess you'll have to use:
http://nsis.sourceforge.net/StrReplace_v4
-Stu
blue_harvester
6th June 2006 15:07 UTC
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!