|
|
|
|
#1 |
|
Junior Member
Join Date: Nov 2005
Location: Netherlands
Posts: 43
|
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? |
|
|
|
|
|
#2 |
|
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
It would be nice if you showed us your execute instruction.
Stu |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Nov 2005
Location: Netherlands
Posts: 43
|
Just
Exec "xulrunner.exe application.ini" |
|
|
|
|
|
#4 |
|
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
Try a full path:
Exec `"$INSTDIR\xulrunner.exe" "application.ini"` Stu |
|
|
|
|
|
#5 |
|
Junior Member
Join Date: Nov 2005
Location: Netherlands
Posts: 43
|
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. |
|
|
|
|
|
#6 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
If UAC is not the problem, I'm with Afrow on the paths. Try using full paths for both the executable and the INI.
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#7 |
|
Junior Member
Join Date: Nov 2005
Location: Netherlands
Posts: 43
|
I tried full paths on both.
|
|
|
|
|
|
#8 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
Then it's UAC. When you say you've tried UAC, do you mean Anders' UAC plug-in?
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#9 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,442
|
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? IntOp $PostCount $PostCount + 1 |
|
|
|
|
|
#10 |
|
Junior Member
Join Date: Nov 2005
Location: Netherlands
Posts: 43
|
>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? |
|
|
|
|
|
#11 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,442
|
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?
IntOp $PostCount $PostCount + 1 |
|
|
|
|
|
#12 |
|
Junior Member
Join Date: Nov 2005
Location: Netherlands
Posts: 43
|
Yep as in yes I used the UAC plugin (which didn't do anything different, although I may have been misusing it).
|
|
|
|
|
|
#13 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,442
|
could you upload your script (or a minimal version with the same problem)?
IntOp $PostCount $PostCount + 1 |
|
|
|
|
|
#14 |
|
Junior Member
Join Date: Jan 2006
Posts: 22
|
This is due to a bug in Mozilla
https://bugzilla.mozilla.org/show_bug.cgi?id=386826 |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|