|
|
#1 |
|
Junior Member
Join Date: Feb 2005
Posts: 3
|
How to skip an open file when compiling?
My script was failing compilation due to an already opened file by another process (sharing violation I guess):
File: failed opening file "C:\EIVA\NaviPac\Data\J047NPOUT611-3-923.npd" !include: error in script: "NaviPacSections.nsh" on line 31 Error in script "C:\EIVA\NaviPac\bin\Scripts\navipac.nsi" on line 166 -- aborting creation process In that case I would like the script to skip the file and continue compilation, not aborting. Is that possible? |
|
|
|
|
|
#2 |
|
Senior Member
Join Date: Jan 2002
Location: Berlin
Posts: 172
|
Try:
File /nonfatal "filename.ext" main purpose for the nonfatal switch is to not abort if a file don't exists |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Feb 2005
Posts: 3
|
I've already tried that with no luck.
Section "Data" NAVIPAC_DATA SetOverwrite on File /nonfatal /r ${SCRIPT_ARG_SOURCEDIR}\Data DetailPrint ">>> $INSTDIR\Data extracted..." SectionEnd Thanks anyway. |
|
|
|
|
|
#4 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
Please open a bug report about this.
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#5 |
|
Junior Member
Join Date: Feb 2005
Posts: 3
|
Ok, done that under ID
1143585 Failing when compiling an already opened file |
|
|
|
|
|
#6 | |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
Just to let you know, I have closed down the bug report and marked it as Won't Fix. As said in the report:
Quote:
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|