Old 13th January 2012, 11:25   #1
prakashjv
Junior Member
 
Join Date: Oct 2011
Posts: 25
nsExec::Exec not executing on 64 bit machine

Hello,

From with in the script using nsExec::Exec command, I am starting another installer. This works fine when I run on a 32 bit machine but the same when ran on a 64 bit machine, I am not able to see the installation wizard UI. I can see the process running under task manager but the third party installation wizard does not show up.

Below is the command which I am trying to run. It works perfect on 32 bit machine but on 64 bit the installer UI does not show up.

nsExec::Exec '$TempFilesDir\CollabNetSubversion-client-1.6.17-4.win32.exe'

After seeing the process under task manager, I assume that the command is working and starting the executable but I am not able to know what other reason could be there for the UI not to show up if the process is running.

Any suggestions would be very helpful.

Thanks !!
prakashjv is offline   Reply With Quote
Old 13th January 2012, 11:38   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
You aren't meant to use nsExec for non console applications. Use Exec or ExecWait instead. Also check the manual on Exec/ExecWait usage (which also applies to nsExec). You should be using double quotes around the executable path. If it still does not work, check you are setting the required working directory. Also check your file path isn't a WOW64 path in which case you should ${DisableX64FSRedirection}.

Stu
Afrow UK is offline   Reply With Quote
Old 13th January 2012, 12:21   #3
prakashjv
Junior Member
 
Join Date: Oct 2011
Posts: 25
Thanks for your reply !!

My intension of using nsExec here is that it waits until the executable completes its job and then only control retruns from nsExec command. Using Exec it just starts the executable and control is returned immediately which I do not want to happen.

My point here is... as I see nsExec command is able to start the exectable I can see the process running under task manager but the wizard window does not show up when ran on 64 bit machine.

Any thoughts on this would be helpful.
prakashjv is offline   Reply With Quote
Old 13th January 2012, 14:53   #4
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
Quote:
Originally Posted by Afrow UK View Post
You aren't meant to use nsExec for non console applications. Use Exec or ExecWait instead.
Stu
Afrow UK is offline   Reply With Quote
Old 20th January 2012, 09:29   #5
prakashjv
Junior Member
 
Join Date: Oct 2011
Posts: 25
Afrow UK, Thank you for pointing me towards the right command. It solved my problem.
prakashjv is offline   Reply With Quote
Old 13th August 2013, 08:35   #6
Aofengg
Junior Member
 
Join Date: Aug 2013
Posts: 1
I have the same problem. How did you solve it? I can't understand the answer "You aren't meant to use nsExec for non console applications. Use Exec or ExecWait instead."
Can you help me, please? Thank you.
Aofengg 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