Use .ini customize dialog from a different folder
I have a few setup using the same customize dialog (.ini files). Now in order to avoid multiple copy/paste every time I change the dialog I moved the .ini file in a different folder.
All my scripts are using solid compression.
The problem is that I am now unable to display it from my setup.
Here is the relevant part of my script:
...
ReserveFile "..\Dialog\myDialog.ini"
...
Function .onInit
InitPluginsDir
SetOutPath "$PLUGINSDIR"
...
File "..\Dialog\myDialog.ini"
!insertmacro MUI_INSTALLOPTIONS_EXTRACT "..\Dialog\myDialog.ini"
...
FunctionEnd
... then later...
!insertmacro MUI_INSTALLOPTIONS_WRITE "$PLUGINSDIR\myDialog.ini" "Field 1" "Text" $0
but when I start my setup I have the following error message (sorry for the translation bu it was in french):
Error openning file in write mode:
"C:\Docume~1\Xavier\Locals~1\Temp\nsxD4A.temp\..\Dialog\myDialog.ini"
Press Cancel to abort installation, ...
If I replace
!insertmacro MUI_INSTALLOPTIONS_EXTRACT "..\Dialog\myDialog.ini"
with
!insertmacro MUI_INSTALLOPTIONS_EXTRACT "$PLUGINSDIR\myDialog.ini"
the setup is no more Compiling:
"$PLUGINSDIR\myDialog.ini" -> no files found.
I also tried
File /oname=$PLUGINSDIR\myDialog.ini "..\Dialog\myDialog.ini"
just before
!insertmacro MUI_INSTALLOPTIONS_EXTRACT "$PLUGINSDIR\myDialog.ini"
but the setup is not Compiling:
"$PLUGINSDIR\myDialog.ini" -> no files found. on !insertmacro MUI_INSTALLOPTIONS_EXTRACT
Any idea ?