I am using PcanOemSetup.exe to install the drivers. I am running this setup program from within another installation package. It works fine, but if the drivers are already installed, I get the message "This product is currently installed. Would you like to uninstall it?". My choices are Yes or No.
I was wondering if there exists a command line option to force the selection to No in this case.
If there is not, I need to be able to detect if the product is already installed, so I can check for this as an installation condition within my installer. What exactly does PcanOemSetup.exe check to determine that the product is currently installed?
Detecting drivers already installed
Re: Detecting drivers already installed
Hello,
The values to be taken into account are: DisplayName and DisplayVersion.
Note that the identification number changes with each release, so you need to check the content of "...\Uninstall" sistematically.
This is not possible.mtomsak wrote:I was wondering if there exists a command line option to force the selection to No in this case.
PcanOemSetup.exe is a MSI Installer for the product "PEAK-Drivers". This means, it has a version and an identification number that unequivocally identifies a setup. If you try to install a PcanOemSetup.exe with higher version, then the older one is uninstalled automatically. The multiple installation of the same version of PcanOemSetup.exe is not allowed, that is why you get the prompt.mtomsak wrote:What exactly does PcanOemSetup.exe check to determine that the product is currently installed?
Try searching the registry for the product "PEAK-Drivers". The path in where Windows stores installed packages information is:mtomsak wrote: I need to be able to detect if the product is already installed, so I can check for this as an installation condition within my installer.
Code: Select all
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall
Best regards,
Keneth
Keneth