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

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

Please let me know when you can help resolve this issue... it is currently blocking our release
Catalin
Posts: 7845
Joined: Wed Jun 13, 2018 7:49 am

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

Hello Mike,

I have investigated the log file and I could notice that the OLDPRODUCTS property is the same as the ProductCode property, which means that the old product and the newer product have the same ProductCode.

Please keep in mind that two version of the same application (if you are looking for a major upgrade) need to be different. In addition to that, the version in your newer project must be bigger than the version in your older project.

With that being said, please open your Advanced Installer project (the latest version of your project), increase its version number and when being asked if you want to generate a new ProductCode, please select yes. Rebuild your project and retest this scenario.
newPc.png
newPc.png (48.83 KiB) Viewed 12034 times


Also, the UpgradeCode must be the same in both versions. The UpgradeCode can be seen in "Product Details" page --> "Product IDs" tab.

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,

That is a great solution... IF you are going to be changing version numbers and/or Product codes by hand.

In our process the build machine changes the version number using the "SetVersion" call with numbers that are generated by the build machine:
AI_SetVersion.PNG
AI_SetVersion.PNG (24.78 KiB) Viewed 12031 times
-
-
How can I achieve what you recommend using commands that I can run within our build process ?
-
Catalin
Posts: 7845
Joined: Wed Jun 13, 2018 7:49 am

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

Hello Mike,

This is quite strange, as the "/SetVersion" command should automatically change the ProductCode, as long as you do not specify not to by using the "-noprodcode" additional parameter. For more information about this, please have a look on our "Set Version Command Option" article.

As I can not tell from the screenshot (because it is not visible), could you please make sure that the "-noprodcode" parameter is not used?

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,

Here is the entire command I use:

SetVersion %dep.Pm4_AgentService.system.Major%.%dep.Pm4_AgentService.system.Minor%.%dep.Pm4_AgentService.system.build.number%.%dep.Pm4_AgentService.system.Revision%
-
Here is the resulting log entry while using that command - SetVersion was called with 4.3.41.0
-
AI_SetVersion_DuringBuild.PNG
AI_SetVersion_DuringBuild.PNG (17.89 KiB) Viewed 12017 times
-
-
Here is Call that is cut off in the screen shot:
-
Starting: "C:\Program Files(x86)\Caphyon\Advanced Installer\bin\x86\AdvancedInstaller.com" /execute C:\TeamCity\buildAgent\work\cdc096bce441a74a\AgentServiceInstaller.aip C:\TeamCity\buildAgent\temp\globalTmp\aic6212787314682741966.tmp
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 entire build configuration for advanced installer:
-
AI_SetVersion_buildsettings.PNG
AI_SetVersion_buildsettings.PNG (21.12 KiB) Viewed 12015 times
-
-
Here are the macros and lines that you cannot see due to screen snap shot:
-
-
%AdvancedInstallerDirectory%
-
AI_SetVersion_ai_Directory.PNG
AI_SetVersion_ai_Directory.PNG (4.89 KiB) Viewed 12015 times
-
-
SetVersion %dep.Pm4_AgentService.system.Major%.%dep.Pm4_AgentService.system.Minor%.%dep.Pm4_AgentService.system.build.number%.%dep.Pm4_AgentService.system.Revision%
Catalin
Posts: 7845
Joined: Wed Jun 13, 2018 7:49 am

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

Hello Mike,

After the SetVersion command line, could you please also add the following two command line parameters:

Code: Select all

Rebuild
Save
and retest this scenario on a clean snapshot of a Virtual Machine?

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

Will do - thank you!
-
I made two builds... one for the install, and one for the update both use the same settings as shown here ( version numbers will be different in each build of course )
-
Upgrade failed:
-
.aip file has not changed from the last one I sent you
-
-
AI_SetVersion_RebuildSave_Called.PNG
AI_SetVersion_RebuildSave_Called.PNG (5.82 KiB) Viewed 12000 times
-
-
here is the build output ( it now looks like it is building two times ? )
-
AI_SetVersion_RebuildSave_Output.PNG
AI_SetVersion_RebuildSave_Output.PNG (33.49 KiB) Viewed 12001 times
-
-
Here is the command that started the install :
'msiexec /i "C:\Program Files\Cetrus\4.3\Cetrus Agent Service\Updates\AgentService.4.3.43.0.Install.46.msi" AGENT_SVC_IP_PRIMARY=Desktop2776 AGENT_SVC_PORT=443 ROAMINGPROFILE_TYPE=static /qn /lv "C:\Program Files\Cetrus\4.3\Cetrus Agent Service\Logs\AgentService.4.3.43.0.Install.46.msi_install.log"'
-
-
What is interesting now, is the install log file indicates SecureRepair failed:
MSI (s) (A0:20) [07:30:15:249]: SECUREREPAIR: SecureRepair Failed. Error code: 524F55944F8
Action start 7:30:15: ProcessComponents.
MSI (s) (A0:20) [07:30:15:249]: Product: Cetrus Agent Service -- Error 1316. The specified account already exists.
-
but the service installed:
MSI (s) (A0:20) [07:30:15:281]: Windows Installer installed the product. Product Name: Cetrus Agent Service. Product Version: 4.3.43.0. Product Language: 1033. Manufacturer: Cetrus. Installation success or error status: 1603.
-
But when I look at the directory, the service is not there.

