Jump to content

Recommended Posts

Posted

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>>>>>
  • Developers
Posted

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

Posted

I'm gonna make it write the path into the FileInstall code, so when compiled, it includes the file they selected.

Posted

FileOpenDialog changes working directory so you FileWrite is continued in the new directory.

XD

XD

XD

That was the problem!

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
  • Recently Browsing   0 members

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