Update application without elevation with new code signing cerificate - Advanced Installer Community
naniew
Posts: 12
Joined: Fri Apr 24, 2015 10:31 am

Update application without elevation with new code signing cerificate

I use Advanced Installer 12.6.1.

I want the update process of my application to happen without any user engagement.

In order to do so:
- in the Installer Project the updater was set to install the support service,
- in the Updates Project 'Install update without elevation' and 'Attempt to suppress GUI' flags were checked.

I start the updater.exe process with parameters:

Code: Select all

/silentall -reducedgui
It all worked well until recently I have changed the certificate to sign digitally the installer. The old one almost expired and did not support SHA-256.

Unfortunately the update from the version signed with the old certificate to the version signed with the new certificate starts the MSI installer with full GUI and requires elevation.

Is there any way to perform this update without elevation?

Best regards
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Update application without elevation with new code signing cerificate

Hello,

Did you changed the Subject field of the certificate?

To install only digitally signed update packages, please follow the steps from the How to install only digitally signed update packages? article.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
naniew
Posts: 12
Joined: Fri Apr 24, 2015 10:31 am

Re: Update application without elevation with new code signing cerificate

Thank you for pointing me into the right direction.

This is what I was looking for:
Migrating to a new certificate
If migrating to a new certificate that has a changed Subject field and want to keep the updater - web server channel security, you need to sign an update package with the old certificate and inside that package have the "Updater.exe" signed with the new certificate.

After doing this, all subsequent update packages can be signed using the new certificate.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Update application without elevation with new code signing cerificate

You're welcome,

Should there be any difficulty you encounter implementing something, please do not hesitate to contact me and I will gladly assist.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”