?
Solved

Msi creation an upgrade an older product

Posted on 2009-04-23
36
Medium Priority
?
941 Views
Last Modified: 2013-12-12
im try to get this project done
we are trying to push program over gpo and upgrade the product once the program is started

im able to create the msi with wininstall le but when the upgrade is done i got 2 entry in the add remove program by exemple i try with file zilla 3.2.0 and upgrade it to 3.2.3.1  and i have 2 entry which we don't want
i try to create msi with installaware but for an unknow error the first version of the msi is unable to install it correclly any body have some more info on this ?

i didn't take a course on msi but i want to learn
0
Comment
Question by:kerm007
  • 18
  • 18
36 Comments
 
LVL 40

Expert Comment

by:Vadim Rapp
ID: 24223989
please give details on the following:

1. have you specified in Installaware that the new version is an upgrade of the old one

2. how exactly you push the new version through GPO - publish or assign, "install during logon" or not, and what is on the tab "Upgrades".
0
 

Author Comment

by:kerm007
ID: 24224817
well in installaware even the first msi the first version of the software in tahta cas e filezilla 3.2.0 it crash when runing the msi alone ....
 
as for gpo i use the publish and we don;'t want to have the application installed during the login we want to have it install when the user start the application that will remove the old application and install the other one

and in the msi in the table upgrade there is nothing

now im testing with installaaware but the working msi as been made with wininstall le

Thanks
0
 
LVL 40

Expert Comment

by:Vadim Rapp
ID: 24224870
When an upgrade is published by the GPO without "install during logon", until the install-on-demand actually kicks in, indeed there will be two entries in add/remove programs, old and new, it's normal. When install-on-demand kicks in, it will remove version 1 - given that the upgrade actually works.

Note that in order to install-on-demand to kick in, the user has to initiate it by launching advertised shortcut, or advertised file extension.
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 

Author Comment

by:kerm007
ID: 24226202
Ok i will retest this

what will be the good setting in the gpo to have the application uninstall and reinstall at the lauch of the application ..
for the upgrade i chose publish, i remove the option auto install, on the upgrade tab i chose the package that will upgrade the other one and in the option at bottom i chose package can upgrade over the existing package. and i check the option required upgrade for existing package.

did i do it right

Thanks
0
 
LVL 40

Expert Comment

by:Vadim Rapp
ID: 24226347
> on the upgrade tab i chose the package that will upgrade the other one

on the upgrade tab of the new package you choose the package that will be upgraded by this one

Otherwise, all is correct. But, once again, automatic upgrade will kick in only when the user launches advertised shortcut or advertised file extension. Regular shortcut won't trigger it (feel free to ask what is advertised shortcut if not sure).
0
 

Author Comment

by:kerm007
ID: 24227112
can you explain a little bit about advertised shortcut or advertised file extension

which option i need to set ?

Thanks
0
 
LVL 40

Expert Comment

by:Vadim Rapp
ID: 24227171
I don't know how this is accomplished in installaware; usually it's somewhere where you specify the properties of the shortcut.

In windows, you can recognize advertised shortcut by opening its properties - if it's advertised, then pretty much everything there will be greyed out.

In the installation, if installaware allows looking into the tables (if not, then use ORCA), file extensions will be advertised if they are present in the table "Extension"; shortcut will be advertised if in the table "Shortcut" the column "Target" has the name of the feature rather than filename of the target.



0
 

Author Comment

by:kerm007
ID: 24229208
ok i create the base software which work very well
and i install it with a gpo

i also creat a second version 3.2.3  and create an upgrade for the older one
i made sure also that the upgrade code in the proprety og the msi is the same on both the upgrade code is the same from 3.2.0 and 3.2.3 is mathing

i untick the auto-install chose the package that my new wiill upgrade in taht case 3.2.0 and chosse package can upgrade over existing package. and then check the required upgrade for existing packages...

i ran the program by double clicking the icon on the desktop and the new version was installed

but in the add remove program there was 2 entry one for the 3.2.0 and the 3.2.3 version

and this we don't want to have that is that feasable ?

