inno-setupfinalbuilder

How to set inno setup script parameters from final builder?


I am new to Final Builder 7 and got some work on it.

I want to set minor version from Final Builder 7 to inno setup script by asking user to enter the minor version number.

I have defined user variable called minor, which is set by asking user input, I want to use this variable in one of the .iss files in the project.

Any clue?

Thanks in advance.

-- With best regards Amol


Solution

  • I solved this using following script:

    #define AppVersion GetFileVersion("MyApp.exe")
    #define Major
    #define Minor
    #define Rev
    #define Build
    #define Version ParseVersion("MyApp.exe", Major, Minor, Rev, Build)
    
    [Setup]
    AppName=MyApp
    AppVerName={#AppVersion}
    VersionInfoVersion={#AppVersion}
    AppVersion={#AppVersion}
    OutputBaseFilename=5{#Build}
    

    -- Cheers