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!

installgentleman
Posts: 4
Joined: Thu Oct 18, 2012 6:17 am

Question about digitally signing uninstallers

I have a question as to whether what I want to do is possible. The code signing certificates are held by certain individuals in our group and are not available to every person who may need to make installers. We have the binaries (those which are installed by the installer) signed first by the code signers, then the installer is made, and then the final resulting installer is also signed by the certificate holder.

The problem is that the uninstaller which is generated by advanced installer is not signed unless the person making the installer has the certificate, which we don't do. We could provide the certificates to everyone who makes installers but this would require a significant change in how we do things and would violate in my opinion best practices in terms of maintaining security of code signing certificates. There really should be no more than 2 people with access to these certificates, imho. Otherwise if someone leaves the organization, or whatever, there's a reason to revoke the certs, etc.

Is there a way to have someone else, other than the person making the installers, sign the uninstaller that is generated? Ie can you run advanced installer and have it output an uninstaller, then have someone else sign that, then include that signed uninstaller in a final generated installer package?

Hope the question is clear. Thanks,
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Question about digitally signing uninstallers

Hello and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.

Please keep in mind that the installation package created with Advanced Installer are MSI-based. This means that the installation process and the uninstallation process are handled through same installer package. So, after you create your installation package (which will handle the uninstallation process too) you should be able to sign the related package.

Also, since you are new, I highly recommend you read our tutorials for a better understanding of how to use Advanced Installer to efficiently deploy your products. This will also help you better understand support team's suggestions now and in the future. The Simple and Professional tutorials are especially important.

Let us know if this helps, otherwise please give us more details about your scenario.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
installgentleman
Posts: 4
Joined: Thu Oct 18, 2012 6:17 am

Re: Question about digitally signing uninstallers

Daniel,

Thanks for the reply.

Ok it is true that the .msi is the same for the installer & uninstaller. However I guess this is the situation: advanced installer outputs from our build process an .exe file that, when run, unpacks into a folder our installer (.msi) and a bunch of prerequisites, and a .cab file, then executes the .msi file.

We can sign this .exe package after it's made, but how do we sign the .msi that's inside without the cert being in the possession of the person doing the builds?

Extract the files, sign the .msi, then somehow re-pack them?

Thanks again
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Question about digitally signing uninstallers

Hello,

In order to achieve what you want you should build your project using the "EXE setup with resources next to it" option from "Media -> Configuration" tab. Then, you should sign all the generated installer files (EXE, MSI, CAB).

Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
installgentleman
Posts: 4
Joined: Thu Oct 18, 2012 6:17 am

Re: Question about digitally signing uninstallers

Thanks. We did know we could get all the individual files like that, or by extracting, but the main issue we have is, is there a way then to combine everything back together again into one executible for users to use?

Or do we have to zip it up and ask users to unzip the folder then click on a specific file?

Is there a way to have advanced installer then package all the resources into a single exec after things are signed?

Thanks again, great product by the way.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Question about digitally signing uninstallers

Hello,
Thanks. We did know we could get all the individual files like that, or by extracting, but the main issue we have is, is there a way then to combine everything back together again into one executible for users to use?
I'm afraid we don't have support for this.
Or do we have to zip it up and ask users to unzip the folder then click on a specific file?
You can use this approach in order to achieve what you want.
Is there a way to have advanced installer then package all the resources into a single exec after things are signed?
You can achieve this only if you will sign the related resource files using our "Digital Signature" page.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
installgentleman
Posts: 4
Joined: Thu Oct 18, 2012 6:17 am

Re: Question about digitally signing uninstallers

Would it be possible to extract the files, sign the msi, then make a new advanced installer install package that simply unzips everything into a directory and runs the .msi, if you understand what I mean? Ie a simple install script that simply says "put all these files in a directory together, then run the msi" and make an installer with that?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Question about digitally signing uninstallers

Hello,

In order to achieve this you can take a look on our "Create MSI wrapper over EXE installers" article.

Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”