Sign in to follow this  
Followers 0
iHonda

Noob Question

12 posts in this topic

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

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

ok, don't do it!

I agree with this statement, even for this thread :)

[center]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.[/center]

Share this post


Link to post
Share on other sites

lol, i'm starting to think that you don't think that zmaster is good at anything

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.

[center]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.[/center]

Share this post


Link to post
Share on other sites

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 :)

Share this post


Link to post
Share on other sites

#8 ·  Posted (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 by Zmaster

A great place to start Autoit 1-2-3

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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!

Share this post


Link to post
Share on other sites

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" ...

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0