Upgrade Issues with Advanced Installer created Windows Users - Advanced Installer Community
mpande
Posts: 64
Joined: Tue Sep 28, 2021 1:52 pm

Upgrade Issues with Advanced Installer created Windows Users

We're running into two issues with Windows users created by advanced installer are looking at how to address them.
Our installer creates a Windows user that is an administrator. That administrator is set to run a scheduled task that calls the updater program. We have that user set to be deleted if the software is uninstalled. On the custom action page that deletes the user we have Regular uninstall checked, and Replaced by a new version unchecked.

We've found that running the updater program as that administrator has the upgrader program downloaded and run by that administrator, and then the upgrade program is crashing. Running the updater program as any administrative user other than the created one works fine. My interpretation of this is that the upgrader program is deleting and recreating the user, and crashes as the user that is running the program has been deleted.

Another issue we've run into is at sites that have password complexity enabled. During the upgrade we receive an error message that the user does not meet the security requirements. Our interpretation is that the user is being deleted and recreated, and then windows complains that the password being assigned has already been used.

How can we prevent this uninstallation step from happening during an upgrade?
Liviu
Posts: 1420
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: Upgrade Issues with Advanced Installer created Windows Users

Hello,

Unfortunately, I can't really say why this is happening.

In order for us to further investigate this issue, can you please send us the following resources:

1. the old .AIP (setup project) file
2. the new .AIP (setup project) file
3. an installation log of the upgrade process
4. the Updates Configuration Project
5. a download link for your setup packages (both v1 and v2).

by email to support at advancedinstaller dot com?

If you cannot share with us your project file, then you can try to isolate the behavior in two sample projects (old and upgrade) which we can build and test on our side.

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Liviu
Posts: 1420
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: Upgrade Issues with Advanced Installer created Windows Users

Hello,

Thank you for the resources.

I've tested your scenario and the updater fails because of the following error:

Code: Select all

LastError: No signature was present in the subject.
After I checked your update setup and the .aip project it looks like you did not digitally signed the second package. Your second setup package is not signed while the first one is signed.

In your .aip project you have the "Install only digital signed update packages signed with the same certificate as the Updater" option enabled and since your second version is not signed the updater will fail.

This option secures the communication channel between the updater and the web server where the updates are stored.

Please have a look on the below article:

How to install only digitally signed update packages


Hope this helps!

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
mpande
Posts: 64
Joined: Tue Sep 28, 2021 1:52 pm

Re: Upgrade Issues with Advanced Installer created Windows Users

Before submitting the files to advanced installer I had stripped out the signing information. As best I can tell this is not the source of the error I've been encountering. The old and new aip files both had the same certificate before I stripped the information out, and the error message "No signature was present in the subject." is not present in the logs I submitted.

I'll discuss this internally and see if I can submit the original unaltered files.
Liviu
Posts: 1420
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: Upgrade Issues with Advanced Installer created Windows Users

Hello,

Please note that sending of the signed package is not mandatory, we will test it without the digital signature but for that we need your update configuration file from your website.

Can you please forward to us your updates .txt file so we can further test this?

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”