Settings values when building

Got a problem you cannot solve? Try here.
Post Reply
kurtbilde
Posts: 11
Joined: Mon Jul 31, 2006 7:56 am
Location: Odense, Denmark
Contact:

Settings values when building

Post by kurtbilde »

Hi,

Using Developer.

How do I get the versionnumber from one of the .exe that's included in the install and set it as the installation versionnumber?
How do I set the UpgradeCode and the ProductCode to a given GUID?

Due to SCCM we are requred to set the UpgradeCode/ProductCode to the first builds ProductCode and the versionnumber of the msi to the .exe files versionnumber with out the revision number..

-Kurt
giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: Settings values when building

Post by giaviv »

Hey Kurt,

This cannot be done post-compilation. The only option to edit these variables is through the project settings in InstallAware BEFORE building the setup..
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
kurtbilde
Posts: 11
Joined: Mon Jul 31, 2006 7:56 am
Location: Odense, Denmark
Contact:

Re: Settings values when building

Post by kurtbilde »

Any hint on the pre-process then?
giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: Settings values when building

Post by giaviv »

Sorry, I am not sure I understand what you mean - could you please clarify?
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
kurtbilde
Posts: 11
Joined: Mon Jul 31, 2006 7:56 am
Location: Odense, Denmark
Contact:

Re: Settings values when building

Post by kurtbilde »

Hi,

Simply any hint on would be highly appriciated:

How do I get the versionnumber from one of the .exe that's included in the install and set it as the installation versionnumber?
How do I set the UpgradeCode and the ProductCode to a given GUID?

TIA

-Kurt
giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: Settings values when building

Post by giaviv »

Hi Kurt,

As I said, this cannot be done post-compilation - these values are set in the MSI tables.
The values from the MSI tables correlate to the pre-defined variables in InstallAware.
That being said, changing these MSI table values can have an unpredictable effect on the pre-defined variables, and therefore should be avoided.
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
kurtbilde
Posts: 11
Joined: Mon Jul 31, 2006 7:56 am
Location: Odense, Denmark
Contact:

Re: Settings values when building

Post by kurtbilde »

Hi,

As with version number I do understand the problem, but not with the UpgradeCode and the ProductCode - those are widely used by SCCM to identify and automate the upgrade process...

So InstallAware must have a solution/support for SCCM as well or.... It simple can't be true that we have to set those by MSIexec afterwards or....

-Kurt
giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: Settings values when building

Post by giaviv »

Kurt,

I am not really sure I understand what you are saying, however, what is the problem with setting the Revision Code in the IDE?
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
kurtbilde
Posts: 11
Joined: Mon Jul 31, 2006 7:56 am
Location: Odense, Denmark
Contact:

Re: Settings values when building

Post by kurtbilde »

Hi,

The SCCM folks are referring to: ”small update”: http://msdn.microsoft.com/en-us/library/aa370579.aspx

-Kurt
giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: Settings values when building

Post by giaviv »

When you create a patch or an update, InstallAware manages the changes of these code automatically.
Generally speaking, there are very little cases in which you need to set these codes manually.
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
kurtbilde
Posts: 11
Joined: Mon Jul 31, 2006 7:56 am
Location: Odense, Denmark
Contact:

Re: Settings values when building

Post by kurtbilde »

Hi,

Yes, but not as the SCCM folks would like it the MS way, so to speak... eg. the UpgradeCode and the ProductCode needs to be fixed within version.

-Kurt
giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: Settings values when building

Post by giaviv »

Again, then you can edit it yourself within the IDE (project settings)..
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
kurtbilde
Posts: 11
Joined: Mon Jul 31, 2006 7:56 am
Location: Odense, Denmark
Contact:

Re: Settings values when building

Post by kurtbilde »

Hi,

So basicly in the IDE via Project Options-dialog this is set by:

UpgradeCode = "Upgrades products with product code"
ProductCode = "Product Code"

And RevisionCode should be unique for the build...

I think I got confussed by the fact that UpgradeCode isn't on the Project Properties page and thereby got the interpitation that UpgradeCode=RevisionCode that changes between builds, so....

Sorry!!!!

-Kurt
giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: Settings values when building

Post by giaviv »

Yep. No worries!
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Post Reply