ginger9991 Posted February 17, 2016 Share Posted February 17, 2016 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}") Link to comment Share on other sites More sharing options...
JohnOne Posted February 17, 2016 Share Posted February 17, 2016 Run ("msiexec /i SystmOne.msi") WinWait ("[CLASS:MsiDialogCloseClass]") WinActivate ("[CLASS:MsiDialogCloseClass]") AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Radiance Posted February 17, 2016 Share Posted February 17, 2016 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. Link to comment Share on other sites More sharing options...
water Posted February 17, 2016 Share Posted February 17, 2016 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 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
ginger9991 Posted February 17, 2016 Author Share Posted February 17, 2016 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 Link to comment Share on other sites More sharing options...
water Posted February 17, 2016 Share Posted February 17, 2016 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 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
ginger9991 Posted February 17, 2016 Author Share Posted February 17, 2016 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. Link to comment Share on other sites More sharing options...
water Posted February 17, 2016 Share Posted February 17, 2016 Isn't it possible to use the Control* functions instead of Send etc? My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
ginger9991 Posted February 17, 2016 Author Share Posted February 17, 2016 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? Link to comment Share on other sites More sharing options...
water Posted February 17, 2016 Share Posted February 17, 2016 What does Send ("!n") do? My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
ginger9991 Posted February 17, 2016 Author Share Posted February 17, 2016 !n is the n key. Basically clicking next. Link to comment Share on other sites More sharing options...
water Posted February 17, 2016 Share Posted February 17, 2016 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 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
ginger9991 Posted February 17, 2016 Author Share Posted February 17, 2016 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) Link to comment Share on other sites More sharing options...
water Posted February 17, 2016 Share Posted February 17, 2016 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 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
ginger9991 Posted February 17, 2016 Author Share Posted February 17, 2016 unfortunatly im hitting the same issue. Cant get my head around this. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now