Scheduled Tasks
Hi All,
Just wondering if anyone has come across running a scheduled task, which calls a vbscript which then in turns runs subroutines that install MSI.
Usually this works fine, but got Information Mapping 3.0f and when I log on to the server and run the VBScript it installs with out a problem. Checked all log files and spot on, but when it run via scheduled task, it just sits there running. The log file stops and I am out of ideas. Why would it not work in schedule task but will run when I double click on it.
Any ideas?
[align=center] [/align]
Just wondering if anyone has come across running a scheduled task, which calls a vbscript which then in turns runs subroutines that install MSI.
Usually this works fine, but got Information Mapping 3.0f and when I log on to the server and run the VBScript it installs with out a problem. Checked all log files and spot on, but when it run via scheduled task, it just sits there running. The log file stops and I am out of ideas. Why would it not work in schedule task but will run when I double click on it.
Any ideas?
[align=center] [/align]
0 Comments
[ + ] Show comments
Answers (15)
Please log in to answer
Posted by:
anonymous_9363
14 years ago
Scheduled tasks run in System context with no UI. I suspect your installer is popping up a dialog to the non-existent user. Check it out by running the script via a 'CMD /interactive' call.
BTW, is the script adding any value? Could the package be run by directly calling MSIExec (if it's an MSI) or the set-up stub?
BTW, is the script adding any value? Could the package be run by directly calling MSIExec (if it's an MSI) or the set-up stub?
Posted by:
Thegunner
14 years ago
To do the interactive command, the run field in the Scheduled Task will be
C:\Windows\System32\cmd.exe /interactive "C:\install\Installinfomap3.0f.vbs"
I did that, left it to run for a bit then logged in to the box and didnt see anything.
A box does pop up when I double click on the vbs script and disappear again.
[align=left] [/align]
C:\Windows\System32\cmd.exe /interactive "C:\install\Installinfomap3.0f.vbs"
I did that, left it to run for a bit then logged in to the box and didnt see anything.
A box does pop up when I double click on the vbs script and disappear again.
[align=left] [/align]
Posted by:
Thegunner
14 years ago
Posted by:
Thegunner
14 years ago
Posted by:
anonymous_9363
14 years ago
Posted by:
Thegunner
14 years ago
[align=left]Here is part 1 of the log, it is in two part due to it begin 1.3mb
[/align]
[/align]
Posted by:
anonymous_9363
14 years ago
Posted by:
Thegunner
14 years ago
[align=left]The formatting probably changed when I copied it. Will upload it again.
The log tells me it is failing on the Custom Actions, registering the DLL's. Been using a tool to compare the log files of a complete installation and the failed one.
Still not sure why it is failing via Scheduled Tasks, its more than likey it is the Customs Actions that is causing it.
Been speaking to the Vendor, they will be getting in contact soon.
[/align][align=left] [/align]
The log tells me it is failing on the Custom Actions, registering the DLL's. Been using a tool to compare the log files of a complete installation and the failed one.
Still not sure why it is failing via Scheduled Tasks, its more than likey it is the Customs Actions that is causing it.
Been speaking to the Vendor, they will be getting in contact soon.
[/align][align=left] [/align]
Posted by:
anonymous_9363
14 years ago
Custom Actions, registering the DLL's.Amateurs...
To compound their idiocy, I wonder if the CA is set to run in user context? That will be easy enough to fix in your transform but having them change their brain-dead package to register DLLs correctly is probably a battle for another day. Unless you want to sell them your fixed version, of course! LOL
Posted by:
Thegunner
14 years ago
Posted by:
anonymous_9363
14 years ago
Posted by:
Thegunner
14 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.