Inno Setup - Get a path to parent folder

George Hovhannisian

I need to get the parent folder of {app}. It's standard if the end user didn't change the default, but if he did, it becomes a little more problematic. Basically, I need a function, that will output everything till the last \ backslash (inclusive). Wanted to try Pos, but it only detects the first instance of the character.

Martin Prikryl

Use the ExtractFilePath function:

Extracts the drive and directory parts of the given file name. The resulting string is the leftmost characters of FileName, up to and including the colon or backslash that separates the path information from the name and extension. The resulting string is empty if FileName contains no drive and directory parts.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to get path to the parent folder of a certain directory?

From Dev

Inno setup Classic ASP Enable Parent Paths

From Dev

VBA 03 - Application Path - get to Parent Folder

From Dev

Get radio button value [INNO SETUP]

From Dev

Inno Setup: pack folder with all subfolders

From Dev

Inno Setup: Verify that {app} path contains no spaces

From Dev

How to get the name of the parent folder of a file specified by its full path?

From Dev

Inno-setup pack all files in a folder exept for 1 file

From Dev

How to test if FileExists in folder where Inno Setup is running?

From Dev

How to delete a nonempty folder in inno setup

From Dev

Inno 5 setup get Windows User name

From Dev

Inno Setup: Delete folder with Task function

From Dev

Inno Setup (How to get dynamically path to file)?

From Dev

How to disable OK button in "Browse For Folder" dialog in Inno Setup

From Dev

Inno Setup CreateInputDirPage but don't check for folder existence

From Dev

How to get the full computer name in Inno Setup

From Dev

get relative path with just file name and name of the parent folder

From Dev

Inno Setup: Get 'Don't create a start menu folder' option

From Dev

Empty game folder stays after uninstallation - Inno Setup

From Dev

Inno Setup - How to set permissions of installation folder

From Dev

Creating shortcut in startup folder using Inno setup

From Dev

Inno Setup Use a part of an application path for an icon path

From Dev

How to get spring boot application jar parent folder path dynamically?

From Dev

Get path of parent folder of script location : Applescript

From Dev

Inno Setup User Home Path

From Dev

VBA 03 - Application Path - get to Parent Folder

From Dev

Inno Setup: Get 'Don't create a start menu folder' option

From Dev

Inno Setup get directory size including subdirectories

From Dev

Inno Setup shortcuts for folder are not opening in Windows 10

Related Related

  1. 1

    How to get path to the parent folder of a certain directory?

  2. 2

    Inno setup Classic ASP Enable Parent Paths

  3. 3

    VBA 03 - Application Path - get to Parent Folder

  4. 4

    Get radio button value [INNO SETUP]

  5. 5

    Inno Setup: pack folder with all subfolders

  6. 6

    Inno Setup: Verify that {app} path contains no spaces

  7. 7

    How to get the name of the parent folder of a file specified by its full path?

  8. 8

    Inno-setup pack all files in a folder exept for 1 file

  9. 9

    How to test if FileExists in folder where Inno Setup is running?

  10. 10

    How to delete a nonempty folder in inno setup

  11. 11

    Inno 5 setup get Windows User name

  12. 12

    Inno Setup: Delete folder with Task function

  13. 13

    Inno Setup (How to get dynamically path to file)?

  14. 14

    How to disable OK button in "Browse For Folder" dialog in Inno Setup

  15. 15

    Inno Setup CreateInputDirPage but don't check for folder existence

  16. 16

    How to get the full computer name in Inno Setup

  17. 17

    get relative path with just file name and name of the parent folder

  18. 18

    Inno Setup: Get 'Don't create a start menu folder' option

  19. 19

    Empty game folder stays after uninstallation - Inno Setup

  20. 20

    Inno Setup - How to set permissions of installation folder

  21. 21

    Creating shortcut in startup folder using Inno setup

  22. 22

    Inno Setup Use a part of an application path for an icon path

  23. 23

    How to get spring boot application jar parent folder path dynamically?

  24. 24

    Get path of parent folder of script location : Applescript

  25. 25

    Inno Setup User Home Path

  26. 26

    VBA 03 - Application Path - get to Parent Folder

  27. 27

    Inno Setup: Get 'Don't create a start menu folder' option

  28. 28

    Inno Setup get directory size including subdirectories

  29. 29

    Inno Setup shortcuts for folder are not opening in Windows 10

HotTag

Archive