Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use GetFileVersion in iss file #14

Open
HashidaTKS opened this issue Aug 14, 2023 · 0 comments
Open

Use GetFileVersion in iss file #14

HashidaTKS opened this issue Aug 14, 2023 · 0 comments

Comments

@HashidaTKS
Copy link
Contributor

We can use GetFileVersion to get version info in iss file.

In order to use GetFileVersion, we should specify the file version for the assembly info.

image

And, maybe it is better to use System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString() for Global.Version.
We should specify the same version for the assembly version and the file version if fixing to do so.

    public class Global
    {
        public static readonly string AppName = "FlexConfirmMail";
        public static readonly string Version = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString();
        public static readonly string Edition = "Enterprise";
        public static readonly bool EnableGPO = true;
    }

Originally posted by @HashidaTKS in #13 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant