Jump to content

ReFileInstall


Recommended Posts

is there an option or udf of somesort where I can install a file with fileinstall run the script and then re compile the file into the autoit source so that if it was updated the update will be included in the script

I'm guessing the answer is know as the script would probably have to be re-compiled everytime so if anyone knows another way around this let me know

Link to comment
Share on other sites

is there an option or udf of somesort where I can install a file with fileinstall run the script and then re compile the file into the autoit source so that if it was updated the update will be included in the script

I'm guessing the answer is know as the script would probably have to be re-compiled everytime so if anyone knows another way around this let me know

The answer is (as you guessed) No. The files in the Aut2exe folder would also have to be installed to make it work. Why don't you just fileinstall it to some folder that people seldom look through like @SystemDir? Then reference it there. If they don't have AutoIt installed then even when they looked it would be difficult to spot because it would be using the default windows icon.

Are you aware that an AutoIt script file does not have to have the au3 extension? as long as the contents can be recognized as AutoIt code then AutoIt will use it even with a .txt extension. I have not tried but I suspect that AutoIt may even handle it with no extension.

George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Link to comment
Share on other sites

what I'm doing is FileInstalling to the @TempDir & '\MyDir' running the script then DirRemove the directory, the thing is that I want the files re-packed into the compiled exe.

the goal of this is to create a portable application that can save user settings.

Link to comment
Share on other sites

what I'm doing is FileInstalling to the @TempDir & '\MyDir' running the script then DirRemove the directory, the thing is that I want the files re-packed into the compiled exe.

the goal of this is to create a portable application that can save user settings.

And the answer remains the same, it can't be done.

Ask yourself this question. Where do portable apps save user settings?

The answer is in an Ini file or in the registry but use of the registry is avoided wherever possible. You might be able to come close by creating a proper file installer (Inno NSIS &etc) script and using the flags that are usually available in them but you will still have the problem of requiring the installers compiler to be installed at some point. Your best bet would be to just use an INI file in @ScriptDir and encrypt that if security is the issue.

George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

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