rileyg Posted March 15, 2012 Share Posted March 15, 2012 I am trying to complete a script that will allow me to extract the contents of a Zip file into the users local temp folder under app data (that way anyone can install and it doesn't depend on rights on the root of C or program files/folder) AND then run the exe from there to install... Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted March 15, 2012 Moderators Share Posted March 15, 2012 rileyg, And the problem you are having is what exactly? We will not write the script for you, but if you post what you have and explain what is not working correctly we will certainly try and help you fix it. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Bert Posted March 15, 2012 Share Posted March 15, 2012 You can extract to a local directory where your script runs. Once done, you then simply use Filemove to move the files where you need to. The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
rileyg Posted March 15, 2012 Author Share Posted March 15, 2012 Thanks for your replies... I've used a autoit format that's worked in the past for plain .exe but because this is an .MSI, it pulls the file from the server, creates the directory but that's as far as it gets. Here is what I have (and yes, ALL the associated files are in the same folder as the .exe I'm creating) ToolTip("Installing.......", 0,0, "Please Wait...", 1) Sleep(10000) $installdir = @TempDir & "\Unity" $installer = $installdir & "\ViewMail.msi" DirCreate($installdir) Sleep(15000) FileInstall("ViewMail.MSI", $installer) RunAs("admin-user", "domain", "password", 4, $installer & " -install", "", @SW_HIDE) Sleep(10000) AutoItSetOption("WinWaitDelay", 1000) WinWaitActive("Preparing to Install", "Click Next to install.") Send("!n") Sleep(5000) WinWaitActive("Click Next to Continue.") Send("!n") Sleep(5000) WinWaitActive("Click Next to Finish.") Send("!n") Sleep(5000) ToolTip("Install complete....." , 0,0, "Have a great day...", 1) Sleep(9000) Link to comment Share on other sites More sharing options...
JohnQSmith Posted March 15, 2012 Share Posted March 15, 2012 Just a quick comment about your initial titleNeed Script to install a Zip once it's extracted and problem description I am trying to complete a script that will allow me to extract the contents of a Zip file. An MSI file and a ZIP file are two completely different animals. Whenever someone says "pls" because it's shorter than "please", I say "no" because it's shorter than "yes". Link to comment Share on other sites More sharing options...
rileyg Posted March 15, 2012 Author Share Posted March 15, 2012 so, do I understand that I cannot execute a .msi and install it with Autoit? Link to comment Share on other sites More sharing options...
rileyg Posted March 15, 2012 Author Share Posted March 15, 2012 I can extract the files, just need to run an .msi file with 2 "NEXTS" and one Finish command.... the msi resides in the same local folder the zip file was dumped in. Link to comment Share on other sites More sharing options...
JohnQSmith Posted March 15, 2012 Share Posted March 15, 2012 I don't seeI can extract the files, just need to run an .msi file with 2 "NEXTS" and one Finish command.... the msi resides in the same local folder the zip file was dumped in.You keep expanding your requirements. First it's a ZIP file, then it's an MSI file. Now it's BOTH! You might get more help if you explained exactly what you're trying to do, in detail. What are your inputs? What are your outputs? What intermediate steps are there? Pretty much everything that can be done manually in Windows can be automated in AutoIt given the proper instructions. Whenever someone says "pls" because it's shorter than "please", I say "no" because it's shorter than "yes". Link to comment Share on other sites More sharing options...
rileyg Posted March 15, 2012 Author Share Posted March 15, 2012 Didn't realize I was confusing the topic.... okay. I have a CiscoUnity exe file which uses Winzip to extract it since there are 1757 files in it (450mb). The script herein will pull it from the network folder, unzip the contents but where it stops is running the .MSI file which is the actual setup file. I just need for someone to look at the script I posted and tell me if they see anything wrong with it or is there a better way of doing it. I cannot extract the .msi since it requires several hundred dll's and other files to run/install as well..... thanks for your help in advance.... Link to comment Share on other sites More sharing options...
GMK Posted March 15, 2012 Share Posted March 15, 2012 Perhaps you can use msiexec.exe command line options?(See here.) Link to comment Share on other sites More sharing options...
rileyg Posted March 15, 2012 Author Share Posted March 15, 2012 Thanks GMK...I'll smoke that over too.... Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted March 15, 2012 Moderators Share Posted March 15, 2012 I use this for all of my MSI installs, for what it is worth: ShellExecuteWait("msiexec.exe", '/i "' & @ScriptDir & '<name of MSI>" /qn') "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
rileyg Posted March 20, 2012 Author Share Posted March 20, 2012 thanks Gang! I'll try it out 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