mirror of
https://github.com/rn10950/RetroZilla.git
synced 2024-11-09 09:20:15 +01:00
34 lines
979 B
Plaintext
34 lines
979 B
Plaintext
var srDest = $SpaceRequired$;
|
|
|
|
var err = initInstall("Quality Feedback Utility", "Quality Feedback Utility", "$Version$");
|
|
logComment("initInstall: " + err);
|
|
|
|
var communicatorFolder = getFolder("Program");
|
|
logComment("communicatorFolder: " + communicatorFolder);
|
|
|
|
if (verifyDiskSpace(communicatorFolder, srDest))
|
|
{
|
|
err = addDirectory("Program",
|
|
"$Version$",
|
|
"bin", // jar source folder
|
|
communicatorFolder, // target folder
|
|
"", // target subdir
|
|
true ); // force flag
|
|
|
|
logComment("addDirectory() returned: " + err);
|
|
|
|
if (err==SUCCESS)
|
|
{
|
|
err = performInstall();
|
|
logComment("performInstall() returned: " + err);
|
|
}
|
|
else
|
|
{
|
|
cancelInstall(err);
|
|
logComment("cancelInstall() returned: " + err);
|
|
}
|
|
}
|
|
else
|
|
cancelInstall(INSUFFICIENT_DISK_SPACE);
|
|
|