Include the following line in your source code:
using System.Runtime.InteropServices;
Then declare an instance of suw:
public class suw
{
[DllImport("wuw4.dll")]
public static extern bool WebUpdate(string URL);
}
{
[DllImport("wuw4.dll")]
public static extern bool WebUpdate(string URL);
}
Finally, initiate an update check with:
suw.WebUpdate( "http://mycompany.com/myscript.txt" );
That's it! You are ready to move to the next step - authoring your update script:
Next Steps!
Having integrated the Software Update Wizard with your code,
the next step is to write your first update script:
