NELyon Posted September 9, 2006 Share Posted September 9, 2006 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 More sharing options...
Developers Jos Posted September 9, 2006 Developers Share Posted September 9, 2006 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 More sharing options...
NELyon Posted September 9, 2006 Author Share Posted September 9, 2006 I'm gonna make it write the path into the FileInstall code, so when compiled, it includes the file they selected. Link to comment Share on other sites More sharing options...
Developers Jos Posted September 9, 2006 Developers Share Posted September 9, 2006 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 More sharing options...
NELyon Posted September 9, 2006 Author Share Posted September 9, 2006 sorry, still only writes the region part Link to comment Share on other sites More sharing options...
MHz Posted September 9, 2006 Share Posted September 9, 2006 FileOpenDialog changes working directory so you FileWrite is continued in the new directory. Link to comment Share on other sites More sharing options...
GaryFrost Posted September 9, 2006 Share Posted September 9, 2006 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 More sharing options...
NELyon Posted September 9, 2006 Author Share Posted September 9, 2006 FileOpenDialog changes working directory so you FileWrite is continued in the new directory.XDXDXDThat was the problem! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now