- NSIS Discussion
- Strange vista bug
Archive: Strange vista bug
colm
20th September 2007 16:03 UTC
Strange vista bug
Hi,
I've got an app which installs and then runs itself.
On XP it always works fine.
On Vista, when the installer tries to run the app (using exec), the application runs, but without arguments.
If I don't have it run automatically after installation, and instead double click on the start menu link it works fine.
If I uninstall, and reinstall, it runs with arguments on installation.
If I uninstall, and install *another* slightly different build the app runs without arguments again.
Any suggestions?
Afrow UK
21st September 2007 11:16 UTC
It would be nice if you showed us your execute instruction.
Stu
colm
21st September 2007 11:19 UTC
Just
Exec "xulrunner.exe application.ini"
Afrow UK
21st September 2007 11:30 UTC
Try a full path:
Exec `"$INSTDIR\xulrunner.exe" "application.ini"`
Stu
colm
21st September 2007 11:33 UTC
I tried that. I also tried:
* Using all permutations of quotes, folder references, starting folders.
* Running it from the start menu link
* Using nsExec, UAC...
* Creating a separate exe which I run first, which then runs it.
Same thing each time.
kichik
21st September 2007 18:30 UTC
If UAC is not the problem, I'm with Afrow on the paths. Try using full paths for both the executable and the INI.
colm
21st September 2007 19:07 UTC
I tried full paths on both.
kichik
21st September 2007 19:12 UTC
Then it's UAC. When you say you've tried UAC, do you mean Anders' UAC plug-in?
Anders
21st September 2007 20:39 UTC
Could it be a current directory issue? (even with full paths)
When you say UAC, are you talking about using "RequestExecutionLevel admin" in the script, or the UAC plugin?
My UAC plugin tries to be smart and add quotes if it thinks it is needed, this might be messing things up. If you can confirm that you are using UAC::Exec and it fails, I will try to look into it (but if a plain exec in a elevated installer instance fails, I'm not sure if there is anything my plugin can do about it)
The fact that a different build breaks even if you did the startmenu thing to make it work for another install leads me to believe that Vista might store a hash or something of your program along with some kind of compatibility setting. What if you just replace the exe(no uninstall/reinstall) after you "fixed" it by running it from the start menu?
colm
22nd September 2007 19:39 UTC
>Then it's UAC. When you say you've tried UAC, do you mean
>Anders' UAC plug-in?
Yep. If it's definitely UAC, do you know how I might fix it?
Anders
22nd September 2007 19:46 UTC
I hate repeating myself, but, when you say UAC, are you talking about the UAC plugin ( http://nsis.sourceforge.net/UAC_plug-in ) or just UAC in general?
colm
22nd September 2007 19:48 UTC
Yep as in yes I used the UAC plugin (which didn't do anything different, although I may have been misusing it).
Anders
22nd September 2007 20:09 UTC
could you upload your script (or a minimal version with the same problem)?
RobertStrong
1st October 2007 07:53 UTC
This is due to a bug in Mozilla
https://bugzilla.mozilla.org/show_bug.cgi?id=386826