Jump to content

Recommended Posts

Posted

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();

#------------------------------

Posted (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 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
Posted

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

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png 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 columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Posted

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...