sonda
Posts: 101
Joined: Mon Apr 30, 2018 12:01 pm

There is a problem with this Windows Installer package .. on upgrade

Thu Jun 17, 2021 8:40 pm

I have an installer with a custom action that lunching cert until and installing some pfx certificate.
If you doing the first install (on your machine there is no other installation) installation will be smooth without any errors, but if i change the version and make a newer version and try to update the older version already installed i receive error:

Untitled.png
Untitled.png (27.14KiB)Viewed 8078 times

the certificate is a temp file. and execution of custom action is set after resources are available. Advanced installer is 18.2
Not sure why on first install execution of custom action is ok, but when doing an update of application trows error.
I have attached example .aip (in the zip, there is also cert and dummy file)

repro steps:
1.From the aip create installer
2. install software
3. Change version in Product details in aip file
4. generate new installer
5. run new installer to update previous version

Any suggestion are welcomed
Attachments
pfx.zip
(6.54KiB)Downloaded 441 times

Catalin
Posts: 6542
Joined: Wed Jun 13, 2018 7:49 am

Re: There is a problem with this Windows Installer package .. on upgrade

Tue Jun 22, 2021 5:07 pm

Hello Sonda,

Thank you for the provided files.

The custom action is failing because it can not find the specified file. The reason for this is the fact that the temporary file is removed during the uninstallation process of the older version.

In order to avoid this behavior, you can set the following condition on your temporary file:

NOT UPGRADINGPRODUCTCODE

The above condition should be set in both the older and the newer versions (e.g in the first version 1.0.0 and in the next version 1.0.1).

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

sonda
Posts: 101
Joined: Mon Apr 30, 2018 12:01 pm

Re: There is a problem with this Windows Installer package .. on upgrade

Wed Jun 23, 2021 11:24 am

Thank for response, I will try this

Catalin
Posts: 6542
Joined: Wed Jun 13, 2018 7:49 am

Re: There is a problem with this Windows Installer package .. on upgrade

Wed Jun 23, 2021 1:32 pm

You are always welcome!

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

Return to “Building Installers”