Old 20th September 2007, 15:03   #1
colm
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?
colm is offline   Reply With Quote
Old 21st September 2007, 10:16   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
It would be nice if you showed us your execute instruction.

Stu
Afrow UK is offline   Reply With Quote
Old 21st September 2007, 10:19   #3
colm
Junior Member
 
Join Date: Nov 2005
Location: Netherlands
Posts: 43
Just

Exec "xulrunner.exe application.ini"
colm is offline   Reply With Quote
Old 21st September 2007, 10:30   #4
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
Try a full path:
Exec `"$INSTDIR\xulrunner.exe" "application.ini"`

Stu
Afrow UK is offline   Reply With Quote
Old 21st September 2007, 10:33   #5
colm
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.
colm is offline   Reply With Quote
Old 21st September 2007, 17:30   #6
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
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
kichik is offline   Reply With Quote
Old 21st September 2007, 18:07   #7
colm
Junior Member
 
Join Date: Nov 2005
Location: Netherlands
Posts: 43
I tried full paths on both.
colm is offline   Reply With Quote
Old 21st September 2007, 18:12   #8
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
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
kichik is offline   Reply With Quote
Old 21st September 2007, 19:39   #9
Anders
Moderator
 
Anders's Avatar
 
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
Anders is offline   Reply With Quote
Old 22nd September 2007, 18:39   #10
colm
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?
colm is offline   Reply With Quote
Old 22nd September 2007, 18:46   #11
Anders
Moderator
 
Anders's Avatar
 
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
Anders is offline   Reply With Quote
Old 22nd September 2007, 18:48   #12
colm
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).
colm is offline   Reply With Quote
Old 22nd September 2007, 19:09   #13
Anders
Moderator
 
Anders's Avatar
 
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
Anders is offline   Reply With Quote
Old 1st October 2007, 06:53   #14
RobertStrong
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
RobertStrong is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump