How to delay deletion of a file until reboot

Sometimes a file need to be deleted during an installation, but it can not be done because of the file is active and locked by the system. To handle this we have added a new script command to Visual Installer with the name RDELETE that can be used to mark a file for deletion and let the system delete the file when the computer restarts.

When you use this command, no attempt will be made to delete the file during the installation. Instead Visual Installer will inform the system that the file need to be deleted during the next system reboot.

The command syntax is the following:

RDELETE filepath

Example:

RDELETE %DESTDIR\CleanUp\CleanUp.exe

This command is useful when a file need to be deleted, but there is no hurry to delete the file. You can then call this command and let the system delete it later.

See also
> 4 delete commands available in the script language – when to use which
> Visual Installer’s Scripting Language

You can now set an absolute position for a title

You can now in CD-Menu Creator set an absolute position for a title, subtitle and button group title. In the latest update of CD-Menu Creator we have added this functionality.

Normally the X and Y position of a title, subtitle and button group titles are set automatically by CD-Menu Creator. But now you can set the coordinates for these objects manually. This is useful if you really want to have total control of these objects’ positions in a menu window.

How to set coordinates
To set coordinates for a title, subtitle and button group titles, you can add a prefix before the actual title text. The syntax is the following:

[X,Y] My Title

Where X specifies the X position of the title and Y specifies the Y position of the title (in pixels). Below is an example where X and Y has been replaced with numerical values:

[10,50] My Title

In the example the X position is set to 10 pixels and the Y position is set to 50 pixels.

When you add coordinates to a title, the coordinates must be set between brackets, “[” and “]”, and the X coordinate and the Y coordinate must be separated with a comma (“,”). Like this:

[20,80]

The actual title must then be placed after the ending bracket. For example:

[20,80] My menu title

See also the picture below for an example. The main title coordinates have been set to [50,60] and the sub title coordinates have been set to [160,120]:

Also button’s positions can be set in this way
There is already functionality in CD-Menu Creator to set absolute positions for buttons (via the Button Options dialog box) but this new method can also be used for buttons, if you prefer it and want to be consistent with how to set coordinates for objects.