PDA

View Full Version : Total silence...



NewsArchive
01-10-2008, 03:28 AM
I have a setup where I have prefilled all information for serialnumber,
maintance key, username, last install path and such.
We use wupdate.exe, and I wondered if there was a way I could
1. Detect if install is started by wupdate.exe
2. If True, complete the install without userinteraction at all - or send a
message to the sysop that an install is waiting for completion

The purpose is to make a server automatically keep in sync with the latest
version

Bjarne

NewsArchive
01-10-2008, 03:28 AM
Bjarne,

> I have a setup where I have prefilled all information for serialnumber,
> maintance key, username, last install path and such.
> We use wupdate.exe, and I wondered if there was a way I could
> 1. Detect if install is started by wupdate.exe
> 2. If True, complete the install without userinteraction at all - or send
> a message to the sysop that an install is waiting for completion
>
> The purpose is to make a server automatically keep in sync with the latest
> version

Yes, no problem. What you can do is to compile a custom wupdate.exe. The
following code in the wupdate.sb6 executes your real web update installer
package:

[ Execute Programs ]
If %_SB_ERRORCODE% Equals "0" And %DOWNLOADUPDATE% Equals "$TRUE$" Then
Run Program %TMPDIR%\%HOST_UPDATEFILENAME% (Always Install)
End

Add a command line parameter to that "Run Program" function (e.g. /W) and
check for this command line switch in your web update installer package. If
the /W switch is provided, you know that it should be executed completely
silent.

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

NewsArchive
01-10-2008, 03:29 AM
> [ Execute Programs ]
> If %_SB_ERRORCODE% Equals "0" And %DOWNLOADUPDATE% Equals "$TRUE$" Then
> Run Program %TMPDIR%\%HOST_UPDATEFILENAME% (Always Install)
> End

Thanks, I think I have tried that before. How do I ensure that my new
wupdate.sb6 is not overwritten by your next update? Will SB use one I place
in my project directory if I move it from Redist folder?

> Add a command line parameter to that "Run Program" function (e.g. /W) and
> check for this command line switch in your web update installer package.
> If the /W switch is provided, you know that it should be executed
> completely silent.

That is where I struggle (I have searched docs)

2.1 How do I check for a Command in a script?
2.2. How do I use this to bypass all dialogs and just do the job

Bjarne

NewsArchive
01-10-2008, 03:29 AM
Bjarne,

> Thanks, I think I have tried that before. How do I ensure that my new
> wupdate.sb6 is not overwritten by your next update? Will SB use one I
> place in my project directory if I move it from Redist folder?

See "Application Web Update File" field in the "Include Web Update Client"
function. By default, it points to [SB_LIB]\wupdate.exe.

Copy wupdate.sb6 into a private folder and compile your custom wupdate.exe.
Then enter the location of your own wupdate.exe into the "Application Web
Update File" field. That's it.

> That is where I struggle (I have searched docs)
>
> 2.1 How do I check for a Command in a script?

To retrieve the command line, use the "Get System Information (Command
Line)" script function.

To check if, say, wupdate passed the /W switch to your web update installer
package, use the "Handle String Function (InStrI)" function.

> 2.2. How do I use this to bypass all dialogs and just do the job

You have quite a few options and it depends on your project. Using the /S
command line switch already executes the installer in silent mode. And of
course, the script gives you full control. For example, something like the
following:

If %VERY_SILENT_INSTALL% Equals "0" Then
Define Wizard Dialog "#1" (Welcome)
Define Wizard Dialog "#2" (Select Install Folder) (%_SB_INSTALLDIR%)
Define Wizard Dialog "#3" (Ready to Install)

! The Wizard Loop displays the dialog screens that the user sees in the
installation
Loop Wizard (Abort Dialog Active)
End
End

If you have set the %VERY_SILENT_INSTALL% variable to 1 (see above code
snipped), then the wizard is not displayed or executed.

Does this help?

--
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

NewsArchive
01-10-2008, 03:30 AM
Excellent, will report back

Bjarne Havnen