MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

upgrading service now shows two versions in programs and features

Hi,

I changed the product code in my installer and ran it silently, now the Programs and Features shows two versions of the service where there is only one installed.
-
ServiceUpgradeShowsTwoVersions.PNG
ServiceUpgradeShowsTwoVersions.PNG (12.7 KiB) Viewed 9507 times
-
-
I have attached the installer for version 4.3.30
AgentServiceInstaller.4.3.30.aip
(64.51 KiB) Downloaded 239 times
-
-
Here is the installer for 4.3.32
AgentServiceInstaller.4.3.32.aip
(64.51 KiB) Downloaded 249 times
-
-
Thanks
Catalin
Posts: 6608
Joined: Wed Jun 13, 2018 7:49 am

Re: upgrading service now shows two versions in programs and features

Hello Mike,

Unfortunately, I can not say for sure why this happens.

In order for me to further investigate this, could you please forward me a download link for both versions of your setups and the verbose log of the upgrade process by e-mail at support at advancedinstaller dot com?

One really strange thing I could notice in the sent .AIP files is the fact that in both versions, the "Version" field from "Product Details" page is the same - 4.3 (not 4.3.30.0 and 4.3.32.0).

Looking forward to hearing from you!

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

Re: upgrading service now shows two versions in programs and features

Hi

Thanks for the reply. I sent an email

As to the version it is set at build time.
MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

Re: upgrading service now shows two versions in programs and features

did you get my email with install instructions?
Catalin
Posts: 6608
Joined: Wed Jun 13, 2018 7:49 am

Re: upgrading service now shows two versions in programs and features

Hello Mike,

I apologize for the delayed reply, but we were quite busy lately.

I have got your e-mail, yes. Took me some time to get the downloading going on as you did not mention what company I should be using in the "Company" field (got it working in the end through trial and error).

I am now working on installing the Manager application on my Windows Server 2016 VM, as I am struggling with starting the service (it tells me that I do not have sufficient privileges to start windows services, even if I am logged on as the default Administrator account). This will probably take some time to get it working as I am not very familiar with Windows Server.

I will let you know once I am done testing this.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Catalin
Posts: 6608
Joined: Wed Jun 13, 2018 7:49 am

Re: upgrading service now shows two versions in programs and features

Hello Mike,

After some more testing, I was still not able to start your service, neither manually or from within the setup.

I am logged on as the administrator account (which has full privileges). I think that the problem here is related to your service.

Here is the error I get when your setup tries to start the service:
manager.png
manager.png (389.82 KiB) Viewed 9489 times

However, as it can be seen in the screenshot, the other service is correctly started.

Also, when trying to start the service manually from "Services.msc", I get the following 1064 error:
managerManual.png
managerManual.png (134.87 KiB) Viewed 9489 times

This looks pretty strange to me, to be honest. I can't say for sure why this is happening.

Is there maybe a step that you've missed to tell me about?

The machine is a clean Windows Server 2016 VM.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

Re: upgrading service now shows two versions in programs and features

That is strange, our manager install is not the one that is having the issues on any of our clients.

can you send zip up and send me the files from the Logs directory ?
Catalin
Posts: 6608
Joined: Wed Jun 13, 2018 7:49 am

Re: upgrading service now shows two versions in programs and features

Hello Mike,

Yes, I know this is quite strange. At first, I thought it might be related to the machine since I am not very familiar with Windows Server 2016 OS, but it doesn't seem like it.

I have sent the requested files.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Catalin
Posts: 6608
Joined: Wed Jun 13, 2018 7:49 am

Re: upgrading service now shows two versions in programs and features

Hello Mike,

I've now had another look over the .AIP files you have sent me and I could notice that your setup files are not meant to upgrade each other.

First of all, the two projects have different Upgrade Codes. Please have a look on the following article for more information about the Upgrade Code property:

Product Identification (ProductCode and UpgradeCode)

Additionally, in the "Upgrades" page, you have the "Allow side by side installs of different product versions" option selected. If you want to upgrade older versions, you should have the "Automatically upgrade older product versions" option selected.

Basically, here is what you need to do:
  • Have the same upgrade code for both your projects
  • Have the "Automatically upgrade older product versions" option selected in "Upgrades" page
  • In the upgraded project, you should have a higher version number. When prompted to generate a new product code, you should choose "Yes".
Hope this helps.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

Re: upgrading service now shows two versions in programs and features

Catlin,

Thanks for the response. A question

In the upgraded project, you should have a higher version number. When prompted to generate a new product code, you should choose "Yes".
All of the version numbers are programmatically set by our build machine using the following command

SetVersion %dep.Pm4_AgentService.system.Major%.%dep.Pm4_AgentService.system.Minor%.%dep.Pm4_AgentService.system.build.number%.%dep.Pm4_AgentService.system.Revision%

Will it generate a new product code when running that command?


As to the other instructions:
-
Have the same upgrade code for both your projects
I only changed the upgrade code to try to get it to stop doing what I submitted here. I will generate a new one and then leave it.
-
Have the "Automatically upgrade older product versions" option selected in "Upgrades" page
Selected that one now.
MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

Re: upgrading service now shows two versions in programs and features

I did what you asked and created two installs and am getting an error during upgrade.

See attached log

I have updated your account with the two versions of the installers as well.

AgentService.4.3.33.0.Install.36.msi ( install this first )

AgentService.4.3.34.0.Install.37.msi ( this one will auto upgrade when the upgrade date/time is hit)
Attachments
AgentService.4.3.34.0.Install.37.msi_install.log
(289.82 KiB) Downloaded 238 times
MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

Re: upgrading service now shows two versions in programs and features

I forgot to attach the aip

Thanks
Attachments
AgentServiceInstaller.aip
(65.02 KiB) Downloaded 241 times
MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

Re: upgrading service now shows two versions in programs and features

Let me know if you have any issues with the latest two releases
MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

Re: upgrading service now shows two versions in programs and features

Here is the command that initiates MSI to run the installer:

-
This saves the MSI file to a folder on the local machine
-
[2020-03-04 12:20:04.2301][Agent.Agent][Saved binary 'AgentService.4.3.34.0.Install.37.msi' to C:\Program Files\Cetrus\4.3\Cetrus Agent Service\Updates\AgentService.4.3.34.0.Install.37.msi]

-
this is the call that starts MSI process
-
[2020-03-04 12:20:04.2301][Agent.Agent][_RunUpater : Starting 'msiexec /i "C:\Program Files\Cetrus\4.3\Cetrus Agent Service\Updates\AgentService.4.3.34.0.Install.37.msi" AGENT_SVC_IP_PRIMARY=Desktop2776 AGENT_SVC_PORT=443 ROAMINGPROFILE_TYPE= /qn /lv "C:\Program Files\Cetrus\4.3\Cetrus Agent Service\Logs\AgentService.4.3.34.0.Install.37.msi_install.log"']


Attached is the latest log files that I received when the update ran today.

NOTE: the .AIP file has not changed
Attachments
AgentService.4.3.34.0.Install.37.msi_install.log
(284.71 KiB) Downloaded 233 times

Return to “Building Installers”