[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Menu

#399 FileRequest alters working directory

2.0 Series
closed-fixed
5
2005-09-13
2005-09-11
quotient
No

Great Installer!

If the OutFile does not exist in the same directory as
the .nsi file then all bitmaps and icons will disappear
following the selection of a file using a FileRequest
control (when using the InstallOption plugin) or a Button
control with the OPEN_FILEREQUEST flag (when using
the InstallOptionsEx plugin - Note: I haven't checked the
SAVE_FILEREQUEST flag). Most other controls have
been checked but I could only reproduce thios bug
when a FileRequest control was used. I'm
predominantly using version 2.08.

I use a directory structure that allows me to store
project elements in different directories, i.e. one for
artwork, one for .nsi files, one for .ini files, one for
outfiles, and so on. This means I can build large and
complex installers which can for example compile and
execute "sub-installers"...

Any chance you can help me out here, because for me
it's not just a matter of preventing directory clutter but
this behaviour can break some of my scripts?

Please find an example script attached that
demonstares the bug. If you should need any more
information, please don't hesitate to ask.

Cheers

Discussion

  • quotient

    quotient - 2005-09-11

    Bug Example (Compilation Required)

     
  • Amir Szekely

    Amir Szekely - 2005-09-13
    • assigned_to: nobody --> kichik
    • summary: Nested OutFile Location + FileRequest + BMP = No Bitmaps --> FileRequest alters working directory
    • status: open --> closed-fixed
     
  • Amir Szekely

    Amir Szekely - 2005-09-13

    Logged In: YES
    user_id=584402

    Seems like GetOpenFileName and GetSaveFileName alter the
    working directory as they work. There's a flag called
    OFN_NOCHANGEDIR which should override this, but according to
    MSDN it doesn't work for GetOpenFileName. I've added code to
    save and restore the working directory so this doesn't
    happen. Thanks for your report.

    You should consider using fully qualified paths for the
    bitmap locations. It is possible other parts of the script
    will change the working directory. To use fully qualified
    paths, simply write them at runtime to the INI using
    WriteINIStr.

     
  • quotient

    quotient - 2005-09-13

    Logged In: YES
    user_id=1335403

    Thanks for following it up so quickly, kichik. I'll now hit a
    deliverable for the boss later this week!

     
  • Nobody/Anonymous

    Tracker.. Great! :)

     

Log in to post a comment.