WINAMP.COM | Forums > Developer Center > NSIS Discussion > IE doesn't load after install on Vista |
Last Thread
Next Thread
|
| Author |
|
|
Anders Major Dude
Registered: Jun 2002 |
Why is there a call to the UAC plugin there? If you are using that, ExecShell is not the correct ting to use. Also, you probably don't want to use the open verb, try a empty string __________________ |
||
|
|
|
amoneriot Junior Member
Registered: Nov 2009 |
The example tutorial on UAC talked about releasing the UAC plugin on successful installation, which is why there's a cleanup call there. |
||
|
|
|
Anders Major Dude
Registered: Jun 2002 |
well, for one thing, if you are using the uac plugin, you should call the uac version of execshell. But why would you want to force IE on your users, just specify the url as the command, no need to hunt for the .exe __________________ |
||
|
|
|
amoneriot Junior Member
Registered: Nov 2009 |
I'm installing a toolbar for IE, which is why I need to have IE load up. I tried using UAC::exec as well as nsexec::exec but it didn't make any difference. Details in the new sample code below. I hope I got the arguments right. The worst part of all this is that the errorlevel isn't set, which tells me that the function should have worked. Could this be a real bug for which we need a bugfix ? I can't think of trying anything else. Does exec, execshell, etc. work with IE 7.0 on Vista ? |
||
|
|
|
demiller9 Senior Member
Registered: Mar 2006 |
On my system (Vista Home Premium x64) the reg value for LocalServer32 has "%ProgramFiles%\Internet Explorer\iexplore.exe". You probably need to ExpandEnvStrings before the nsExec::Exec call. |
||
|
|
|
Anders Major Dude
Registered: Jun 2002 |
well, if you want to force IE, you could use the supported COM interface for automating IE __________________ |
||
|
|
|
amoneriot Junior Member
Registered: Nov 2009 |
Thanks a lot for your suggestions. I made some progress finally. nsexec::exec seems to work, but with the side effect that when my installer doesn't quit until IE quits. Is there a way to fix that ? Also note the syntax with which nsexec worked. There are no double quotes around the variable. |
||
|
|
|
demiller9 Senior Member
Registered: Mar 2006 |
The Exec command fails with the quotes because the reg value already has quotes around it and you end up with two sets of quotes. |
||
|
|
|
amoneriot Junior Member
Registered: Nov 2009 |
Thanks a lot for your help. I think all this time my real issue was that I didn't understand well how variables were supposed to be used. Not that I understand them fully now, but I'm learning a lot. Sorry for getting you thinking about something completely different than where the problem was. Maybe my execshell will now work as I had planned. |
||
|
|
|
Anders Major Dude
Registered: Jun 2002 |
I just created http://nsis.sourceforge.net/Open_UR..._COM_automation , you could try that for a non hacky solution __________________ |
||
|
|
|
amoneriot Junior Member
Registered: Nov 2009 |
I tried this on Win7 IE8 and it didn't work. I cut-pasted the code there as it is and then tried to call it using uac::execcodesegment but didn't work. |
||
|
|
|
Anders Major Dude
Registered: Jun 2002 |
code: put that in a .js file and execute it with wscript.exe (code taken from http://msdn.microsoft.com/en-us/lib...28VS.85%29.aspx) If that does not work, blame MS __________________ |
||
|
|
|
podnuh Junior Member
Registered: Dec 2009 |
Presumably your installer is running with elevated privileges (because you are using the UAC plug-in). That means that when you start IE (using the methods you have been describing) it is also running with elevated privileges (because it inherits the privileges of the process that start it). This is something that you probably don't want to do, and which may be contributing to your problems with Vista. |
||
|
|
|
Last Thread Next Thread
|
WINAMP.COM | Forums > Developer Center > NSIS Discussion > IE doesn't load after install on Vista |
Forum Rules:
|