InstallShield silent setup hangs
Posted 22 January 2004 - 15:27
I'm trying to deploy Logitech MouseWare v9.78 in a Windows2K Active Directory environment. Software is always installed with MSI by Software Policies.
The setup for LMW (Logitech MouseWare) is created with InstallShield and has version 220.127.116.110. LMW can't be snapshotted by Wise Package Studio or another tool because it installs drivers. I've created an iss-file for a silent setup. From within a MSI I use a custom action which runs this silent setup with my custom-made iss-file. (Note: A silent install suppresses the driver signing dialogs.)
But in some rare cases this silent setup hangs. One case I've solved but the second case is still under investigation.
Case 1: Remaining runonce-keys with 'setup.exe' caused the setup to halt. An InstallShield setup runs 'runonce -r' (initiated by IKernel.exe) which executes all runonce-keys. Setup.exe can't be started twice. I've solved this by backing up the runonce-keys and later restore them.
Case 2: Setup.exe hangs occasionally, and the machine is dead (which the message: installing managed software...). In this case I've noticed that IKernel.exe hasn't run runonce.exe. Very important detail (I think): McAfee is running... (3 services: AVSync Manager, McShield and NAI ePolicy Orchestrator Agent). Due to the fact that McAfee is running on each system I can't see a solution yet, because it doesn't always happen.
I've tried all possible solutions from InstallShield's KB Q104985, but none was helpfull. Has anybody an idea?
Posted 23 January 2004 - 10:19
I've tried to degrade the McAfee-datfiles (ok), and then to install Logitech MouseWare (by W2K Active Directory). Results: my computer hang, test succeeded
I found out that naimas32.exe (NAI ePolicy Orchestrator Agent) is running mcupdate.exe (McAfee Updater Program), which starts lwi.exe (McAfee Lightweight Installer) when the dat-files are not up-to-date. (By the way; AutoUpdate and AutoUpgrade in the VirusScan Console are not configured in this situation.)
Some logging by ePo:
2004-01-22 15:49:17: Agent: Scheduler: Invoking task [Startup Auto-Update]...
2004-01-22 15:49:17: Agent: Executing task for McAfee VirusScan...
My setup.exe started at 15:48:47, and didn't finish
So if your McAfee dat-files are up-to-date everything works ok. I'm now trying NOT to disable the virusscanner, but to update the scanner before the MouseWare installation, if that fails, I'll disable McAfee.
Posted 23 January 2004 - 12:49
"C:\Program Files\Common Files\Network Associates\McUpdate\mcupdate.exe" /TASK UPDATE /QUIET
Posted 29 January 2004 - 11:04
I'm now looking for a way not to use InstallShield's setup.exe...
Posted 03 February 2004 - 17:41
I've got rid of the setup.exe from InstallShield. Because the software included device drivers I was forced to use this method; but not anymore...!
1) I've created a snapshot of the installation.
2) Removed all device driver related files (.sys, cat, pnf, oem*.inf etc) from the Windows directory...
3) Created a tool in Delphi which installs the driver for me (!YES!)
4) Created a custom action which performs the driver installation with that tool.
The Delphi-tool includes two very important functions from the Windows DDK: SetupCopyOEMInf (SetupApi.dll) and UpdateDriverForPlugAndPlayDevices (NewDev.dll). The first one pre-installs a driver when no hardware found for a specific class, and the second updates the device with the new driver...
This tool works with EVERY Hardware Device! (not printers btw)
If you're interested in the tool wih source see: http://www.f1-report.nl/download/
Best regards :-)
Posted 29 August 2008 - 14:36
- Try using http://www.google.com before posting.
- I answer questions only via forums. Please appreciate the time I give here and don't send me personal emails.
Posted 08 September 2008 - 20:01
i don't use an installer and for sure no commercial installer...
or somebody that can advice me how to implement this in delphi?
1. call SetupAddToSourceListA (is this step really necessary?)
2. call SetupCopyOEMInfA
very important to me is to find the correct params for these functions.
any help will be really appreciated!
Posted 09 September 2008 - 09:46
Look on the Internet for the "Jedi Project" or something like that. Among these projects is a Win32 SDK conversion project. It contains about 100 Delphi .pas files.
That project is no longer maintained (I think), but the functions you're looking for are there.
Edit - here is the URL, you need Win32API.zip
Edited by Zweitze, 09 September 2008 - 09:49.