Tivoli Custom Action vbs
I'm having some problems using Tivoli to deply MSIs that have a custom action containing a vbs script.
Running the msi manually will execute the vbs perfectly, but deployment through Tivoli seems to bypass it completely.
As an example, I have an msi that installs an IE certificate. The msi copies the relevant files, then runs the vbs script shown below as a custom action. Running the msi manually executes the script and installs the certificate, but deploying via Tivoli just seems to copy the files without executing the script.
Tivoli reports the installation as successful, as does the Windows event log.
Has anyone come across something like this before? Any help would be gratefully appreciated.
Running the msi manually will execute the vbs perfectly, but deployment through Tivoli seems to bypass it completely.
As an example, I have an msi that installs an IE certificate. The msi copies the relevant files, then runs the vbs script shown below as a custom action. Running the msi manually executes the script and installs the certificate, but deploying via Tivoli just seems to copy the files without executing the script.
option Explicit
Dim strRun, oShell, certmgr, cert
set oShell = CreateObject("WScript.Shell")
certmgr = "C:\Windows\System32\certmgr.exe"
cert = "C:\Windows\System32\hrmsprod.cer"
strRun = certmgr & " -add " & cert & " -s AddressBook"
oShell.run strRun
Tivoli reports the installation as successful, as does the Windows event log.
Has anyone come across something like this before? Any help would be gratefully appreciated.
0 Comments
[ + ] Show comments
Answers (8)
Please log in to answer
Posted by:
anonymous_9363
17 years ago
As ever, enable Windows installer logging on the target workstation, then deploy. You'll end up with a .LOG whose name is prefixed with 'MSI' and will be located in C:\WINDOWS\TEMP:
REGEDIT4
[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\Installer]
"Debug"=dword:00000007
"Logging"="voicewarmup"
REGEDIT4
[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\Installer]
"Debug"=dword:00000007
"Logging"="voicewarmup"
Posted by:
AngelD
17 years ago
Posted by:
jimgillett
17 years ago
VBScab: Apologies, should have mentioned that logging was enabled. The logs from both types of installation (Tivoli and Manual) are identical, other than the command line entries.
The Tivoli install command line is:
whilst the Manual install shows:
AngelID: The CA is sequenced as 6550.
The Tivoli install command line is:
******* CommandLine: ALLUSERS=1 CURRENTDIRECTORY="C:\Program Files\Tivoli\lcf\dat\1" CLIENTUILEVEL=3 CLIENTPROCESSID=816
whilst the Manual install shows:
******* CommandLine: CURRENTDIRECTORY="C:\" CLIENTUILEVEL=2 CLIENTPROCESSID=5328
AngelID: The CA is sequenced as 6550.
Posted by:
anonymous_9363
17 years ago
Posted by:
jimgillett
17 years ago
Posted by:
kiptek
17 years ago
Posted by:
jmcfadyen
17 years ago
Posted by:
anonymous_9363
17 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.