tags:

views:

526

answers:

1

What I want to do with this script is to copy a file in a folder who already exists. But it can be at the root (C:) or in the program files.

There what I want, but this script doesn’t work:

  ${If} ${FileExists} "C:\Cisco Systems\VPN Client\Profiles"
    InstallDir "C:\Cisco Systems\VPN Client\Profiles"
  ${ElseIf} ${FileExists} "$PROGRAMFileS\Cisco Systems\VPN Client\Profiles"
    InstallDir "$PROGRAMFileS\Cisco Systems\VPN Client\Profiles"
  ${EndIf}

Someone can help me?

Thank you

A: 

set $instdir in .onInit with strcpy

Anders