MinatorMash Posted October 9, 2019 Share Posted October 9, 2019 Hello folks, I'm new here and some guidance is appreciated! What I'm looking to do: 1. Automate the installation process of an MSI - www.youtube.com/watch?v=MuOq6AOQ_gI&t=54s 2. Wrap the MSI with Creds - www.autoitscript.com/forum/topic/167696-msi-file-as-administrator/ 3. Convert the MSI into an EXE - No luck here... I've done a fair bit of research but I'm having trouble putting it all together. Is there a place or guide that would help me here? Thanks! Link to comment Share on other sites More sharing options...
Subz Posted October 9, 2019 Share Posted October 9, 2019 (edited) Basic method: #RequireAdmin RunWait('msiexe.exe /i "' & @ScriptDir & '\Filename.msi" /QB /NORESTART') ;~ Or RunAsWait("Username", "Domain", "Password", 0, 'msiexe.exe /i "' & @ScriptDir & '\Filename.msi" /QB /NORESTART') Edited October 9, 2019 by Subz MinatorMash 1 Link to comment Share on other sites More sharing options...
Bert Posted October 10, 2019 Share Posted October 10, 2019 look for The Volatran project. Link is in my signature. The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
Earthshine Posted October 10, 2019 Share Posted October 10, 2019 (edited) the last item the OP mentioned, that can't be done with autoit, it's the packager (InstallShield/Wise/Inno, etc...)that can make a bootstrapped setup.exe all compressed into one. then if you do that, the silent install command is different. lol just use the msi and also install it's prerequisites (programs/software it depends on) first, then run the msi silent. you might be able to use Orca to make a setup.exe all in one. All of our products rely on other off the shelf software so i use a setup.exe when i do the packaging using InstallShield, so it can install all the prereqs and then the main product suite. Edited October 10, 2019 by Earthshine MinatorMash 1 My resources are limited. You must ask the right questions Link to comment Share on other sites More sharing options...
MinatorMash Posted October 10, 2019 Author Share Posted October 10, 2019 Thank you...Bert, Subz & Earthshine. I'm going to walk the process in the coming days one by one, starting with automating the install. I'm literally starting at square one with AutoIT so it's going to take me some time to chew through the process. I'll keep you posted though...Vollatran looks interesting but maybe a bit advanced for my experience lvl. etiquette question - I don't see a place for me to "accept this answer" or to "award points" on this thread. Am I missing something? Just want to give credit where it is due. Thx - Newbie Link to comment Share on other sites More sharing options...
Musashi Posted October 10, 2019 Share Posted October 10, 2019 (edited) 1 hour ago, MinatorMash said: Just want to give credit where it is due. Move your mouse on the heart symbol of the post you would like to thank its author for. Then click 'Like' or 'Thanks'. It's located to the right below the contribution. Edited October 10, 2019 by Musashi MinatorMash 1 "In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move." Link to comment Share on other sites More sharing options...
MinatorMash Posted October 11, 2019 Author Share Posted October 11, 2019 Happy Friday I'm testing with both an EXE & MSI. When running both the below commands the UAC prompt comes up, I select yes, then nothing occurs. I would expect the setup window to appear but nothing...commands >> RunAsWait("Username", "Domain", "Password", 0, 'msiexe.exe "' & @ScriptDir & '\SuperPuttySetup-1.4.0.9.msi" /QB /NORESTART') RunAsWait("Username", "Domain", "Password", 0, @ScriptDir & '\Wireshark-win64-3.0.0.exe') If I run the below command the setup does appear - WireShark #RequireAdmin Run(@ScriptDir & '\Wireshark-win64-3.0.0.exe') AutoItSetOption('MouseCoordMode',0) Haven't been able to figure out the syntax to run the msi yet...messing around with >> Run("msiexe.exe /i", & @ScriptDir & '\SuperPuttySetup-1.4.0.9.msi" /QB /NORESTART' Thanks guys Link to comment Share on other sites More sharing options...
Shark007 Posted October 11, 2019 Share Posted October 11, 2019 you're missing a space after "msiexe.exe /i Link to comment Share on other sites More sharing options...
MinatorMash Posted October 11, 2019 Author Share Posted October 11, 2019 (edited) This worked - had a few things incorrectly configured. RunWait('msiexec /i "' & @ScriptDir & '\SuperPuttySetup-1.4.0.9.msi"') Edited October 11, 2019 by MinatorMash Link to comment Share on other sites More sharing options...
abberration Posted October 13, 2019 Share Posted October 13, 2019 You may want to look at the command FileInstall to build the setup file into your exe. You can extract it to a temporary folder and delete it after the program has been installed. You are not converting it to an exe, but you will have everything built into your autoit exe. MinatorMash 1 Easy MP3 | Software Installer | Password Manager Link to comment Share on other sites More sharing options...
MinatorMash Posted October 16, 2019 Author Share Posted October 16, 2019 Thanks all, with the help of multi folks I was able to design and install, laying down configurations without an MST and compile into an EXE to semi-secure the embedded credentials. Much appreciated all! 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