Menu

#4 Error opening file for writing

2.0 Alpha Series
closed-fixed
General (291)
9
2002-09-19
2002-09-17
Mike Dubman
No

hello,
Please help with a following problem:

I created the installable package with beta 7 version.
The options inside .nsi file are set to always overwrite.

Sometimes, while installing the package - i get popup
with a message:

Error opening file for writing:
"0xC\build.xml"

Hit Abort to abort or retry....

The installation goes into the new empty dir and no
chance that there is already file which can conflict. It is
happens pretty rarely.

Please help.

Discussion

1 2 > >> (Page 1 of 2)
  • Mike Dubman

    Mike Dubman - 2002-09-17

    nsi file

     
  • Robert Rainwater

    • labels: 458220 --> General
     
  • Amir Szekely

    Amir Szekely - 2002-09-17

    Logged In: YES
    user_id=584402

    I don't see ${APPDIR} defined any where in your program.
    That should be the problem. If you wish to copy/extract files
    into the installation dir use $INSTDIR.

     
  • Amir Szekely

    Amir Szekely - 2002-09-17
    • assigned_to: nobody --> kichik
    • status: open --> closed-invalid
     
  • Amir Szekely

    Amir Szekely - 2002-09-17

    Logged In: YES
    user_id=584402

    You also forgot to define ${NAME}, ${VER_MAJOR}, and
    ${VER_MINOR}.

     
  • Mike Dubman

    Mike Dubman - 2002-09-17

    Logged In: YES
    user_id=154547

    here is a command line for createing exe file: sorry, forget to
    attach as well:

    D:\tng\NSIS\Makensis.exe /V4 /CD /DNAME=Optimizer /DVE
    R_MAJOR=3.0 /DVER_MINOR=10 /DAPPDIR=../src
    tng_installer.nsi

     
  • Mike Dubman

    Mike Dubman - 2002-09-17
    • status: closed-invalid --> open-invalid
     
  • igor

    igor - 2002-09-17

    Logged In: YES
    user_id=612923

    I've also faced this problem. However, I found it only with
    ModernUI. If I delete "Modern" stuff, everything works OK.
    Is this possible?

     
  • Amir Szekely

    Amir Szekely - 2002-09-17

    Logged In: YES
    user_id=584402

    Can you please attach makensis log too?

     
  • Amir Szekely

    Amir Szekely - 2002-09-17
    • priority: 5 --> 7
     
  • Mike Dubman

    Mike Dubman - 2002-09-17

    installer log

     
  • Amir Szekely

    Amir Szekely - 2002-09-17

    Logged In: YES
    user_id=584402

    Are you using the latest CVS version?
    Does it always happen with build.xml? Does it always
    happen with the first file compressed?
    rio3, are you aware of a specific part in the "modern stuff"
    that causes this? Try removing the .onInitDialog stuff and see
    if it works.
    dubman, do you get this only with modern UI too?
    What Windows version have you tested this on?
    Please try adding MessageBox MB_OK $OUTDIR before the
    File line, and tell me what it shows if the File command fails.

     
  • Mike Dubman

    Mike Dubman - 2002-09-18

    Logged In: YES
    user_id=154547

    - Im using the nsisa7.exe archive available for download from
    sourceforge.

    - It is always happens with build.xml file.
    - I have this situation while using bzip2 for compression, and
    modern stuff.
    - Im using it on w2k machines.
    - Ive changed the installer.nsi file to use zlib and still did not
    reproduce the failure.
    - Ill try your hints and update you.

    Thanks!

     
  • igor

    igor - 2002-09-18

    Logged In: YES
    user_id=612923

    - nsis 2a7
    - xpsp1
    - if i comment out .oninitdialog, everithing works ok, same as
    when not using modern ui.
    - when using modern ui with .onInitDialog, installer:
    a) does not create directory and copy files. (reproducable)
    b) creates directory, but copies only uninstaller.exe (cannot
    reproduce often)
    c) report 0xC\... (cannot reproduce often)

    any answer is correct.
    :-)

    deeper insight tells that if i put message box with $OUTDIR
    as you suggested (MessageBox MB_OK $OUTDIR),
    everything works! Even if this msgbox is first line in first
    section (OUTDIR not set yet). Without it, no dir is created...
    here is section:

    Section "Notification demo program" SecDemo
    MessageBox MB_OK $OUTDIR ; with this line script works!
    SectionIn 1 2 3
    SetOutPath "$INSTDIR"

    ; MessageBox MB_OK $OUTDIR ; with this line script works!

    File "VarNotifyDemo.exe"
    File "..\Release\EnCom.dll"
    RegDLL $INSTDIR\EnCom.dll

    SectionEnd

    if you want, i can send you this script...

     
  • Amir Szekely

    Amir Szekely - 2002-09-18

    Logged In: YES
    user_id=584402

    OK, thank you all for you information. I now know what the
    bug is, and it is a nasty one. I will fix this ASAP. Don't
    use .onInitDialog and you should be OK.

     
  • Amir Szekely

    Amir Szekely - 2002-09-18
    • priority: 7 --> 9
     
  • Amir Szekely

    Amir Szekely - 2002-09-18

    Logged In: YES
    user_id=584402

    Latest CVS version should fix this. Please try it and let me
    know.

     
  • Amir Szekely

    Amir Szekely - 2002-09-18

    Logged In: YES
    user_id=584402

    On second thought, it shouldn't work... I need to think about
    it some more.

     
  • Amir Szekely

    Amir Szekely - 2002-09-18
    • status: open-invalid --> open-fixed
     
  • Amir Szekely

    Amir Szekely - 2002-09-18

    Logged In: YES
    user_id=584402

    OK, it is ready. Try now, it should work.

     
  • Mike Dubman

    Mike Dubman - 2002-09-18

    Logged In: YES
    user_id=154547

    could you please put a fix/update somewhere ? I have no
    access to CVS from here. Thanks!

     
  • Amir Szekely

    Amir Szekely - 2002-09-18

    Logged In: YES
    user_id=584402

    Attached.

     
  • Amir Szekely

    Amir Szekely - 2002-09-18

    This should fix the bug

     
  • Mike Dubman

    Mike Dubman - 2002-09-19

    Logged In: YES
    user_id=154547

    hello,
    I replaced the fixed binary and created a new installer archive.
    When tried to install from this archive got new side effect:

    The license page has displayed with only AGREE/CANCLEL
    buttons - with no license text inside. The license dialog did
    not react when press on AGREE/CANCEL buttons.
    Something bad happend. I replaced to old bimary file back
    and created archive again - all works well.

    Please suggest.

     
  • Mike Dubman

    Mike Dubman - 2002-09-19

    Logged In: YES
    user_id=154547

    The new log file is attached.

     
1 2 > >> (Page 1 of 2)

Log in to post a comment.

MongoDB Logo MongoDB