Jump to content

FileInstall issues


Recommended Posts

If MsgBox(1,"KLHThreatMeter Installer", "Press OK if your WoW folder is at: " & @CRLF & "'C:\Program Files\World of Warcraft\'") == 2 Then Exit

$addon = "C:\Program Files\World of Warcraft\Interface\Addons\KLHThreatMeter\"
FileInstall("D:\KLHThreatMeter\KLHThreatMeter.toc",         $addon & "KLHThreatMeter.toc")
FileInstall("D:\KLHThreatMeter\KLHThreatMeter.xml",         $addon & "KLHThreatMeter.xml")
FileInstall("D:\KLHThreatMeter\KLHThreatMeterAlert.lua",       $addon & "KLHThreatMeterAlert.lua")
FileInstall("D:\KLHThreatMeter\KLHThreatMeterCombat.lua",     $addon & "KLHThreatMeterCombat.lua")
FileInstall("D:\KLHThreatMeter\KLHThreatMeterConsoleIO.lua",   $addon & "KLHThreatMeterConsoleIO.lua")
FileInstall("D:\KLHThreatMeter\KLHThreatMeterData.lua",     $addon & "KLHThreatMeterData.lua")
FileInstall("D:\KLHThreatMeter\KLHThreatMeterGUI.lua",       $addon & "KLHThreatMeterGUI.lua")
FileInstall("D:\KLHThreatMeter\KLHThreatMeterLocalisation.lua",$addon & "KLHThreatMeterLocalisation.lua")
FileInstall("D:\KLHThreatMeter\KLHThreatMeterMain.lua",     $addon & "KLHThreatMeterMain.lua")
FileInstall("D:\KLHThreatMeter\KLHThreatMeterNetworking.lua",  $addon & "KLHThreatMeterNetworking.lua")
FileInstall("D:\KLHThreatMeter\KLHThreatMeterTables.lua",     $addon & "KLHThreatMeterTable.lua")
FileInstall("D:\KLHThreatMeter\KLHThreatMeterTargetting.lua",  $addon & "KLHThreatMeterTargetting.lua")
FileInstall("D:\KLHThreatMeter\KLHThreatMeterWorker.lua",     $addon & "KLHThreatMeterWorker.lua")
FileInstall("D:\KLHThreatMeter\Templates.xml",               $addon & "Templates.xml")

MsgBox(1, "Done", "Done")

That's the script I have right now, and my issue is that when its ran from either an au3 or exe it won't unpack the files. It's not that it's going to the wrong spot, just that it's not happening. Does anyone have an idea what might be up?

Link to comment
Share on other sites

It works Fine if the source files exist and the destination dir exists.

If you stick a ,1 at the end of your file install it forces an overwrite if the file already exists, I chucked a dircreate in to be sure it existed

DirCreate ("C:\Program Files\World of Warcraft\Interface\Addons\KLHThreatMeter\")
$addon = "C:\Program Files\World of Warcraft\Interface\Addons\KLHThreatMeter\"
FileInstall("D:\KLHThreatMeter\KLHThreatMeter.toc",            $addon & "KLHThreatMeter.toc",1)
Link to comment
Share on other sites

  • Developers

That's the script I have right now, and my issue is that when its ran from either an au3 or exe it won't unpack the files. It's not that it's going to the wrong spot, just that it's not happening. Does anyone have an idea what might be up?

Test the return value to see if the function was successful.

When ran as AU3, a filecopy is used so it could be that either the source or target directory is wrong...

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

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