/* * 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); }
public byte[] Serialize() { return(_objInstallOptions.Serialize()); }