I have attached the install log file
-
Attachments
AgentService.4.3.43.0.Install.46.msi_install.log
(283.87 KiB) Downloaded 547 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 have updated your account so you can down load the two installers as well
AI_downloads.PNG
AI_downloads.PNG (7.99 KiB) Viewed 11991 times
Catalin
Posts: 7845
Joined: Wed Jun 13, 2018 7:49 am

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

Hello Mike,

The log file you have sent me seems to be from another installation.

In the log file, I could see once again that the ProductCode was the same as the OLDPRODUCT (meaning that the newer versions has the same ProductCode as the old version).

The two MSIs you have sent me seem to respect the upgrade rules. They have the same UpgradeCode and different ProductCodes, as it follows:

- both versions have the same UpgradeCode: {6A864036-EC9C-4F00-844D-CBB97165EC38}

- 4.3.42.0 has the following ProductCode: {2EDE0EBB-8297-4503-A662-FDF50DF3E26A}

- 4.3.43.0 has the following ProductCode: {6A864036-EC9C-4F00-844D-CBB97165EC38}

In the log file, the ProductCode is: {2EDE0EBB-8297-4503-A662-FDF50DF3E26A} and the OLDPRODUCTS property is set to {2EDE0EBB-8297-4503-A662-FDF50DF3E26A} (the same value as the ProductCode).

This means that the log file is from a product upgrade, where the upgraded version has the product version = 4.3.42.0 (which has the same product code as the above). This 4.3.42.0 version seems to upgrade another version with the same ProductCode.

Could you please forward me the log file of the actual installation (where the 4.3.43.0 upgrades the 4.3.42.0 version)?

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

the log file attached IS the log file from the upgrade. I name the log file as the same name as the MSI installer.
-
Here is the command that ran the MSI and produced the log file:
-
'msiexec /i "C:\Program Files\Cetrus\4.3\Cetrus Agent Service\Updates\AgentService.4.3.43.0.Install.46.msi" AGENT_SVC_IP_PRIMARY=Desktop2776 AGENT_SVC_PORT=443 ROAMINGPROFILE_TYPE=static /qn /lv "C:\Program Files\Cetrus\4.3\Cetrus Agent Service\Logs\AgentService.4.3.43.0.Install.46.msi_install.log"'
-
-
That log file also seems to think that it is logging information from the 4.3.43.0 installer as well:
-
=== Verbose logging started: 3/10/2020 7:30:04 Build type: SHIP UNICODE 5.00.7601.00 Calling process: C:\Windows\System32\msiexec.exe ===
MSI (c) (D4:D4) [07:30:04:674]: Resetting cached policy values
MSI (c) (D4:D4) [07:30:04:674]: Machine policy value 'Debug' is 0
MSI (c) (D4:D4) [07:30:04:674]: ******* RunEngine:
******* Product: C:\Program Files\Cetrus\4.3\Cetrus Agent Service\Updates\AgentService.4.3.43.0.Install.46.msi
-
<snip> (removed contents for brevity)
-
MSI (s) (A0:20) [07:30:04:705]: Original package ==> C:\Program Files\Cetrus\4.3\Cetrus Agent Service\Updates\AgentService.4.3.43.0.Install.46.msi
MSI (s) (A0:20) [07:30:04:705]: Package we're running from ==> C:\Windows\Installer\4b47d.msi
-
-
Am I calling MSIExec incorrectly?
Are the settings in the AIP file correct for what I am trying to accomplish?
MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

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

Is there anything else you need ?
Catalin
Posts: 7845
Joined: Wed Jun 13, 2018 7:49 am

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

Hello Mike,

Please accept my apologies for the delay in reply, there was the weekend and also the fact that we are now working from home due to the COVID virus.

The msiexec call seems just fine.

However, by taking a look in the log file, you can notice that the Product Codes are the same in both versions, which is not okay (as I have explained above).

I am thinking, could you please maybe try to manually increase the version and change the ProductCode and test this again? This way, hopefully, we will be able to further isolate the issue.

After doing so, please let me know the outcome. Also, for further investigations, please forward me the upgrade log.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”