Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   Strange vista bug (http://forums.winamp.com/showthread.php?t=277636)

colm 20th September 2007 15:03

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 10:16

It would be nice if you showed us your execute instruction.

Stu

colm 21st September 2007 10:19

Just

Exec "xulrunner.exe application.ini"

Afrow UK 21st September 2007 10:30

Try a full path:
Exec `"$INSTDIR\xulrunner.exe" "application.ini"`

Stu

colm 21st September 2007 10:33

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 17:30

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 18:07

I tried full paths on both.

kichik 21st September 2007 18:12

Then it's UAC. When you say you've tried UAC, do you mean Anders' UAC plug-in?

Anders 21st September 2007 19:39

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 18:39

>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 18:46

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 18:48

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 19:09

could you upload your script (or a minimal version with the same problem)?

RobertStrong 1st October 2007 06:53

This is due to a bug in Mozilla

https://bugzilla.mozilla.org/show_bug.cgi?id=386826


All times are GMT. The time now is 17:37.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.