We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

IvanKasyanov
Posts: 10
Joined: Wed Jan 29, 2020 9:06 am

Own product upgrade

Hello!

I have installers with two versions of my product: 1.1.1 and 1.1.3. I successfully installed 1.1.1, then I tried to upgrade it to 1.1.3, but got error and attached log. Also I can send installers and installer's projects to support team in private messages. Can you help me to understand, what is goes wrong? Thank you!

With regards, Ivan.
Attachments
MSI8bccd.LOG
(505.93 KiB) Downloaded 356 times
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: Own product upgrade

Hello Ivan,

According to the log file, it seems that a custom action has failed:
CustomAction returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox)
Please have a look over your project and see if you can find the culprit here.

If possible, please forward me the following resources:

- a copy of your .AIP file for version 1.1.1

- a copy of your .AIP file for version 1.1.3

by e-mail at support at advancedinstaller dot com so I can further investigate this.

Also, if possible, a small description of what that custom action is doing would be useful.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
IvanKasyanov
Posts: 10
Joined: Wed Jan 29, 2020 9:06 am

Re: Own product upgrade

Thank you, Catalin!

I sent to you an e-mail.
IvanKasyanov
Posts: 10
Joined: Wed Jan 29, 2020 9:06 am

Re: Own product upgrade

Hello, Catalin!

Is there is any news, about my issue? :)
MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

Re: Own product upgrade

Are you getting the same thing as me ?
-
viewtopic.php?f=5&t=44900
-
Never mind.... yours is something different:
-
MSI (s) (60:04) [17:58:27:923]: Invoking remote custom action. DLL: C:\Windows\Installer\MSI14C0.tmp, Entrypoint: DoRemoveExternalUIStub
CustomAction InstallService returned actual error code 1 (note this may not be 100% accurate if translation happened inside sandbox)
-
MSI (s) (60:30) [17:58:29:095]: Note: 1: 1722 2: InstallService 3: C:\Windows\Installer\MSI14F0.tmp 4: /RunAsAdmin /HideWindow "C:\Program Files (x86)\OZON\PvzCreShtrih\install.bat"
-
MSI (s) (60:30) [17:58:34:752]: Product: PvzCreShtrih -- Error 1722. There is a problem with this Windows Installer package. A program run as part of the setup did not finish as expected. Contact your support personnel or package vendor. Action InstallService, location: C:\Windows\Installer\MSI14F0.tmp, command: /RunAsAdmin /HideWindow "C:\Program Files (x86)\OZON\PvzCreShtrih\install.bat"
IvanKasyanov
Posts: 10
Joined: Wed Jan 29, 2020 9:06 am

Re: Own product upgrade

Hello!

Yes, it looks like, it little bit different: I am actually did not change nothing (just a couple of rows in C#-source code). I can say, that it is just same build with different versions. Both are fine installing and uninstalling, but bigger build cannot upgrade smaller one: it looks like, I am catching strange error during upgrade inside custom actions. But, I thought, it have to be pretty simple: uninstall (with custom action), then – install (with custom action too). But, it looks like, that I was wrong.
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: Own product upgrade

Hello Ivan,

First of all, thank you for the provided files.

After further investigations, I was able to find the culprit here.

THe problem here is the fact that your install.bat file is executed at a time where there is no .BAT file on the machine. In order to fix this, please proceed as it follows:

- open the 1.1.1 .AIP file and go to "Custom Actions" page. Here, select your custom action (that launches install.bat file). First of all, under "Execution Time" please select "When the system is being modified (deferred)". Secondly, under "Execution Stage Condition", please remove the "Replaced by a new version" option from under the "Uninstall" section.

- now please select the "uninstall.bat" custom action. Here, from under the "Execution Time" section, please uncheck the "Upgrade" option.

- rebuild the project

- repeat the above steps for the 1.1.3 version of your .AIP file as well

- rebuild the project

- retest the scenario

Hope this helps.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
IvanKasyanov
Posts: 10
Joined: Wed Jan 29, 2020 9:06 am

Re: Own product upgrade

Hello, Catalin!

Thank you for your help! Everything working now. You are the best!
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: Own product upgrade

You are always welcome, Ivan!

I am really glad everything is working as expected now.

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

Return to “Building Installers”