Thanks alot
0
 
LVL 40

Expert Comment

by:Vadim Rapp
ID: 24229769
WEverything seems to be in order. The only thing you did not mention is whether the old version is included in the range of the versions to upgrade in the MSI uprgade table, along with the upgrade code.

If it is, then it's time to look into the log. Create detailed msi log  ( support.microsoft.com/kb/223300 ) and either post here, or look yourself - see if it has found the old version, and why it decided not to remove it.
0
 
LVL 40

Expert Comment

by:Vadim Rapp
ID: 24229788
> I untick the auto-install

it's not what you probably think. This allows to install by clicking on the advertised filetype, that I mentioned before. For example, Word would be installed by trying to open .doc file.

0
 

Author Comment

by:kerm007
ID: 24233535
what about file zilla  by launching the icon it should upgrade to the new version but uninstall it first ?

the way i set it before was upgrading to the new version but not uninstall the older one and the add remove program have 2 entry

0
 
LVL 40

Expert Comment

by:Vadim Rapp
ID: 24233788
if on the tab "upgrade" you select "remove old version, then install new, then group policy will uninstall ole version and then install new.

If you select the second option, "new version can upgrade", then group policy will rely on the new version that it will find the old one and remove it by itself.

Try first the new version without group policy - launch the MSI by yourself and make sure it indeed removes the old version.

One case when it won't upgrade is when one version is installed per-machine and another per-user.
0
 

Author Comment

by:kerm007
ID: 24234214
do you have an exemple of what should my table upgrade need to have inside ?

do i need to add this info with orca then ?

Thanks
0
 
LVL 40

Expert Comment

by:Vadim Rapp
ID: 24234453
> do you have an example of what should my table upgrade need to have inside ?

let's say this is version 2.0 that is supposed to upgrade version 1.0;  both cave upgrade code xyz.

Table upgrade would have:
upgrade code=xyz
VersionMin = 1.0
VersionMax = 2.0
attributes = 257


0
 

Author Comment

by:kerm007
ID: 24235737
the attribute 257 is the same as you select "remove old version ?

Thanks
0
 
LVL 40

Expert Comment

by:Vadim Rapp
ID: 24237202
Different things. Attribute in in the table in MSI; "remove old version" is in the group policy where you advertise the package.
0
 

Author Comment

by:kerm007
ID: 24237878
ok any more info on this

sorry so newbie and compagny don't have money to send me to training
:-)

Thanks
0
 
LVL 40

Expert Comment

by:Vadim Rapp
ID: 24237901
I never went to any training either. Download virtualbox, set up virtual machine, and play on it by advertising application packages in gpo to the user on that virtual machine, and see how it works. Create some trivial package v.1.0, deploy, then create version 1.1 as upgrade of 1.0 and deploy as upgrade of 1.0. And so on. The best training is when you find answers to your own questions and make things work in your own scenarios.
0
 

Author Comment

by:kerm007
ID: 24242919
is it possible tahta teh attribute should be 256 ?

i tested and work fine ... one thing is parameter og the update check in taht cas eis not kept un check ....

one more thing

if i have some user with an erlyer version of filezilla install by the user and i want to update the user to a version with gpo is it feasable ?
Thanks

for else everything work well
0
 
LVL 40

Accepted Solution

by:
Vadim Rapp earned 400 total points
ID: 24243576
257 = 1 + 256 = "MigrateFeatures" + "Include minimal version".

"Migrate features" means that if version 1 has feature 1 installed and feature 2 not, then new version will have the same, i.e. installed-or-not state of the features is migrated from the old version to the new. It's not terribly important, especially if you have only one feature.

"og the update check in taht cas eis not kept un check ...." - sorry, I did not quite get this.

> if i have some user with an erlyer version of filezilla install by the user and i want to update the user to a version with gpo is it feasable ?

gpo will initiate the installation; since the installattion has upgrade information, it will find the old version and upgrade it, regardless of whether old version was installed by gpo or by the user. The only case it won't upgrade is if the old version is installed per-machine and new version is being installed per-user, or vice versa.
0
 

