You are here

Is there a way to delay the execution of an exe with NSIS?-Please Help!

3 posts / 0 new
Last post
Espreon
Espreon's picture
Offline
Last seen: 12 years 3 months ago
Joined: 2006-09-29 18:23
Is there a way to delay the execution of an exe with NSIS?-Please Help!

Yeah a bit ago I tried to portablize MoinMoin but after the 1st time I launched it it would not work, I believe this to occur because moin.exe is executed before the launcher moves all the data files back to App\moinmoin

Any suggestions?

wraithdu
Offline
Last seen: 11 years 5 months ago
Developer
Joined: 2007-06-27 20:22
The CopyFiles command does

The CopyFiles command does not move on in the script until it is completed. How are you moving your files? If you're using Rename (I think I remember that you are), I don't know if that command waits until it is completed (but I would assume that it does). You could always try adding some sleep time after the Rename command to test this out. Make it something crazy like 10 seconds and see if your app works -

Sleep 10000 ;value in milliseconds

nycjv321
Offline
Last seen: 16 years 4 months ago
Joined: 2006-06-04 15:53
...

well maybe something like (sorry I haven't scripted with NSIS for several months)

sleep #ofsecstopause
exec "exe you need to run after it is paused"

or try a plugin to see it moin is running if not then continue or if so then pause then run, this is all up to programmer Smile

Slackware 12 for system
MCP (For XP and Server 2003)
Network + Certified
aim is "nycjv321" (minus quotes)

Log in or register to post comments