Jump to content
Sign in to follow this  
arryo

Basics for a programm

Recommended Posts

arryo

Hi,

Im programming a program with AutoIT. Its very complex, it has multiple functions etc.

Means I need multiple .exe.

So my questions:

1. Is it possible to make an install .exe with autoit?

My Solution:

When one of the Scripts gets started the first time, it just moves all the files to Program Directions and creates there a new folder.

But that's a strange solution.

2. Should I use the writereg functions for configuration?

Is that possible? Or do certain users cant write something in the register without permission? (-> script doesnt work then! :=( )

3. Any tips? =)

Share this post


Link to post
Share on other sites
Mat

Hi,

Im programming a program with AutoIT. Its very complex, it has multiple functions etc.

Means I need multiple .exe.

It shouldn't have to.

So my questions:

1. Is it possible to make an install .exe with autoit?

My Solution:

When one of the Scripts gets started the first time, it just moves all the files to Program Directions and creates there a new folder.

But that's a strange solution.

Look at "fileinstall", there are in fact a few very good examples of professional looking installers (TheSaint made one, and there is one called AIS somewhere too), search the forums.

2. Should I use the writereg functions for configuration?

Is that possible? Or do certain users cant write something in the register without permission? (-> script doesnt work then! :=( )

You can do that no problem, most programs do. AutoIt has very nice inbuilt registry functions. Some computers do disable programs from accessing the registry, in which case a ".ini" file would do the job (Ini functions also exist built in)

3. Any tips? =)

If it's nice then post it in example scripts when your done :)

Mat

Share this post


Link to post
Share on other sites
omikron48

Use FileInstall. Either that or find some software that makes installers, not everything always needs to be done using AutoIt.

Just what kind of functions would merit multiple .exe(s)?

Share this post


Link to post
Share on other sites
whim

Just what kind of functions would merit multiple .exe(s)?

i was asking myself the same question - my 5000+ lines of AI code compiles

to less than 325K ...

Share this post


Link to post
Share on other sites
arryo

It shouldn't have to.

The problem is - The GUI laggs hard when I start a script. Its like disabled until the action is finished. That's my problem.

Thank you very much!

Share this post


Link to post
Share on other sites
Jos

The problem is - The GUI laggs hard when I start a script. Its like disabled until the action is finished. That's my problem.

Thank you very much!

You could still do it with one Script.

What I end up doing in these type of situations where a separate process is needed I start a new instance of the same program with an specific parameter.

So when the script is started without any Parameter it shows the GUI and when a Parameter is specified it starts that particular Function that needs to run.

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.