コード例 #1
0
        /*
         * See InstallerManager for file format.
         *
         */
        public void BuildUninstaller(InstallerFileTable ft, InstallOptions opt, string outputFileName)
        {
            //**Do not modify the filename.
            InstallerBinary objBinary = new InstallerBinary();

            objBinary.OpenStream();
            objBinary.CloseStream();

            byte[] temp;
            temp   = objBinary.GetInstallerBinary();
            _final = BufferUtils.Combine(_final, temp);
            temp   = InstallerBinary.GetTokenBytes();
            _final = BufferUtils.Combine(_final, temp);
            temp   = opt.Serialize();
            _final = BufferUtils.Combine(_final, temp);
            temp   = ft.Serialize(); // ** Ft is already built.  Do not call Build()
            _final = BufferUtils.Combine(_final, temp);

            FileUtils.WriteBytesViaStream(outputFileName, _final);
        }
コード例 #2
0
 public byte[] Serialize()
 {
     return(_objInstallOptions.Serialize());
 }