Skip to content
⌘ NSIS Forum Archive

Suspend Process When Start File With Nsis

17 posts

r2du-soft#

Suspend Process When Start File With Nsis

hi
when i open a file in windows 64 bit then my file process suspended!
but when i open Manual the file,profess good start!
the code I am using for open file:



ExecShell "open" "$R1Photoshop.exe"
and

ExecDos::exec /NOUNLOAD /ASYNC '$R1Photoshop.exe"

What is the problem?
How do I fix the problem?
JasonFriday13#
ExecShell is for opening documents, not for running programs. Plus you're missing a backslash:
Exec "$R1\Photoshop.exe"
and
ExecDos::exec /NOUNLOAD /ASYNC '$R1\Photoshop.exe"
r2du-soft#
Originally Posted by JasonFriday13 View Post
ExecShell is for opening documents, not for running programs. Plus you're missing a backslash:

and
Again process suspend!...
r2du-soft#
i found a Clues...
if when open a file with code:


ExecDos::exec /NOUNLOAD /ASYNC '$R1\Photoshop.exe"
then if I work with the system (For example:Refresh Desktop with F5) Then Process When Run Suspended! but i not Touching system then program (process) good work!
Is there a way to solve this problem?
Thank you
Anders#
ExecDos is for console applications when you need special control over stdin/stdout, just use Exec or ExecShell...
r2du-soft#
Originally Posted by Anders View Post
ExecDos is for console applications when you need special control over stdin/stdout, just use Exec or ExecShell...
Thank You
But what's the reason Suspend process, And what could it be?
Afrow UK#
Because ExecDos, nsExec and ExecWait will wait for the new process to finish before returning. Use Exec:

Exec `"$R1\Photoshop.exe"`
or
Exec `"$R1\Photoshop.exe" "$INSTDIR\somefile.psd"`
or
ExecShell open `$INSTDIR\somefile.psd`

Stu
r2du-soft#
Again, the application process is Suspended.......
As Before:
if I work with the system (For example:Refresh Desktop with F5) Then Process When Run Suspended! but i not Touching system then program (process) good work!
Is there a way to solve this problem?
Thank you
JasonFriday13#
Originally Posted by r2du-soft View Post
Again, the application process is Suspended.......
As Before:
if I work with the system (For example:Refresh Desktop with F5) Then Process When Run Suspended! but i not Touching system then program (process) good work!
Is there a way to solve this problem?
Thank you
This indicates a problem with the program being run or (less likely) the operating system. Are you sure there are no viruses on the system? (this includes hacks running in the background).

What happens when you double click on the file that needs to be run? Does it still suspend?
r2du-soft#
Originally Posted by JasonFriday13 View Post
This indicates a problem with the program being run or (less likely) the operating system. Are you sure there are no viruses on the system? (this includes hacks running in the background).

What happens when you double click on the file that needs to be run? Does it still suspend?
no,i have antivirus and always updated.system can not be a virus...
when i double click on the file,file run good! and process running...!
JasonFriday13#
As stated before, don't use ExecDos, nsExec or ExecWait (these are for console programs). And remove this line from your script:
ExecDos::exec /NOUNLOAD /ASYNC '$R1\Photoshop.exe"
r2du-soft#
Originally Posted by JasonFriday13 View Post
As stated before, don't use ExecDos, nsExec or ExecWait (these are for console programs). And remove this line from your script:
i removed all exec but program process suspended again
r2du-soft#edited
Hi

1-i test this Issue And the result was:
Family command "EXEC" not match with Windows 64 Bit And sometimes 86 (32) Bit!....
test:
i open a exe file whit command (ExecShell "open" "$R1Photoshop.exe") But Photoshop Process Suspended!....
I TEST AGAIN: i create a bat file whit Internal commands :
start /d "$R1" Photoshop.exe
and call to bat file in nsis with : ExecShell "open" "s.bat" But Process When start again SUSPENDED!
I TEST AGAIN: i open bat file with double click then process run good (normal)....

result test :
Family command "EXEC" not good work in 64 bit and sometimes 86 (32) Bit systems....


Question:
not void a exe file with a dll for start? i think this way worked! But it must be tested.



2-There is another possibility Its This perhaps my exe file is big and exec cant call that good! This could be the reason?


thanks to all friends
r2du-soft#
I need a code that is not family EXEC code.
But that code open(run) a file (exe)? Or in any way except code exec......
thanks
r2du-soft#
Originally Posted by r2du-soft View Post
Hi

1-i test this Issue And the result was:
Family command "EXEC" not match with Windows 64 Bit And sometimes 86 (32) Bit!....
test:
i open a exe file whit command (ExecShell "open" "$R1Photoshop.exe") But Photoshop Process Suspended!....
I TEST AGAIN: i create a bat file whit Internal commands :
start /d "$R1" Photoshop.exe
and call to bat file in nsis with : ExecShell "open" "s.bat" But Process When start again SUSPENDED!
I TEST AGAIN: i open bat file with double click then process run good (normal)....

result test :
Family command "EXEC" not good work in 64 bit and sometimes 86 (32) Bit systems....


Question:
not void a exe file with a dll for start? i think this way worked! But it must be tested.



2-There is another possibility Its This perhaps my exe file is big and exec cant call that good! This could be the reason?


thanks to all friends
Originally Posted by r2du-soft View Post
I need a code that is not family EXEC code.
But that code open(run) a file (exe)? Or in any way except code exec......
thanks
Can Be Give By Nsis Run command file To the operating system?
r2du-soft#
hi
my problem fixed with plug-in (run as user)....!
when start a exe file with exec command family in All windows 64 bit then my exec file process suspended!
When i use from (ShellExecAsUser plug-in) my problem fixed! and my exe file process run normally....
I used this plug-in:


my code:
ShellExecAsUser::ShellExecAsUser "open" '$R1Photoshop.exe'

Maybe this code someday Solve you'rs problem

Thanks to all the friends of flowers
Anders#
Your English is pretty hard to understand and you keep using the phrase suspended process. A suspended process (suspended thread really) can be created with the suspend parameter when you call CreateProcess() and Process Explorer can also suspend/resume processes but I imagine that you are actually talking about something else...