Skip to content

Do not include installer dir when looking for distfiles #34

@liback

Description

@liback

When installing nQuake the user is asked to decide where to install distfiles. However, the installer will also look for distfiles in the same directory as the installer .exe file. This is not intuitive and may cause problems if running the nQuake installer from the browser downloads folder that may at the same time contain old version of distribution files (especially for people maintaining nQuake).

See

${If} ${FileExists} "$EXEDIR\$R0"

Function .installSection
  Pop $R1 # distfile info
  Pop $R0 # distfile filename
  Call .checkDistfileDate
  ${If} ${FileExists} "$EXEDIR\$R0"
    DetailPrint "Extracting $R1, please wait..."
    nsisunz::UnzipToStack "$EXEDIR\$R0" $INSTDIR
  ${ElseIf} ${FileExists} "$DISTFILES_PATH\$R0"
[.......omitted for brevity]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions