I want to run an EXE prior to uninstalling an application, with a certain parameter. This EXE resides in the application folder, where the program is installed.
I have added a predefined action under InstallExecuteSequence\Begin
Now - I can run it just fine when hard coding the "Command Line" property under General Properties, like this:
"c:\Program files\My Company\My Project\My Executable.exe" /MyArgument
What my problem is - no matter what variables i use, like [Appdir] with and without quotes, [#MyApplication.exe] etc., it simply won't work, the uninstaller cannot find the EXE-file.
How do I solve this?