Compress file using UpdSqueze:'UpdSqueze is part of wodAppUpdate ActiveX component. You can find UpdSqueze.exe inside component folder.
'This application is used to compress your files so wodAppUpdate downloads are faster,
'and it will create [File] section for the file which you can almost paste to configuration script directly-just change URL line so it contains full path to the file.
UpdSqueze c:\Windows\Notepad.exe c:\Notepad.exe.gz
'Here is [File] section created automatically by UpdSqueze. You can place it inside your configuration file:
[File]
Name=Notepad.exe
Size=136579
Version=6.1.7600.16385.90713
Date=20090714015636
MD5=f2c7bb8acc97f92e987a2d4087d021b1
Compressed=1 'when Compressed is set to 1 wodAppUpdate will decompress file on the fly during download
URL=Notepad.exe.gz
Code:DimWithEvents wodAppUpdate1 AswodAppUpdateComPrivateSub Form_Load()
Set wodAppUpdate1 = NewwodAppUpdateCom'Using Check Method we will open our configuration file and check for update.
wodAppUpdate1.Check"http://www.some_website.com/update.txt"EndSub'CheckDone Event fires when component has finished checking for new updates.PrivateSubwodAppUpdate1_CheckDone(ByVal NewFiles AsLong, ByVal ErrorCode AsLong, ByVal ErrorText AsString)
If ErrorCode = 0 ThenIf NewFiles ThenIf MsgBox("New files found. Download?", vbYesNo + vbQuestion, "New files found!") = vbYes Then'If new file (files) is found we can download it using Download Method.
wodAppUpdate1.DownloadEndIfElse
MsgBox "No new versions found. Your application is up-to-date."EndIfElse
MsgBox "There was an error checking for updates: " & ErrorText
EndIfEndSub'DownloadDone Event fires when component finishes downloading all files.PrivateSubwodAppUpdate1_DownloadDone(ByVal ErrorCode AsLong, ByVal ErrorText AsString)
If ErrorCode = 0 ThenIf MsgBox("Download successful. Replace now?", vbYesNo + vbQuestion, "Replace files..") = vbYes Then'Finally when new file (files) is downloaded we can update it using Update Method.
wodAppUpdate1.UpdateEndIfElse
MsgBox "There was an error downloading: " & ErrorText
EndIfEnd Sub
Compress file using UpdSqueze:'UpdSqueze is part of wodAppUpdate ActiveX component. You can find UpdSqueze.exe inside component folder.
'This application is used to compress your files so wodAppUpdate downloads are faster,
'and it will create [File] section for the file which you can almost paste to configuration script directly-just change URL line so it contains full path to the file.
UpdSqueze c:\Windows\Notepad.exe c:\Notepad.exe.gz
'Here is [File] section created automatically by UpdSqueze. You can place it inside your configuration file:
[File]
Name=Notepad.exe
Size=136579
Version=6.1.7600.16385.90713
Date=20090714015636
MD5=f2c7bb8acc97f92e987a2d4087d021b1
Compressed=1 'when Compressed is set to 1 wodAppUpdate will decompress file on the fly during download
URL=Notepad.exe.gz
Code:DimWithEvents wodAppUpdate1 As WODAPPUPDATECOMLib.wodAppUpdateComPrivateSub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) HandlesMyBase.Load
wodAppUpdate1 = New WODAPPUPDATECOMLib.wodAppUpdateCom'Using Check Method we will open our configuration file and check for update.
wodAppUpdate1.Check("http://www.some_website.com/update.txt")
EndSub'CheckDone Event fires when component has finished checking for new updates.PrivateSubwodAppUpdate1_CheckDone(ByVal NewFiles AsInteger, ByVal ErrorCode AsInteger, ByVal ErrorText AsString) Handles wodAppUpdate1.CheckDone
If ErrorCode = 0 ThenIf NewFiles ThenIf MsgBox("New files found. Download?", vbYesNo + vbQuestion, "New files found!") = vbYes Then'If new file (files) is found we can download it using Download Method.
wodAppUpdate1.Download()
EndIfElse
MsgBox("No new versions found. Your application is up-to-date.")
EndIfElse
MsgBox("There was an error checking for updates: " & ErrorText)
EndIfEndSub'DownloadDone Event fires when component finishes downloading all files.PrivateSubwodAppUpdate1_DownloadDone(ByVal ErrorCode AsInteger, ByVal ErrorText AsString) Handles wodAppUpdate1.DownloadDone
If ErrorCode = 0 ThenIf MsgBox("Download successful. Replace now?", vbYesNo + vbQuestion, "Replace files..") = vbYes Then'Finally when new file (files) is downloaded we can update it using Update Method.
wodAppUpdate1.Update()
EndIfElse
MsgBox("There was an error downloading: " & ErrorText)
EndIfEnd Sub
Compress file using UpdSqueze:'UpdSqueze is part of wodAppUpdate ActiveX component. You can find UpdSqueze.exe inside component folder.
'This application is used to compress your files so wodAppUpdate downloads are faster,
'and it will create [File] section for the file which you can almost paste to configuration script directly-just change URL line so it contains full path to the file.
UpdSqueze c:\Windows\Notepad.exe c:\Notepad.exe.gz
'Here is [File] section created automatically by UpdSqueze. You can place it inside your configuration file:
[File]
Name=Notepad.exe
Size=136579
Version=6.1.7600.16385.90713
Date=20090714015636
MD5=f2c7bb8acc97f92e987a2d4087d021b1
Compressed=1 'when Compressed is set to 1 wodAppUpdate will decompress file on the fly during download
URL=Notepad.exe.gz
Code:
WODAPPUPDATECOMLib.wodAppUpdateCom wodAppUpdate1;
privatevoid Form1_Load(object sender, EventArgs e)
{
wodAppUpdate1 = new WODAPPUPDATECOMLib.wodAppUpdateCom();
wodAppUpdate1.CheckDone += new WODAPPUPDATECOMLib._IwodAppUpdateComEvents_CheckDoneEventHandler(wodAppUpdate1_CheckDone);
wodAppUpdate1.DownloadDone += new WODAPPUPDATECOMLib._IwodAppUpdateComEvents_DownloadDoneEventHandler(wodAppUpdate1_DownloadDone);
//Using Check Method we will open our configuration file and check for update.
wodAppUpdate1.Check("http://www.some_website.com/update.txt", null);
}
//CheckDone Event fires when component has finished checking for new updates.voidwodAppUpdate1_CheckDone(int NewFiles, int ErrorCode, string ErrorText)
{
if (ErrorCode == 0)
{
if (NewFiles > 0)
{
DialogResult result = MessageBox.Show("New files found. Download?", "New files found!", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
if (result == DialogResult.Yes)
{
//If new file (files) is found we can download it using Download Method.
wodAppUpdate1.Download();
}
}
else
{
MessageBox.Show("No new versions found. Your application is up-to-date.");
}
}
else
{
MessageBox.Show("There was an error checking for updates: " + ErrorText);
}
}
//DownloadDone Event fires when component finishes downloading all files.voidwodAppUpdate1_DownloadDone(int ErrorCode, string ErrorText)
{
if (ErrorCode == 0)
{
DialogResult resultUpd = MessageBox.Show("Download successful. Replace now?", "Replace files..", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
if (resultUpd == DialogResult.Yes)
{
//Finally when new file (files) is downloaded we can update it using Update Method.
wodAppUpdate1.Update();
}
}
else
{
MessageBox.Show("There was an error downloading: " + ErrorText);
}
}
Just thought you'd like to know that my gateway app with your SMTP Server component held the line against a DDOS attack today...
Chris Langsenkamp
Clever Technologies
This has been, by far, the best experience I have ever had dealing with a support entity in my long career in the technical arena
Frank Kloskowski
GlobalCare Inc.
I can only hope I will have the pleasure to work with other products by "We Only Do" in the future.
Tomer Spivak
Verint Systems Ltd
Brilliant, even works on the mobile phone...
Conrad Leigh
Leaf Wireless
The wodCrypt product is great and we appreciate your effort to add support for UNIX Crypt.
William Ruf
Siemens Information and Communication Networks
The wodCrypt product is great and we appreciate your effort to add support for UNIX Crypt.
William Ruf
Siemens Information and Communication Networks
Just thought you'd like to know that my gateway app with your SMTP Server component held the line against a DDOS attack today...
Chris Langsenkamp
Clever Technologies
Thank you so much for your hard work and commitment in producing well thought-out solutions. WeOnlyDo is very committed to customer satisfaction!
Mike McPherson
Nokia Inc.
Just thought you'd like to know that my gateway app with your SMTP Server component held the line against a DDOS attack today...
Chris Langsenkamp
Clever Technologies
...with the SFTP interface you produced, everything was so simple to understand, we were able to start coding almost immediately!