ginger9991

Deployment help

15 posts in this topic

Hi Guys,

I have created a deployment package for a piece of software with a list of steps. Now this seems to run fine when i run it locally but when i use a deployment product (LANDesk) i get an issue where it will launch the correct installer but because the window isnt "active" or "live" it wont progress. If i click on the window attached "issue" the program will then run through and work as planned.

So basically i need to make this window active. This is the start of my command, Im a complete newb so any help would be really appreciated. Its seems like the winwaitactive command isnt working but when i run it locally its fine. Thanks in advance.

Run ("msiexec /i SystmOne.msi")
winwaitactive ("[CLASS:MsiDialogCloseClass]")
Send ("!n")
Sleep (2000)
Send ("{tab}")
Send ("{tab}")
Send ("{tab}")

issue.PNG

Share this post


Link to post
Share on other sites



I'm assuming you're in a corporate environment.

Deploying software with LANDesk should always be made in the background.

If you make random windows appear while the user is working, he will most likely interfere with your setup routines by closing the window or else.

For almost every good software there's an option for a "silent install" which runs completely invisible and saves yourself a lot of window-management work.

Share this post


Link to post
Share on other sites

A quick Google search led me to this site describing how to silently install the software:

http://www.bundlecommander.com/index.php/blog/48-carefusion-systmone

 


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

Hi Radiance,

Yep your 100% correct, however the package isnt deploying, it runs and sits there so running as the client account gives me a bit of insite into what the program is doing and where its getting stuck. The software does has a silent install however we require the software install to be customized and do several different steps after.

 

Hi Water - I found that article however, i want to find out why its happening as i have several pacakge to create after this that has no silent install so i might as well figure it out now rather then leave it with next weeks problems :)

Share this post


Link to post
Share on other sites

I assume LANDesk is running as a service in the background. Is the service enabled to interact with the desktop?


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

Water- Yes, I have also specified it to run with my admin account and have the same issue when deployed with Landesk. Run locally it is fine.

Share this post


Link to post
Share on other sites

Isn't it possible to use the Control* functions instead of Send etc?
 


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

I have to be honest i have not tried control. by looking at a few other bits online im guessing it will be controlsend Send ("!n") instead of how i have it listed above?

Share this post


Link to post
Share on other sites

What does Send ("!n") do?


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

!n is the n key. Basically clicking next.

Share this post


Link to post
Share on other sites

You would need to run the AutoIt Window Info Tool and grab the ControlId of the "next" button.
Then use

ControlClick("TPP SystmOne Setup", "", Control-ID as retrieved by the AutoIt Window Info Tool)

 


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

Hi Water, I have just done that and tested it local and it works but again through LANDesk it doesnt seem to. Im wondering if its not kicking off the MSI. If i run the job locally i can see 3 MSIEXEC services kick off. When running through LANDesk i can only see 1 start. I have added the file path in but i dont seem to be making any progress.  Thanks for your help with this.

FileChangeDir ("C:\Program Files\LANDesk\LDClient\sdmcache\packages$\SystmOne")
Run ("msiexec /i SystmOne.msi")
winwait ("[CLASS:MsiDialogCloseClass]")
WinActivate ("[CLASS:MsiDialogCloseClass]")
ControlClick("TPP SystmOne Setup", "", 226)

Share this post


Link to post
Share on other sites

Set the working dir for Run:

Run ("msiexec /i SystmOne.msi", "C:\Program Files\LANDesk\LDClient\sdmcache\packages$\SystmOne")

 


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

unfortunatly im hitting the same issue. Cant get my head around this.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now