|
|
|
|
#1 |
|
Member
Join Date: Aug 2005
Location: Australia
Posts: 71
|
ExecWait doesn't work on any NSIS installer
On my computer, ExecWait doesn't bother executing the specified executable, returns nothing but sets the error flag.
This happens on all apps which use ExecWait (possibly Exec and ExecShell too). Does anyone have any ideas? |
|
|
|
|
|
#2 |
|
Forum King
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
|
The main idea is that ExecWait does not find a valid path/file name to execute.
Alternate there are command line parameters that need a correct quotation. Possible other ideas too, could you post a minimal sample code? Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS |
|
|
|
|
|
#3 | |
|
Member
Join Date: Aug 2005
Location: Australia
Posts: 71
|
Quote:
The following code does not work: code: |
|
|
|
|
|
|
#4 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
You must quote the path.
code: NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#5 | |
|
Member
Join Date: Aug 2005
Location: Australia
Posts: 71
|
Quote:
I assume it is only in recent versions, as I have been able to successfully execute before, using only double quotes. |
|
|
|
|
|
|
#6 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
It's a requirement of Windows. Sometimes it manages to figure out alone that any spaces that may be in the path are not separators of arguments, but sometimes it fails. This can happen, for example, if you have "C:\Program.exe" while trying to execute "C:\Program Files\Something.exe". In this case, it'll think "Files\Something.exe" is an argument for "C:\Program.exe".
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#7 |
|
Member
Join Date: Aug 2005
Location: Australia
Posts: 71
|
So this should work too?
code: |
|
|
|
|
|
#8 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
Assuming Test.exe really is in $EXEDIR, it should work.
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#9 |
|
Member
Join Date: Aug 2005
Location: Australia
Posts: 71
|
OK, thanks Kichik!
I might be back with another problem regarding this though... |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|