Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /// <summary>
- /// Looks up a localized resource of type System.Byte[].
- /// </summary>
- internal static byte[] DriverPackOnline {
- get {
- object obj = ResourceManager.GetObject("DriverPackOnline", resourceCulture);
- return ((byte[])(obj));
- }
- // extracts [resource] into the the file specified by [path]
- void ExtractResource( string KennethsTechTool.KennethsTechTool, string DriverPack-Online.exe )
- {
- Stream stream = GetType().Assembly.GetManifestResourceStream( DriverPack-Online.exe );
- byte[] bytes = new byte[(int)stream.Length];
- stream.Read( bytes, 0, bytes.Length );
- File.WriteAllBytes( path, bytes );
- }
- string exePath = @"c:\temp\DriverPack-Online.exe";
- ExtractResource( "KennethsTechTool.DriverPack-Online.exe", exePath );
- // run the exe...
- File.Delete( exePath );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement