Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: Directory is not writable or accessible.

  1. #1

    Default Directory is not writable or accessible.

    Friedrich -

    With the new build, our installs are doing this, no matter what we
    make the target folder.

    The install-building guy (the boss) needed to get two builds out this
    morning, and now they don't work.

    I'm getting the same problem on my own machine.

    The previous build worked fine.

    Any ideas?

    Jeff Slarve
    Attached Images Attached Images  

  2. #2

    Default Re: Directory is not writable or accessible.

    Jeff,

    > With the new build, our installs are doing this, no matter what we
    > make the target folder.
    >
    > The install-building guy (the boss) needed to get two builds out this
    > morning, and now they don't work.
    >
    > I'm getting the same problem on my own machine.
    >
    > The previous build worked fine.
    >
    > Any ideas?

    The following in your script defines the installation folder:

    ! Important: Initialize default install folder and program group variables
    Set Variable %_SB_INSTALLDIR% to "[INSTALLDIR]"

    Perhaps you have removed or commented-out the above?

    Friedrich

  3. #3

    Default Re: Directory is not writable or accessible.

    BTW, and make sure you have a valid installation folder defined in the
    "General Properties".

    And that, if you try to read the folder of a previously installed package,
    the installer was able to retrieve the path.

    Your screenshot tells us that the %_SB_INSTALLDIR% is empty.

    Friedrich
    Attached Images Attached Images  

  4. #4

    Default Re: Directory is not writable or accessible.

    Hi Friedrich -

    There's a hard-coded value there, and it definitely gets set properly
    as the default.

    Then I did a message box of %_SB_INSTALLDIR% right after the wizard
    dialogs, and it correctly said "c:\e4clicks"

    Jeff Slarve
    Attached Images Attached Images  

  5. #5

    Default Re: Directory is not writable or accessible.

    Hi Jeff,

    > There's a hard-coded value there, and it definitely gets set properly
    > as the default.
    >
    > Then I did a message box of %_SB_INSTALLDIR% right after the wizard
    > dialogs, and it correctly said "c:\e4clicks"

    Would it be possible to send me the .sb7 project?

    And it would be great if you could start the setup.exe (compiled with SB72)
    with the /E switch (e.g. setup.exe /E) and send me the created
    c:\sbevents.txt. Then we can see what happens and where it happens.

    Thanks,
    Friedrich

  6. #6

    Default Re: Directory is not writable or accessible.

    Here is the problem:

    Create Installation App & Log "[UNINSTALL_LOG]"

    Not sure if this was there before, but this line was in my script,
    even though uninstall was not enabled.

    Once I commented that out, it was groovy.

    Jeff Slarve

  7. #7

    Default Re: Directory is not writable or accessible.

    Hi Jeff,

    > Here is the problem:
    >
    > Create Installation App & Log "[UNINSTALL_LOG]"
    >
    > Not sure if this was there before, but this line was in my script,
    > even though uninstall was not enabled.
    >
    > Once I commented that out, it was groovy.

    Yes, good point and very good finding.

    The following change causes this:

    ---

    CHANGE : Installer: If the uninstall .exe and .log creation fails, the
    uninstall registry information is not written.

    ---

    In the past, if the 'Create Installation App & Log "[UNINSTALL_LOG]"'
    function failed, it failed silently. This caused trouble because the
    registry information for uninstall was written even if the uninstall .exe
    and .log were not created.

    We'll change the installer runtime in such a way that this line is not
    executed if the uninstall support is disabled.

    Thanks for bringing this to my attention.

    Friedrich

  8. #8

    Default Re: Directory is not writable or accessible.

    Thanks a lot.

    Jeff Slarve

  9. #9

    Default Re: Directory is not writable or accessible.

    And it only happens if [UNINSTALL_LOG] is empty. That's why we do not see a
    folder in your screenshot.

    If "Support Uninstall" in the General Properties is set to "No", then no
    uninstall.exe is created. But if you have the 'Create Installation App &
    Log "[UNINSTALL_LOG]"' line in your script, then the .log is created, even
    if "Support Uninstall" is disabled.

    In the past, this failed silently. In SB72, this results in a fatal error
    because this scenario caused trouble.

    Friedrich

  10. #10

    Default Re: Directory is not writable or accessible.

    I don't know if he put that in there intentionally, or if it was
    created by default or by messing with project settings, or whatever.

    So now, you're just going to ignore that code if uninstall's not
    enabled?

    Jeff Slarve

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •