Announcement

Collapse
No announcement yet.

Path outside installer path

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Path outside installer path

    Hi guys,

    I just want to know how can I change $OUTDIR var to path outside installer path?

    I tried to use this dummy code but it didn't work! it gave me "..\src" where is should be c:\src where the installer sited in c:\bin
    code:
    SetOutPath $EXEDIR
    SetOutPath ..\src
    MessageBox MB_OK $OUTDIR


  • #2
    GetFullPathName
    IntOp $PostCount $PostCount + 1

    Comment


    • #3
      Don't use relative paths, i.e. use $EXEDIR\..\src. If someone runs your installer from a different working/current directory you will have problems.

      Stu

      Comment


      • #4
        Originally Posted by Anders View Post
        GetFullPathName
        This didn't fix the issue, it gives me the path only! I just want to change current path over the installer one.

        Comment


        • #5
          Originally Posted by Afrow UK View Post
          Don't use relative paths, i.e. use $EXEDIR\..\src. If someone runs your installer from a different working/current directory you will have problems.

          Stu
          Your note is absolutely right but I'm using two installers so I'm sure there will not be any problem in paths.

          Comment

          Working...
          X
          😀
          🥰
          🤢
          😎
          😡
          👍
          👎