tom35i Posted December 4, 2009 Share Posted December 4, 2009 Hey first a lil bit of background At work we have to send out configured laptops to out engineers some so the programs that are pre installed on the image require running so that they are setup for the profile (this cant b done once the engineers have the laptops as they wrk on 3g and it takes ages for the apps to finish) now the problem i have designed a autoit to run these programs before they leave the shop but when running the exe files of these programs runs the program but not the last part of the install, when running the program from a shortcut it will run the last part of the program how can i either run a shortcut or run the program in such a way that it will finish the install example ;Run Firefox and close If FileExists("C:\Program Files\Mozilla Firefox\firefox.exe") Then Run("C:\Program Files\Mozilla Firefox\firefox.exe", "c:", @SW_MAXIMIZE) WinWaitActive("Mozilla Firefox") MemoWrite("Mozilla FireFox Run OK") Sleep("1000") WinClose("Mozilla Firefox") Else MemoWrite("FAIL Mozilla FireFox Not Installed FAIL") MsgBox(0, "Mozilla FireFox NOT INSTALLED", "Warning Mozilla FireFox Is Not Installed Please Install And Run Checker Again") Exit EndIf thank you YEA BOIhttp://www.myspace.com/comeoutfiringhttp://www.last.fm/music/comeoutfiringhttp://www.facebook.com/pages/comeoutfiring/75676261698http://www.reverbnation.com/comeoutfiringhttp://www.purevolume.com/comeoutfiringhttp://www.twitter.com/comeoutfiringhttp://www.youtube.com/comeoutfiring Link to comment Share on other sites More sharing options...
jvanegmond Posted December 4, 2009 Share Posted December 4, 2009 I sure hoped you searched, because this has been posted over a hundred times.... http://www.autoitscript.com/autoit3/docs/functions/ShellExecute.htm github.com/jvanegmond Link to comment Share on other sites More sharing options...
tom35i Posted December 7, 2009 Author Share Posted December 7, 2009 hey cheers for the reply but the shortcut is a advertised shortcut which will load a msi to check the install, sadly i have spent the last few days looking for a way to do this and am unable to. there have been a couple of posts about it but no one seems to have a fix cheers tom YEA BOIhttp://www.myspace.com/comeoutfiringhttp://www.last.fm/music/comeoutfiringhttp://www.facebook.com/pages/comeoutfiring/75676261698http://www.reverbnation.com/comeoutfiringhttp://www.purevolume.com/comeoutfiringhttp://www.twitter.com/comeoutfiringhttp://www.youtube.com/comeoutfiring Link to comment Share on other sites More sharing options...
tom35i Posted December 17, 2009 Author Share Posted December 17, 2009 hey found out how to complete the install u need to force the msiexec to self repair the program Run(@ComSpec & " /c " & 'msiexec.exe /fpus LOCATION OF MSI', "", @SW_HIDE) hope this helps YEA BOIhttp://www.myspace.com/comeoutfiringhttp://www.last.fm/music/comeoutfiringhttp://www.facebook.com/pages/comeoutfiring/75676261698http://www.reverbnation.com/comeoutfiringhttp://www.purevolume.com/comeoutfiringhttp://www.twitter.com/comeoutfiringhttp://www.youtube.com/comeoutfiring 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