Activity Posted November 23, 2010 Share Posted November 23, 2010 Hello there :] I'm new in the AutoIt business and it's really cool Now, I have a little question: I made a new au3 script, that I made an auto install to a software. This script completely ready for use and advertise. But.. How can I combine the au3 file (script) with the exe software that I just made this sciprt? I mean, I need to click double click on the script file then the auto install running. But how can I combine the exe and the script? which means that I don't need the software on my computer? For exmaple: I made a script. I want to share it. but the people who gets the script, need the software that I used for the auto install. So, how can I "COMBINE" the .exe and the script that I can just share it without need the software? Just double click on the file and auto install started.. Hope you understand, thanks a lotttt to the people who will help me Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted November 23, 2010 Moderators Share Posted November 23, 2010 Look in the Help file under FileInstall. From what you're talking about, this is probably your best bet. "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...
Activity Posted November 23, 2010 Author Share Posted November 23, 2010 you mean this? FileInstall ( "source", "dest" [, flag] ) If yes, can you please help me ? I can't understand... "Source" and "dest" aren't the same? And what is flag? Pleaseeee help me, I must it !!! Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted November 23, 2010 Moderators Share Posted November 23, 2010 FileInstall would bundle a file of your choosing into the script, to be included at run-time. For example: FileInstall("C:\MyFile.exe", "C:\MyFile.exe", 1) This will take the MyFile.exe from your machine, bundle it into your script, and then place it in the root of C:\ on the target computer. The flag (1 or 0) is whether you want the file overwritten if it already exists on the target machine. In the example above, when I double click on the compiled script, it will copy the MyFile.exe file to my C:\, overwriting it if it already exists. This should get you on your way to what you want to do. "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...
Activity Posted November 23, 2010 Author Share Posted November 23, 2010 First, thanks a lot about the answer :] But I don't sure you understood me.. I want to make an exe file, that you just double click on it and the auto install is begin. Which means that it will not extract the exe software, It will auto install it ..... I just want to double click about the install software and the script will run, which means the auto install will run ... I can't really explain, but take an example: There's someone in my country forum, that made auto install. This auto install it's just an install of BSplayer, that's how it's looks like. But when you double click on the install, full size 16MB, the auto install is atuomatically begin. Which means like he "hides" the script and I can't see it.. Hope you understand and pleasee help!! Thanks so much !! Link to comment Share on other sites More sharing options...
Chimaera Posted November 23, 2010 Share Posted November 23, 2010 How can I combine the au3 file (script) with the exe software that I just made this sciprt?I mean, I need to click double click on the script file then the auto install running.But how can I combine the exe and the script? which means that I don't need the software on my computer?Do you mean turn your script into a standalone exe?If thats what you mean just use the compile to exe tool that comes with Autoit If Ive just helped you ... miracles do happen. Chimaera CopyRobo() * Hidden Admin Account Enabler * Software Location From Registry * Find Display Resolution * _ChangeServices() Link to comment Share on other sites More sharing options...
Activity Posted November 23, 2010 Author Share Posted November 23, 2010 hehe nooo... Ok, look: I want to make auto install, that: There's CCleaner install for exmaple. you know, the install, the full 2.3MB install. So, if you double click on it, regular install window pop up. So, I want to make something similar: I want to make auto install for this CCleaner for example, Which I just need to double click on it install, the 2.3MB, and instead of regular install, there will pop up my auto install !!! That's what I mean !! Like "COMBINE" the auto install script into the software's install.. that's all. Hope you get it now.. Link to comment Share on other sites More sharing options...
Tvern Posted November 23, 2010 Share Posted November 23, 2010 As JLogan3o13 pointed out, you want to use FileInstall for that.Lets say you call your script "YourScript.Exe" and the file you want to include is "CCleanerInstall.exe"FileInstall can be used to include CCleanerInstall.exe in YourScript.exe.When Script.exe is run it puts CCleanerInstall.exe in a folder of choice. like @ScriptDir, or @TempDir.The script can then run the CCleanerInstall.exe and perform the automated installation on it.Once done CCleanerInstall.exe can be deleted. Link to comment Share on other sites More sharing options...
Activity Posted November 23, 2010 Author Share Posted November 23, 2010 (edited) Ohhh.. ok, thanks a lot But.. look, that's what I did:$b = TrueIf $b = True Then FileInstall("C:\CC.exe", "@TempDir", 1)Run ( "C:\AA.exe" )_WinWaitActivate("Installer Language","Please select a lang")I don't get it ..How should the CCleaner locate in the Temp folder or any folder,when I double click on that file I compiled?You said:When Script.exe is run it puts CCleanerInstall.exe in a folder of choice. like @ScriptDir, or @TempDir.for example: I want to put the CCleanerInstall.exe in %TEMP% Folder.how can I do that? Edited November 23, 2010 by Activity Link to comment Share on other sites More sharing options...
taietel Posted November 23, 2010 Share Posted November 23, 2010 Read in the help file about WinZip installation, AutoIt Info Tool, then FileInstall. Things you should know first...In the beginning there was only ONE! And zero... Progs: Create PDF(TXT2PDF,IMG2PDF) 3D Bar Graph DeskGadget Menu INI Photo Mosaic 3D Text Link to comment Share on other sites More sharing options...
Activity Posted November 23, 2010 Author Share Posted November 23, 2010 (edited) Come on.. please help me and answer about comment 9 When Script.exe is run it puts CCleanerInstall.exe in a folder of choice. like @ScriptDir, or @TempDir.for example: I want to put the CCleanerInstall.exe in %TEMP% Folder.how can I do that? Edited November 23, 2010 by Activity Link to comment Share on other sites More sharing options...
guinness Posted November 23, 2010 Share Posted November 23, 2010 (edited) FileInstall("C:\CCleaner.exe", @TempDir & "\CCleaner.exe", 1) Global $PID = Run(@TempDir & "\CCleaner.exe") You were using "" (quotes) around a macro so it would be installing to a drive/folder called @TempDir and not the actual %TEMP% directory. Plus why not use the Portable Version instead? It's a ZIP file that can easily be extracted with 7-Zip. And if you don't like macros then try this... #include <WinAPI.au3> FileInstall("C:\CCleaner.exe", _WinAPI_ExpandEnvironmentStrings("%TEMP%") & "\CCleaner.exe", 1) Global $PID = Run(_WinAPI_ExpandEnvironmentStrings("%TEMP%") & "\CCleaner.exe) Edited November 23, 2010 by guinness UDF List: _AdapterConnections() • _AlwaysRun() • _AppMon() • _AppMonEx() • _ArrayFilter/_ArrayReduce • _BinaryBin() • _CheckMsgBox() • _CmdLineRaw() • _ContextMenu() • _ConvertLHWebColor()/_ConvertSHWebColor() • _DesktopDimensions() • _DisplayPassword() • _DotNet_Load()/_DotNet_Unload() • _Fibonacci() • _FileCompare() • _FileCompareContents() • _FileNameByHandle() • _FilePrefix/SRE() • _FindInFile() • _GetBackgroundColor()/_SetBackgroundColor() • _GetConrolID() • _GetCtrlClass() • _GetDirectoryFormat() • _GetDriveMediaType() • _GetFilename()/_GetFilenameExt() • _GetHardwareID() • _GetIP() • _GetIP_Country() • _GetOSLanguage() • _GetSavedSource() • _GetStringSize() • _GetSystemPaths() • _GetURLImage() • _GIFImage() • _GoogleWeather() • _GUICtrlCreateGroup() • _GUICtrlListBox_CreateArray() • _GUICtrlListView_CreateArray() • _GUICtrlListView_SaveCSV() • _GUICtrlListView_SaveHTML() • _GUICtrlListView_SaveTxt() • _GUICtrlListView_SaveXML() • _GUICtrlMenu_Recent() • _GUICtrlMenu_SetItemImage() • _GUICtrlTreeView_CreateArray() • _GUIDisable() • _GUIImageList_SetIconFromHandle() • _GUIRegisterMsg() • _GUISetIcon() • _Icon_Clear()/_Icon_Set() • _IdleTime() • _InetGet() • _InetGetGUI() • _InetGetProgress() • _IPDetails() • _IsFileOlder() • _IsGUID() • _IsHex() • _IsPalindrome() • _IsRegKey() • _IsStringRegExp() • _IsSystemDrive() • _IsUPX() • _IsValidType() • _IsWebColor() • _Language() • _Log() • _MicrosoftInternetConnectivity() • _MSDNDataType() • _PathFull/GetRelative/Split() • _PathSplitEx() • _PrintFromArray() • _ProgressSetMarquee() • _ReDim() • _RockPaperScissors()/_RockPaperScissorsLizardSpock() • _ScrollingCredits • _SelfDelete() • _SelfRename() • _SelfUpdate() • _SendTo() • _ShellAll() • _ShellFile() • _ShellFolder() • _SingletonHWID() • _SingletonPID() • _Startup() • _StringCompact() • _StringIsValid() • _StringRegExpMetaCharacters() • _StringReplaceWholeWord() • _StringStripChars() • _Temperature() • _TrialPeriod() • _UKToUSDate()/_USToUKDate() • _WinAPI_Create_CTL_CODE() • _WinAPI_CreateGUID() • _WMIDateStringToDate()/_DateToWMIDateString() • Au3 script parsing • AutoIt Search • AutoIt3 Portable • AutoIt3WrapperToPragma • AutoItWinGetTitle()/AutoItWinSetTitle() • Coding • DirToHTML5 • FileInstallr • FileReadLastChars() • GeoIP database • GUI - Only Close Button • GUI Examples • GUICtrlDeleteImage() • GUICtrlGetBkColor() • GUICtrlGetStyle() • GUIEvents • GUIGetBkColor() • Int_Parse() & Int_TryParse() • IsISBN() • LockFile() • Mapping CtrlIDs • OOP in AutoIt • ParseHeadersToSciTE() • PasswordValid • PasteBin • Posts Per Day • PreExpand • Protect Globals • Queue() • Resource Update • ResourcesEx • SciTE Jump • Settings INI • SHELLHOOK • Shunting-Yard • Signature Creator • Stack() • Stopwatch() • StringAddLF()/StringStripLF() • StringEOLToCRLF() • VSCROLL • WM_COPYDATA • More Examples... Updated: 22/04/2018 Link to comment Share on other sites More sharing options...
Activity Posted November 23, 2010 Author Share Posted November 23, 2010 Yayyyyyyyyy it workssss!! Dude, thank you so so so so so muchh !!! :] 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