View Full Version : How do I check a folder for the wupdate.wud ?
NewsArchive
03-19-2008, 02:23 PM
Hi All,
What scripting code would I use to check if the wupdate.wud file exists on
our server?
Also if my program is running and then checks for an update how would i
close the
program and then reopen the program when update either completes or fails.
Thanks
Frank
NewsArchive
03-19-2008, 02:24 PM
Frank,
TO detect and close the app :
BEGINING of updater
Set Variable %ACTIVEAPP% to FUNCTION:Detect Active Application(dmc.exe)
If %ACTIVEAPP% Equals "1" Then
Terminate Application "dmc.exe"
End
END of updater the restart
Run Program %_SB_INSTALLDIR%\dmc.exe (Always Install)
What is a .wud file on server please ?
I use e.we and .001 etc and .ini for updates on the server.....
--
Thank you
Cordialement - Best regards
Jean-Pierre GUTSATZ
CGF
Data Management Center - A tool to let you Migrate Import Export Transfer
all your Data very easily
www.dmc-fr.com
Certified by Microsoft : "Works with Vista" & "Works with Windows Server
2008"
NewsArchive
03-19-2008, 02:25 PM
sorry I meant .exe main updater file ....
--
Thank you
Cordialement - Best regards
Jean-Pierre GUTSATZ
CGF
Data Management Center - A tool to let you Migrate Import Export Transfer
all your Data very easily
www.dmc-fr.com
Certified by Microsoft : "Works with Vista" & "Works with Windows Server
2008"
NewsArchive
03-19-2008, 02:34 PM
Hi Jean-Piere
The .wud file holds the
[SB5UPDATE]
Version=1.00.000
Setup=updateprogramname.exe
Is this what you wanted to know?
Set Variable %ACTIVEAPP% to FUNCTION:Detect Active Application(dmc.exe)
what to you mean?? FUNCTION:Detect Active Application(dmc.exe)
Thanks
Frank
NewsArchive
03-19-2008, 02:35 PM
Hi Jean-Pierre,
What i really need to do if there is a new update to install close the
program.
If not leave it running in the background until setupbuilder is done and
closes.
Thank
Frank
NewsArchive
03-19-2008, 02:44 PM
Frank,
> What scripting code would I use to check if the wupdate.wud file exists on
> our server?
Don't know why you have to do it, but you can use the "Check HTTP
Connection..." function to check if a file exists on a server.
For example:
Set Variable %FILEEXISTS% to FUNCTION:Check HTTP Connection
"http://www.lindersoft.com/test.ini"
If %FILEEXISTS% Not Equals "0" Then
! File does not exist
End
> Also if my program is running and then checks for an update how would i
> close the program and then reopen the program when update either completes
> or fails.
What Jean-Pierre said.
You can use "Detect Active Application..." to check if an application is
active. Display a message and ask the user to shut-down the app. You can
use this function in a LOOP to ensure that the user really closed the app.
You can also use "Terminate Active Application..." to shut-down the app it
automatically (gently and kill). But it's not recommended!
Then, at the end of he script, restart the application using "Run
Program..."
Does this help?
Friedrich
NewsArchive
03-20-2008, 02:11 AM
Jean_Pierre and Friedrich
Thanks for all your help I think I got it. Whew...Everything comes so easy.
lol
Thanks Again,
Frank Krause
NewsArchive
03-20-2008, 02:11 AM
> Thanks for all your help I think I got it. Whew...Everything comes so
> easy. lol
<G> You are welcome :)
Friedrich
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.