MelvinChan Posted August 1, 2018 Posted August 1, 2018 Hi all. I've tested this autoit script as shown below & it does works if I run it with "AutoIt3_x64". I also read up that I can run "Aut2exe_x64.exe" to create an excutable file. I can convert it & get that *.exe file. So is there any method to integrate this script into the installer file? Do advise, thanks. #------------------------------ #RequireAdmin Main() Func Main() DoInstall(); EndFunc ; End:main() Func DoInstall() ShellExecute("NSCP-0.5.0.65-x64.msi") sleep(4000); Send("{ENTER}") sleep(3000); Send("{down}") sleep(3000); Send("{ENTER}") #sleep(3000); #Send("{TAB}") #sleep(3000); #Send("{TAB}") #sleep(3000); #Send("{ENTER}") #sleep(3000); #Send("{ENTER}") #sleep(3000); #Send("sgcorpop5p01"); #sleep(3000); #Send("{ENTER}") #Send("{ENTER}") #sleep(3000); #sleep(20000); EndFunc ; End:DoInstall() Func CleanUp(); EndFunc ; End:CleanUp(); #------------------------------
orbs Posted August 1, 2018 Posted August 1, 2018 (edited) first, this forum is for "Example Scripts" and is not the right place for getting help on an issue. report your topic and ask a mod to move it to the "AutoIt General Help and Support" subforum. second, nscp installer - like most, if not all, msi-based installers - supports silent automated installation, so you don't need all those Sleep() and send() commands. consult the website or documentation for details. if all your script does is installing the nscp package, you don't even need a script to do it. third, it is not clear to me which file you want to integrate into which other file. i bet it would not be too clear to anyone else reading your question. EDIT: now i see you already started a topic on the same issue, or a continuation of such, here: in that topic, you were already directed toward silent automated install. and you will continue to be directed toward that solution because it is the best solution, unless you have a clear and justified reason for not doing so. Edited August 1, 2018 by orbs Signature - my forum contributions: Spoiler UDF: LFN - support for long file names (over 260 characters) InputImpose - impose valid characters in an input control TimeConvert - convert UTC to/from local time and/or reformat the string representation AMF - accept multiple files from Windows Explorer context menu DateDuration - literal description of the difference between given dates Apps: Touch - set the "modified" timestamp of a file to current time Show For Files - tray menu to show/hide files extensions, hidden & system files, and selection checkboxes SPDiff - Single-Pane Text Diff
Moderators Melba23 Posted August 1, 2018 Moderators Posted August 1, 2018 Moved to the appropriate forum, as the AutoIt Example Scripts forum very clearly states: Quote Share your cool AutoIt scripts, UDFs and applications with others. Do not post general support questions here, instead use the AutoIt Help and Support forums. Moderation Team 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
Skysnake Posted August 3, 2018 Posted August 3, 2018 Hi Search on this topic? Also try this? Skysnake Skysnake Why is the snake in the sky?
careca Posted August 3, 2018 Posted August 3, 2018 One way to silent install is this: msiexec.exe /i "IDM UltraEdit v16.10.0.1036.msi" /qb- Spoiler Renamer - Rename files and folders, remove portions of text from the filename etc. GPO Tool - Export/Import Group policy settings. MirrorDir - Synchronize/Backup/Mirror Folders BeatsPlayer - Music player. Params Tool - Right click an exe to see it's parameters or execute them. String Trigger - Triggers pasting text or applications or internet links on specific strings. Inconspicuous - Hide files in plain sight, not fully encrypted. Regedit Control - Registry browsing history, quickly jump into any saved key. Time4Shutdown - Write the time for shutdown in minutes. Power Profiles Tool - Set a profile as active, delete, duplicate, export and import. Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes. NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s. IUIAutomation - Topic with framework and examples Au3Record.exe
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