Windows USB vendor driver Installer package does not detect existing installation and allows re-installation - Advanced Installer Community
DaveRobSepura
Posts: 10
Joined: Tue Feb 07, 2017 6:54 pm

Windows USB vendor driver Installer package does not detect existing installation and allows re-installation

I have an Advanced Installer project that installs a proprietary Windows driver.
I have checked the 'Register product with Windows Installer' flag is set in the project.
I have checked that the product installation is recognised by Windows Installer using the script at https://github.com/glytzhkof/all/blob/m ... ini-V4.vbs.

I can run the installer several times and every time it simply re-installs the driver without prompting to repair, modify etc.

I have checked that the product code and the upgrade code in the MSI file match the codes in the AI project.
The Installation options are 'Per-machine only (fails if the user is not administrator)
Last edited by DaveRobSepura on Mon Dec 02, 2024 5:57 pm, edited 1 time in total.
Catalin
Posts: 7847
Joined: Wed Jun 13, 2018 7:49 am

Re: Windows USB vendor driver nstaller package does not detect existing installation and allows re-installation

Hello Dave,

Not quite sure I fully understand your scenario here.

From your explanation so far, I'm thinking that you have a Windows Driver already packaged as an MSI and that MSI you further add into an Advanced Installer project (e.g. as a prerequisite)? And during consecutive installations, the prerequisite and the main package keep reinstalling?

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
DaveRobSepura
Posts: 10
Joined: Tue Feb 07, 2017 6:54 pm

Re: Windows USB vendor driver nstaller package does not detect existing installation and allows re-installation

Hi Catalin,

The issue is that when I run the installer exe twice, without uninstalling between, the second run does not detect the existing installation. I would expect the second run of the installer to have detected the existing installation and prompt to repair, remove or reinstall.

The MSI file I mentioned is the Windows Installer file embedded in the installer EXE package. I extracted it from the exe using the /extract option and I used Orca to examine the contents of the MSI file.

Thanks,

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

Re: Windows USB vendor driver Installer package does not detect existing installation and allows re-installation

Hello David,

In order for a setup to enter Maintenance, a few conditions must be met:

- the UpgradeCode must be the same

- the ProductCode must be the same

- the PackageCode must also be the same

You can read more about each here:

Product Identification (ProductCode and UpgradeCode)

So basically you must run the exact same setup, without, for instance, rebuilding it in Advanced Installer or launching it from Advanced Installer GUI (e.g. by pressing F5).

Additionally, please make sure that the "Register product with Windows Installer" option is checked in the "Product Details" page.

Hope this helps!

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
DaveRobSepura
Posts: 10
Joined: Tue Feb 07, 2017 6:54 pm

Re: Windows USB vendor driver Installer package does not detect existing installation and allows re-installation

Hi Catalin,

I am running the same installer repeated times, and it never enters maintenance mode.
I have checked that the product, package and upgrade codes are registered with Windows Installer using the script from here: https://github.com/glytzhkof/all/blob/m ... ini-V4.vbs

I have checked that the 'Register product with Windows Installer' checkbox is checked and this this confirmed seeing that the ID codes are all registered with Windows Installer.

Thanks,

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

Re: Windows USB vendor driver Installer package does not detect existing installation and allows re-installation

Hello David,

First of all, pleaase accept my apologies for such a delayed reply on this - I somehow overlooked this thread.

In order for me to further investigate this, could you please forward me the following resources:

- a copy of the AIP file

- a download link for the EXE setup

by email at support at advancedinstaller dot com so I can further test and investigate this behavior?

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Catalin
Posts: 7847
Joined: Wed Jun 13, 2018 7:49 am

Re: Windows USB vendor driver Installer package does not detect existing installation and allows re-installation

Hello,

For anyone else stumbling upon this, this was caused by the following option from the "Builds" page, which was checked in the project:
Screenshot_214.png
Screenshot_214.png (13.68 KiB) Viewed 5114 times

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

Return to “Common Problems”