Set .msi property via commandline

Got a problem you cannot solve? Try here.
christ23
Posts: 82
Joined: Mon Jan 16, 2012 4:51 am

Set .msi property via commandline

Postby christ23 » Tue Jul 14, 2015 4:56 am

Hey team,

as far we are building our setups now COMPLETE automatic with TFS & InstallAware (it was a lot of work), there is one last small feature that wants to be implemented.

Is it possible to set a .msi property via pgplwiz.exe? Something like xyz123.msi /SUBJECT="77384" or /CATEGORY="..."

Background:
We want to set the changeset-Number of TFS as an (internal) version. I do this by passing compiler vars (one of 24 :) ), but "official" version field does not allow our high numbers like >77384. So what we do, is to set the version in another field which is handled as as a string literal without interpretation. As far as good.

But if i pass this charset as "version" to MSI, it is not displayed in the properties dialog of the msi. Looking into with ORCA shows that the Version is set to my value. But we want to have the possibility to check this info without ORCA:

Any ideas what i am doing wrong?

FrancescoT
Site Admin
Posts: 5360
Joined: Sun Aug 22, 2010 4:28 am

Re: Set .msi property via commandline

Postby FrancescoT » Tue Jul 14, 2015 2:04 pm

Dear Christ,

try;

msiexec.exe /i "C:\mypackage.msi" CMDLINE="MYPROPERTY=TRUE"

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

christ23
Posts: 82
Joined: Mon Jan 16, 2012 4:51 am

Re: Set .msi property via commandline

Postby christ23 » Mon Jul 20, 2015 8:18 am

Dear Francesco,

sorry i was not clear enough.

What i want to do, is to pass the version as another property (like "subject" e.g.) to the .msi during creating the .msi with pgplwiz.exe, not at runtime.

Do you understand what i mean? I would like to have the version (=our changeset-Number from TFS) set in the "SUBJECT" property of the .msi, wich could be viewed via right-click to the .msi --> properties --> summary.
This is to check the (internal) version before executing the .msi.

FrancescoT
Site Admin
Posts: 5360
Joined: Sun Aug 22, 2010 4:28 am

Re: Set .msi property via commandline

Postby FrancescoT » Mon Jul 20, 2015 1:25 pm

Dear Christ,

you can only pass the "version" as "version property" of the MSI stream info table.

> pgplwiz.exe "C:\My Project\Release\Web\My Project.exe" " " "C:\My Project.msi" "My Project" "1.0"

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 50 guests