But the path has to be relative...
Which path? The path to the encryption program? The
Execute command requires that the application name be either a fully qualified file name or in the Windows search path.
"Relative" implies that the script has knowledge of a base path. If so, build the full name from it. For example,
- Code: Select all
Set $filename ""
AddStrings $filename $path "bfacs.exe"
Execute $filename
Do the same if one of PocoScript's system variables gives the path.
A third option is to have your script search through a list of possible locations (fully qualified file names), for example,
- Code: Select all
I:\download\Barca2\bfacs\bfacs.exe
J:\download\Barca2\bfacs\bfacs.exe
K:\download\Barca2\bfacs\bfacs.exe
for the correct one using
FileExists.