Jump to content

Trying to write an autoit script


NELyon
 Share

Recommended Posts

I'm making a program that generates a FileInstall from the FileOpenDialog. I got it to write the $Region part, but i can't get it to write FileInstall.

#Include <GUIConstants.au3>
MsgBox(64, "Easy Setup Code Maker!", "Welcome to the Setup Code Maker. This will"&@CRLF&"Make a custom setup program for your program!")
FileWrite("Installcode.au3", '#region----Code Generated by Easy Setup Generator'&@CRLF)
MsgBox(64, "Easy Setup Code Maker!", "Get ready to select the file the installer will install")
$file = FileOpenDialog("Open a file","","All Files (*.*)")
FileWrite("Installcode.au3", 'FileInstall('&$file&', "C:\"');<<<<<Right there>>>>>
Link to comment
Share on other sites

  • Developers

I'm making a program that generates a FileInstall from the FileOpenDialog. I got it to write the $Region part, but i can't get it to write FileInstall.

How would this ever work ?

FileInstall() will include the File-to-be-Installed into the EXE at compilation time.

so how would aut2exe know what to include in the EXE ?

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

  • Developers

ok see what you are doing now.. my bad... try:

FileWrite("Installcode.au3", 'FileInstall("'&$file&'", "C:\"')

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

ok see what you are doing now.. my bad... try:

FileWrite("Installcode.au3", 'FileInstall("'&$file&'", "C:\"')
Was that missing something?

FileWrite("Installcode.au3", 'FileInstall("'&$file&'", "C:\")')

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...