Hello,
I am trying to launch a .bat file after my installation has finished. I have added it as a custom action, and I am trying to call a batch file (As administrator) and pass it the [APPDIR] as an argument in the command line field. When I pass the command line as just [APPDIR], the argument goes through, and because there are spaces in my path, since it's going to program files, the path fails when it gets to my .bat file (since it's an incomplete path). So, I added quotes around [APPDIR] and made it like this "[APPDIR]". But now, when I try to run it, I get an error saying, "There is a problem with this Windows Install package. A program ran as part of the setup did not finish as expected.". This only happens when I pass it with the quotes. I am testing this with a batch file designed to simply echo my argument passed to it.
When I pass it without quotes, I am able to see the first part of the path "C:\Program", however, if I try to add the quotes, my batch file will not even run or display anything, I just get the error.
What's interesting, because I am running it as admin, when the UAC control comes up, if I click on more details, I am able to see that the argument is being passed to my .bat file with the quotes around it, however, when it tries to run, I get the error.
Are there any ideas on what could be causing this issue?
Thanks