Jump to content
Sign in to follow this  


Recommended Posts

i am working on a program, that will "brand" our version of windows. (it adds a custom to logo to the computer properties)

this is what i have

FileInstall("oemlogo.bmp", "C:\WINDOWS\system32")

FileInstall("oeminfo.ini", "C:\WINDOWS\system32")

The problem is that i have to keep the exe in the a folder with the rest .bmp and the .ini file. I would like to have it be a single .exe file.

i was trying to use fileinstall but it did not seemed to work even after i had it compiled. I guess i am asking if there is a way to compile all into a .exe.

Any Help would be good.

Hard work never killed anyone but why take the chance?

Share this post

Link to post
Share on other sites

You have to use full filepaths:

Fileinstall("C:\My Projects\oemlogo.bmp",@SystemDir  & "\oemlogo.bmp")
FileInstall("C:\My Projects\oeminfo.ini", @SystemDir & "\oeminfo.ini")

Look at FileInstall() in the help file for an example and more information. The first parameter must be a literal string(that means no variables). The second parameter can have variables and as you can see i replaced "C:\WINDOWS\system32\" with @SystemDir because @SystemDir will always be a full path to the user's system32 folder, regardless of what windows OS they are using or what drive they have the original OS installed on.

"So man has sown the wind and reaped the world. Perhaps in the next few hours there will no remembrance of the past and no hope for the future that might have been." & _"All the works of man will be consumed in the great fire after which he was created." & _"And if there is a future for man, insensitive as he is, proud and defiant in his pursuit of power, let him resolve to live it lovingly, for he knows well how to do so." & _"Then he may say once more, 'Truly the light is sweet, and what a pleasant thing it is for the eyes to see the sun.'" - The Day the Earth Caught Fire

Share this post

Link to post
Share on other sites

FileInstall( "source", "dest" [, flag]) right from the help file.

dest = The destination path of the file with trailing backslash if only the directory is used.

FileInstall("oemlogo.bmp", @SystemDir & "\")

FileInstall("oeminfo.ini", @SystemDir & "\")


Be sure oemlogo.bmp and oeminfo.ini are in the same folder as your script before compile it.

Edited by Danny35d

AutoIt Scripts:NetPrinter - Network Printer UtilityRobocopyGUI - GUI interface for M$ robocopy command line

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...