I am trying to make a database backup on uninstall but for some reason program with redirection always fails in Inno Setup. Here is what I have:
[Run]
Filename: "{#DB_PATH}\mysqldump.exe"; \
Parameters: "-c --compact {#DB_NAME} > {#STORAGE_PATH}\db.sql"; Flags: runhidden;
Filename: "xcopy"; \
Parameters: "{#STORAGE_PATH} {userdesktop}\Backup\ /E/H"; Flags: runhidden;
Filename: "{#DB_PATH}\mysqladmin.exe"; \
Parameters: "shutdown"; Flags: runhidden;
The last two commands works correctly. But the first one never works for some reason. I've already tested the command and it works without any issues.
I am not sure if am doing something wrong so any help is appreciated.