iHonda Posted March 24, 2006 Share Posted March 24, 2006 ok i know that this is probly a noob question. but how do u define the source for it to compile?? because what i want to do is use it like other programs do i mean like the person downloads 1 thing runs it then the prog has made a folder on the computer and filled it with files how do i do that?? A great place to start Autoit 1-2-3 Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted March 24, 2006 Share Posted March 24, 2006 uh im confused, as in when ur in scite u just compile it by pressing ctrl f7, or do u mean like u have like a program, that extracts files to a certain folder defined by the user, or what im really confused ehre Link to comment Share on other sites More sharing options...
Nuffilein805 Posted March 24, 2006 Share Posted March 24, 2006 think about fileinstall() this should do what you want might look like fileinstall ("some file", @tempdir & "\location file") hope this helps you my little chatmy little encryption toolmy little hidermy unsafe clickbot Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted March 24, 2006 Moderators Share Posted March 24, 2006 ok, don't do it!I agree with this statement, even for this thread Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
Nuffilein805 Posted March 24, 2006 Share Posted March 24, 2006 I agree with this statement, even for this thread lol, i'm starting to think that you don't think that zmaster is good at anything my little chatmy little encryption toolmy little hidermy unsafe clickbot Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted March 24, 2006 Moderators Share Posted March 24, 2006 lol, i'm starting to think that you don't think that zmaster is good at anythingHa!!, I've NEVER even hinted to that, but my statement was steered toward... I DIDN'T UNDERSTAND A DAMN THING HE ASKED FOR.... It was a praise to ya'll more so than anything, and a Please don't attempt it if you don't know what you're doing from me. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
Nuffilein805 Posted March 24, 2006 Share Posted March 24, 2006 Ha!!, I've NEVER even hinted to that, but my statement was steered toward... I DIDN'T UNDERSTAND A DAMN THING HE ASKED FOR.... It was a praise to ya'll more so than anything, and a Please don't attempt it if you don't know what you're doing from me.ok, thanks for praising me my little chatmy little encryption toolmy little hidermy unsafe clickbot Link to comment Share on other sites More sharing options...
iHonda Posted March 25, 2006 Author Share Posted March 25, 2006 (edited) yea guys im kind of an idiot when it comes to this stuff. im trying to use the fileinstall() function but i dont get how i use it, i would experiment but last time i did that it went horribly wrong and i couldnt stop the script. EDIT: ok i guess the better question is how do i make an installer, like the once that are used to install programs like well like they do with professional programs Edited March 25, 2006 by Zmaster A great place to start Autoit 1-2-3 Link to comment Share on other sites More sharing options...
ChrisL Posted March 25, 2006 Share Posted March 25, 2006 Fileinstall ("c:\Mysourcefolder\myfile.exe", "c:\Programfiles\WhereIWantMyFileInstalled\myFile.exe",1) "c:\Mysourcefolder\myfile.exe" is where the file you want to include is now on your machine, "c:\Programfiles\WhereIWantMyFileInstalled\myFile.exe" is where you want the file to go after the compiled script is launched. the comma 1 is to overwrite the file if it already exists. [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted March 26, 2006 Share Posted March 26, 2006 no no he wants to make a thing like installshield, like ull just be able to select files and it will create an installer for them, and have the progress bar and choose where to install the files and such Link to comment Share on other sites More sharing options...
Confuzzled Posted March 28, 2006 Share Posted March 28, 2006 Most people that come to these forums are looking for a method to eliminate installers or hide them by automation. You are looking for the opposite. Funny, that! Link to comment Share on other sites More sharing options...
NextQuestion Posted March 30, 2006 Share Posted March 30, 2006 Install sequencer Instar and Install from anywhere to anywhere To answer to the question : How to write a professional installer ? I am french and happy to thank to day the Autoit Team by giving my job to balance Autoit I recieved free. To make masters, I wrote Instar an installation sequencer in about 3000 SLOC lines . Each step install an application, testing before if it must and verifying after if the application is present. I attache Instar_Dev_20062903forum.zip Inside, to install Instar, I wrote Install_Instar.exe which can collect files anywhere and install them. I don't know if there is a bug or a lack in Autoit3, but I had to install fastly an I do this. I use Scite editor adapted to Autoit. Then I talk only about Install_Instar.exe. In Autoit 3.1.1.101, to install, the basic function is 1 FileInstall("TstA.txt", $InstarDir & "\TstA.txt", 1) 2 FileInstall("C:\anywhere\TstB.txt", $InstarDir & "\TstB.txt", 1) The line 1 work in au3 and in exe because TstA.txt is in current folder. The line 2 dont work in .exe because TstB.txt is not in current folder. To collect files anywhere, we would call a command that copy any selection of files to the current folder, and rename them with a prefix to distinct them to files already present and rename them with other prefixes to separate them from each other selections and generate/add @3.au3 and/or others, like in __Instar_Generer.cmd "%AiExe%\AutoIt3.exe" Instar_Install.au3 /i@3c%~dp0%InstDir%*.* which call LireParams() which call GenererInclude($FicsOrig) where /i means generate include to install, @3c prefix temp files, where 3 select a group of files with the same destination folder, where c is not used Then, like in InstallerInstar(), to install from anywhere to anywhere, we can write $InstarDir="c:\Program files\Instar" #include "@3.au3" $InstarDir="X:\anywhere\subfolder" #include "@4.au3" Perhaps we want install only if the version is newer. then install a little new file in a temp zone and compare the date of the already present version like in InstallerInstar() FileInstall("Tmp.txt", $FicTmp, 1) If ($x = 1) Then $r = String(FileGetTime($FicRef, 0, 1)) If not ( ($t > $r) Or ($r < "1") ) Then Return The version property of the exe is the same as Aut2Exe.exe compiler. We can add DateTime version in the application by generating and including DateCompilation.au3 echo Const $EnteteDate = "%SetDate2%" > DateCompilation.au3 Const $EnteteDate = "200602091648" We migrate now and need AdapterAuSysteme() ; Adapt to Systems "WIN_NT4", "WIN_XP", "WIN_2000" ... 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