Unattended setup

The free CAN Software API (Application Programming Interface) for Windows®

Unattended setup

Postby Geth » Tue 8. Feb 2011, 12:57

Hi,

I would like to distribute PEAK drivers and softwares (PCAN Pc-card or USB & PCAN-Basic / PCAn-Viewer) with our application. So I need to include PEAK setup inside our own application setup. It could be great if it was possible to perform an unattended (silent) setup in order to install just the necessary files of the hardware we use and avoid issue with final user selecting wrong options. Is there a way to do that, using command line parameters or ini file with preselected parameters/options.

Thanks in advance for your help

Regards

TG
Geth
 
Posts: 2
Joined: Thu 25. Nov 2010, 19:48

Re: Unattended setup

Postby G.Lang » Wed 9. Feb 2011, 12:37

Hi,

yes it is possible to install the driver and the PCAN-View automatically. Create a registry key "HKEY_CURRENT_USER\Software\PEAK-System\PEAK OEM Drivers" with a string called "Components".

Valid values for the string are:

"A" = PCAN-USB -> for the various versions of our USB based CAN hardware like PCAN-USB, PCAN-USB ISO & PCAN-USB Pro

"B" = PCAN-Dongle -> for LPT based CAN hardware like PCAN-Dongle and PCAN-Dongle ISO

"C" = PCAN-ISA -> for the various versions of our ISA based CAN hardware like PCAN-ISA and PCAN-PC/104

"D" = PCAN-PCI -> for the various versions of our PCI & PCIe based CAN hardware like PCAN-PCI, PCAN-PCI Express, PCAN-ExpressCard, PCAN-cPCI, PCAN-miniPCI, PCAN-PCI/104-Express and PCAN-PC/104-Plus

"E" = PCAN-PC Card -> only for the PCAN-PC Card

"F" = PCAN-View -> a CAN monitor

Every combination is possible. The key will be deleted automatically after the driver installation is finished. For example: "ACDF" install the drivers for the PCAN-USB adaptor + PCAN-ISA card + PCAN-PCI card + PCAN-View

pic2_registry_key_for_silent_installation.jpg
pic2_registry_key_for_silent_installation.jpg (150.95 KiB) Viewed 1329 times

Please start now the "PeakOemDrv.exe /s" from your setup procedure ("/s" -> silent mode). That´s it :)

Note: If you are running applications using the PCAN-Light-DLL or PCANBasic-DLL than it is necessary to copy the needed DLL to the global directory (for example Windows\System32 at Windows XP).

regards
Gunther
User avatar
G.Lang
Support
Support
 
Posts: 78
Joined: Wed 22. Sep 2010, 14:58
Location: Paradise City

Re: Unattended setup

Postby Geth » Wed 9. Feb 2011, 18:04

Hi, Gunther

Great, that's exactly what I needed and thanks very much for your prompt reply.

Regards

TG
Geth
 
Posts: 2
Joined: Thu 25. Nov 2010, 19:48

Re: Unattended setup

Postby konchulio » Thu 15. Mar 2012, 13:08

Hello,

is it possible to unttended install "PEAK OEM Driver" under System-Account? In this case the solution abov don't work becouse the HKCU-Hive is not loadet!
Another problem is in Win 7 with the "Windows Secutiy Warning". In silent-mode the Security Warning don't accept and the "PEAK OEM Driver" don't install correctly.

1. Windows Security Message don't accept in silent mode
2. Missing subfolder in installation directory
3. Wrong entry in "Programs an Features"
Attachments
windows security msg.PNG
windows security msg.PNG (33.88 KiB) Viewed 820 times
PCAN1.PNG
PCAN1.PNG (40.96 KiB) Viewed 820 times
PCAN2.PNG
PCAN2.PNG (9.66 KiB) Viewed 820 times
konchulio
 
Posts: 1
Joined: Thu 15. Mar 2012, 12:18

Re: Unattended setup

Postby G.Lang » Fri 16. Mar 2012, 12:42

Hi,

sorry but it´s not possible to do this under a System-Account.

1. Windows Security Message don't accept in silent mode
-> it´s possible to disable the "Windows Security" notification but this is against Microsofts security policy and not recommended

2. Missing subfolder in installation directory
-> it looks that you use an invalid or wrong registry key or wrong/missing string (or string value)

3. Wrong entry in "Programs an Features"
-> what should be wrong?

regards
Gunther
User avatar
G.Lang
Support
Support
 
Posts: 78
Joined: Wed 22. Sep 2010, 14:58
Location: Paradise City


Return to PCAN-Basic



cron