Updater plugin for Autoplay Media Studio 8.5.3.0 applications.
Important
- This plugin is designed for a 'Hard Drive Folder' type application.
- When compiling the applications you have to check the box 'Rename resource files'. that will make the .cdd be established in the root folder.
To update the .exe and .cdd rename your new files with the name of your application name.exe.new / your application name.cdd.new, when the decompression is complete a BAT file will be executed that will replace the old files with the new ones.
Batch File Sample
local Filename = (String.Left(_SourceFilename, String.Length(_SourceFilename)-4));
TextFile.WriteFromString(_SourceFolder.."\\Updater.bat", [[
:Repeat
del "]]..Filename..[[.exe"
if exist "]]..Filename..[[.exe" goto Repeat
move "]]..Filename..[[.exe.new" "]]..Filename..[[.exe"
:Repeat
del "]]..Filename..[[.cdd"
if exist "]]..Filename..[[.cdd" goto Repeat
move "]]..Filename..[[.cdd.new" "]]..Filename..[[.cdd"
start /NORMAL ]]..Filename..".exe"..[[
del "Updater.bat"
]], false);
