mattcoz
29th April 2013 22:27 UTC
MUI_FINISHPAGE_RUN not working for some programs
This is very strange. I have my installer set up to run a program using MUI_FINISHPAGE_RUN, but it doesn't run. If I change to a different program, it runs fine. The file is definitely there, and I can run the program afterwards. The one caveat here is that the program is a Java application that I wrapped using launch4j. Is it possible that it is launching in the same Java process as the installer and then that Java process is ending when the installer ends? If this is the case, does anyone know a way around it?
Anders
30th April 2013 06:08 UTC
Does it need UAC elevation? You could try using the run function define and then use ExecShell in this function...
mattcoz
30th April 2013 18:19 UTC
Thanks, gave that a try and it didn't help. I also tried ExecWait thinking it would keep the Java process open. I ended up figuring it out though, and it was weird. The problem had something to do with the working directory. I had to use SetOutPath to reset it to the directory that I installed the program to. Not sure why, but it works now.
Anders
30th April 2013 18:23 UTC
Java apps tend to be picky about their working dir, this is not a good thing! It should be treated as a bug in your app or the java launcher...