Referring too to post #24 I am getting the same error message i.e. a pop up that says:
Error Variable used without being declared.
Here is what I did:
I just downloaded your Installer Creator
I read all the forum posts and the help files
I copied my compiled AutoIt program and a supporting .txt file to a new folder
I started the Installer Creator and put in the appropriate details/options, choosing the option to make an .exe
It ran and produced a .exe "progname setup.exe"
I run the setup program and it starts and copies some files then at some unknown point in the process I get the error mentioned above and the program quits. I can see that it has not at that point created the destination program folder.
My prog was compiled with AutiIT 220.127.116.11.
Any light you can shed on this will be appreciated as I have invested 2-3 hours in finding and getting acquainted with this tool (and others of yours) which looks like just what I need and I am hoping that was not wasted!
I can only do some testing with AutoIt 18.104.22.168, at this point, because you have not supplied me with any specific detail, other than the basic steps. You also don't mention your version of Windows. I use Windows XP SP2 exclusively, which I state on my Toolbox page, so if you are using something else like Vista, and that is the issue, then I cannot help you. That said, it may be a simple issue related to the compiler in the version of AutoIt you are using ... I haven't tested it beyond v22.214.171.124 as I haven't had a reason to upgrade beyond that yet (or come to terms with any of the new changes ... which may be the issue).
However, you can try out the following tests.Test 1
1) De-select the 'Wipe Script' option (directly under the main BUILD button).
2) Try to manually compile the last script created while you have it open in SciTE (this script normally gets wiped after the executable is created).
3) If any errors occur, they should get reported to you, and it will most likely mean a compile issue is the problem.
4) There is a program available from the AutoIt forum (and instructions) for upgrading older scripts to the newer #Include standards, etc. You could also try doing that as a test.Test 2
1) Instead of creating an executable, try creating an installer package (.zip) only, without changing any of your other settings.
2) Try installing from that (obviously you'll need to install my Universal Installer
program first to test this method out).
3) If any error occurs, this should tell us that one of your settings is to blame.Test 3
1) If you have access to an earlier version of AutoIt (i.e. 126.96.36.199 --> 188.8.131.52), then try that with your settings (i.e. executable & then install test).
2) If any error occurs, this should tell us that one of your settings is to blame.My Thoughts
While it is easy to think that the version of AutoIt may be the issue, I suspect that I would have had more reports of an issue by now ... unless others have done the above tests or made logical deductions of their own, and dealt with that in some way or the other.
You could also email me a copy of your 'Installer.inst' and Installer script (au3) files or just post the content for me to check.Other Questions
Have you set the Install path before building?
What about other paths (Uninstall, Shortcuts)?
I'm presuming you are using Installer Creator v2.5
I also presume you've read all of Post #25 etc?
I should be able to get back to you in a day or three with the results of the version test (maybe after the weekend). Hopefully you can also do your own tests (as above) and get back to me.