Skip to content

nicolasgomez1/UpdaterNG

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UpdaterNG

Updater plugin for Autoplay Media Studio 8.5.3.0 applications.

Note

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.

Information

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);

About

Updater for Autoplay Media Studio applications.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages