You are here

ExecWait doesn't work anymore

4 posts / 0 new
Last post
thasmo
Offline
Last seen: 5 years 8 months ago
Joined: 2011-01-14 14:01
ExecWait doesn't work anymore

I've got the following code to run a custom executable file after installation of the portable app:


!macro CustomCodePostInstall
ExecWait '"$INSTDIR\App\Cygwin\Cygwin.exe" --quiet-mode --no-shortcuts --disable-buggy-antivirus --site http://cygwin.xl-mirror.nl --root $INSTDIR\App\Cygwin\ --local-package-dir $INSTDIR\Data\Packages\'
!macroend

Unfotunately this stopped working some time ago. It seems like the execution is just skipped.

Any idea how to get this back working or what the reason is?

Thanks a lot!

Magibon
Offline
Last seen: 10 years 4 months ago
Joined: 2011-12-06 07:57
more info?

- are you sure it used to work? how long ago was this?
- are you sure it's ExecWait? i have no problems with it.

Im not familiar with cygwin's command lines..
but it looks messy.

1. try using quotes around paths.
ie. "$INSTDIR\App\Cygwin"
ie. "$INSTDIR\Data\Packages"

2. try using a tilda.
ie. ` instead of '.

3. if it's truly ExecWait.. try using nsExec::exec, or just Exec.

thasmo
Offline
Last seen: 5 years 8 months ago
Joined: 2011-01-14 14:01
I also tried "nsExec::exec"

I also tried "nsExec::exec" now, but it also fails.
I suspect the EXE file which should be run to be the problem.

As you can see in the snippet above it tries to run "Cygwin.exe"
which is just a copy of http://cygwin.com/setup-x86_64.exe.

Is the problem that the Cygwin.exe/setup-x86_64.exe file needs Admin rights? Any idea what else might be the problem?

Thanks a lot!

Magibon
Offline
Last seen: 10 years 4 months ago
Joined: 2011-12-06 07:57
maybe

it could be.. it's hard to visualize your installer.. i'd have to see what's going on..
did you try running w/admin. rights just to test?
is the name of the executable correct?
is the executable in the correct location?

Log in or register to post comments