From: <no...@so...> - 2002-09-18 14:22:59
|
Bugs item #610504, was opened at 2002-09-17 15:00 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=373085&aid=610504&group_id=22049 Category: General Group: 2.0 Alpha Series Status: Open Resolution: Invalid Priority: 9 Submitted By: Mike Dubman (dubman) Assigned to: Amir Szekely (kichik) Summary: Error opening file for writing Initial Comment: 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. ---------------------------------------------------------------------- >Comment By: Amir Szekely (kichik) Date: 2002-09-18 17:22 Message: Logged In: YES user_id=584402 Latest CVS version should fix this. Please try it and let me know. ---------------------------------------------------------------------- Comment By: Amir Szekely (kichik) Date: 2002-09-18 16:35 Message: 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. ---------------------------------------------------------------------- Comment By: igor (rio3) Date: 2002-09-18 16:11 Message: 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... ---------------------------------------------------------------------- Comment By: Mike Dubman (dubman) Date: 2002-09-18 07:46 Message: 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! ---------------------------------------------------------------------- Comment By: Amir Szekely (kichik) Date: 2002-09-17 22:19 Message: 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. ---------------------------------------------------------------------- Comment By: Amir Szekely (kichik) Date: 2002-09-17 18:32 Message: Logged In: YES user_id=584402 Can you please attach makensis log too? ---------------------------------------------------------------------- Comment By: igor (rio3) Date: 2002-09-17 18:15 Message: 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? ---------------------------------------------------------------------- Comment By: Mike Dubman (dubman) Date: 2002-09-17 17:25 Message: 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 ---------------------------------------------------------------------- Comment By: Amir Szekely (kichik) Date: 2002-09-17 16:45 Message: Logged In: YES user_id=584402 You also forgot to define ${NAME}, ${VER_MAJOR}, and ${VER_MINOR}. ---------------------------------------------------------------------- Comment By: Amir Szekely (kichik) Date: 2002-09-17 16:43 Message: 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. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=373085&aid=610504&group_id=22049 |