Author Comment

by:kerm007
ID: 24243782
great thanks alot man !!!

you help me alot

Regards

Pierre
0
 

Author Comment

by:kerm007
ID: 24243853
One last question  do i needt o add something to the Action property ?

Thanks
0
 
LVL 40

Expert Comment

by:Vadim Rapp
ID: 24244273
Action property - where do you see it?
0
 

Author Comment

by:kerm007
ID: 24244397
Hi there

i saw the action property on upgrade table after attributes and remove colum see the msi i attached

also i did  a test i install a version 3.0.11 of filezilla by hand without the gpo to reflex what we have right now we didn't use any gpo to install software .
and try to upgrade it with a versiion 3.2.4 from GPO but the old version didn't behing uninstall and replace with the new one ... i have now 2 version

i try this cause i don't want to go on each pc in the compagny and remove older product by hand
is it possible ?
Thanks
0
 
LVL 40

Expert Comment

by:Vadim Rapp
ID: 24244437
as I said, you have to look into the log; somewhere it will say whether old version was found, and why it has decided not to upgrade it. Possibly exactly because I said - old version was installed per-machine, new per-user (which si the case if you advertise it under user configuration in GPO rather than under machine configuration).

Action property - put anything you want, for example UPGRADE_1.
0
 

Author Comment

by:kerm007
ID: 24244794
when we choose to deploy the software we choose it by user ... is it because of that the older version install by hand is not removed ?

Thanks
0
 
LVL 40

Expert Comment

by:Vadim Rapp
ID: 24244839
This you will find in the detailed installation log.
0
 

Author Comment

by:kerm007
ID: 24244885
how i'll give a try
Thanks alot man
0
 

Author Comment

by:kerm007
ID: 24245114
here the log if you have time to take a look

Thanks
MSI3c9ba.LOG
0
 
LVL 40

Expert Comment

by:Vadim Rapp
ID: 24245246
it did not find old version. When it does, you see lines like this:

================
MSI (c) (B4:94) [09:23:42:665]: Doing action: FindRelatedProducts
Action 09:23:42: FindRelatedProducts. Searching for related applications
Action start 09:23:42: FindRelatedProducts.
FindRelatedProducts: Found application: {3D2BF346-84B0-42BD-B84D-F12EC730BD58}
Action ended 09:23:42: FindRelatedProducts. Return value 1.
================

in your log, it did not find anything - look at the action FindRelatedProducts .

0
 

Author Comment

by:kerm007
ID: 24245484
in the msi deploy by gpo i should have a table call FindRelatedProducts  and put something there ?

Thanks
0
 
LVL 40

Expert Comment

by:Vadim Rapp
ID: 24245695
it looks like there's quite a mix in your head of where's MSI and where's GPO. I can only once again suggest what I said above in this comment: http:#24237901
0
 

Author Comment

by:kerm007
ID: 24246112
i mean in the msi i should have a table with FindRelatedProducts or it's an attributes in upgrade table

and yes i'm mixed in my head :-)

thanks
0
 
LVL 40

Expert Comment

by:Vadim Rapp
ID: 24246586
FindRelatedProducts is action, and it's using information from the table Upgrades to find the products that can be upgraded by upgrade code.
0
 

Author Comment

by:kerm007
ID: 24250518
last question
where in the registries i can found the upgrade code for a product tat been install by hand not with a GPO

Thanks
0
 
LVL 40

Expert Comment

by:Vadim Rapp
ID: 24251836
It's there under HKCR/Installer/UpgradeCodes, but in scrambled form, beginning with reversed 8 first hex numbers of the true upgrade code from the MSI. For example, in MSI upgrade code is {26D0443F-8F1B-4A9A-8390-4F33D2826BFB} ; in the registry there will be key beginning with F3440D62 .
0

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you are like me and like multiple layers of protection, read on!
There can be many situations demanding the conversion of Outlook OST files to PST format and as such, there is no shortage of automated tools to perform this conversion. However, what makes Stellar OST to PST converter stand above the rest? Let us e…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question