PDA

View Full Version : RUN Update program and no return



NewsArchive
01-03-2008, 03:12 AM
This is very odd.

When I start my EXE it always runs the update program. It finishes and
reports no updates are available.

I also give the user the ability to forcefully look for updates. I use

RUN('C:\EC6\EC6WebUpdate.exe /C /S /V UPDATEMAGICWORD bozo', 1) to launch
the updating EXE.

For some reason that update program keeps running and never returns. I can't
even get it to display a message box. Looking at the process in
Task Manager shows that it is NOT consuming CPU cycles.

This is so odd because it is launched and works fine at startup, but when
RUN after the APPLCATION is opened this behavior starts.

If I launch the program from the command line it works fine.

Friedrich I ahve emailed you the SB6 file in a separate email.

Thoughts ?

Mike

NewsArchive
01-03-2008, 03:13 AM
Mike,

I did not test your program but, from what I see, I think you are caught in
an endless-loop. See the attached code-snipped taken from your SB6 project.

You start your custom Web Update client in silent mode. By default, a
silent mode application does not display message boxes. So what happens
here is, the client detects that ec6.exe is active. Because it is running
completely silent, the "Cycle Loop" statement (Line 119) is executed.
BANG - say hello to an endless loop. To display the message box in silent
mode, open the "Display Message Box" properties and select the "Flags" tab.
Then enable the "Display in Silent Mode" advanced checkbox option and you
are done.

Or, detect that the application is running in silent mode and break the
loop. To do this, you can use the following code (a simple If statement):

If %_SB_INSTALLERFLAG% Equals "1" on Position "$SB_SILENTMODEFLAG$" Then
Display Message Box "I am running in silent mode!" -- "Silent Mode"
! Break the loop here
End

Does this help?

Friedrich

--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910

"point. click. ship" - that's SetupBuilder 6.7
Create Windows Vista ready installations in minutes

-- Official Comodo Code Signing and SSL Certificate Partner