Code: Select all
Set Variable Path to
[DEFINE WEB MEDIA FileBag]
Define File Bag : #RelativePath#\\#Branch#\\project\\bin\\#ConfigurationType#\\Executable.exe, get runtime location of files into variable Path
Run Program $Path$\\Executable.exe -u $username$ -p $password$ -A (WAIT)
MessageBox: Setup, Path = $Path$$NEWLINE$$NEWLINE$Code = $Code$
I appropriately set the compiler variables. When the code runs the MessageBox always shows:
Path =
Code = 0
Executable.exe will never return zero. The build output doesn't show the file Executable.exe being copied. I know that File Bag might not work in Debug mode (learned from a different post) so I tried it both in Debug and in the real world with the same result. So what am I doing wrong? Do I not understand the intent or usage of File Bag? Does Run Program automatically return 0 if it can't find the file? This code is before the interview (UI); does that matter?