![]() |
How to ReserveFile in other directory?
Well, the problem is that my *.ini files is in other catalog. Problem is similar to this one http://forums.winamp.com/showthread....ht=ReserveFile, but I don't get how he solved it. If you would do like there "!insertmacro MUI_INSTALLOPTIONS_EXTRACT "installoptions.ini" it wouldn't find it.
My code: code: If I wrote "InstallFields\InitFile.ini" in every place where I need to use InitFile.ini, i would get error "Error opening file <..> for writing". So, how should I corectly reserve a file which is in different directory? |
According to that code your ini files are in the same folder as your script (MUI_INSTALLOPTIONS_EXTRACT), so what's the problem?
Stu |
Quote:
Actually, I want to fix that mess with install scripts, so I would like to make folders like "IniFiles", "Scripts", "BatFiles", "Images". That's why i need to reserve files from other directory than my scripts are. |
ReserveFile will work if the file is there relative to your script.
Your code won't work now as it is. You need to use MUI_INSTALLOPTIONS_EXTRACT_AS. Stu |
Quote:
So, now it looks like this and works fine :) code: |
| All times are GMT. The time now is 04:20. |
Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.