What you need:
VisualStudio(i use 2015)
Basic knowledge
First, Make a new form with 8 text boxes and 8 labels.
Put the labels behind the text boxes and name them the names of the assembly info.
Title
Description
Company
Product
Version
FVersion
Copyright
Trademark
and you should name the text boxes to their infos i do this
"txtTitle" - for the title text box
When you are done
Make a button with the text "clone" and name it something like "btnClone"
Double click on the button and go to its code.
Nows the fun part:
First we will make a OpenFileDialog for the user to pick a file to clone:
Inside of that we will write a Filter
and we will write an if
for now should look like this:
Inside of the if we write this:
Okay first we create a FilVersionInfo.GetVersionInfo(ofd.FileName) that gives us all the assembly information of the file the user selected
Then we change all of the text in our textboxs to the matching values.
The textbox of the title will get the title.
Thats it try it for your self:)
I'm sorry if i explained badly or the code is poorly wrotten its kind of hard without formatted code.
Try and write everything without copying to learn better!
Thanks for reading my guide
VisualStudio(i use 2015)
Basic knowledge
First, Make a new form with 8 text boxes and 8 labels.
Put the labels behind the text boxes and name them the names of the assembly info.
Title
Description
Company
Product
Version
FVersion
Copyright
Trademark
and you should name the text boxes to their infos i do this
"txtTitle" - for the title text box
When you are done
Make a button with the text "clone" and name it something like "btnClone"
Double click on the button and go to its code.
Nows the fun part:
First we will make a OpenFileDialog for the user to pick a file to clone:
PHP Code
<?php
using(OpenFileDialog ofd = new OpenFileDialog())
{
}
PHP Code
<?php
ofd.Filter = "Excutables|*.exe";
PHP Code
<?php
if (ofd.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
}
PHP Code
<?php
using (OpenFileDialog ofd = new OpenFileDialog())
{
ofd.Filter = "Excutables|*.exe";
if (ofd.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
}
}
PHP Code
<?php
FileVersionInfo myFileVersionInfo =
FileVersionInfo.GetVersionInfo(ofd.FileName);
//Changing the text boxes test to be the assembly information of the file we selected
txtFVersion.Text = myFileVersionInfo.FileVersion;
txtVersion.Text = myFileVersionInfo.ProductVersion;
txtProduct.Text = myFileVersionInfo.CompanyName;
txtDescription.Text = myFileVersionInfo.FileDescription;
txtCopyright.Text = myFileVersionInfo.LegalCopyright;
txtTrademark.Text = myFileVersionInfo.LegalTrademarks;
txtProduct.Text = myFileVersionInfo.ProductName;
txtTitle.Text = myFileVersionInfo.InternalName;
txtCompany.Text = myFileVersionInfo.CompanyName;
Then we change all of the text in our textboxs to the matching values.
The textbox of the title will get the title.
Thats it try it for your self:)
I'm sorry if i explained badly or the code is poorly wrotten its kind of hard without formatted code.
Try and write everything without copying to learn better!
Thanks for reading my guide


