Frequently asked questions about titles in Visual Installer

FAQThere are some common questions about titles in Visual Installer that we get then and then from new customers. You will find the questions and answers below, and if you are new to Visual Installer we recommend you to read the questions and the answers:

Questions and answers:

#1
Q: I have created my first installation. But when the software is installing, there is the word “Title” in the top left hand corner of the graphical window. How can I change that to my application name?

A: If you want to change the text of the title in the graphical setup window to another text, you can follow the steps below:
1. Open the Design tab in the editor.
2. Select the menu option Object – Title.
3. The following dialog box is opened:

The Title dialog box

4. Enter a new title at Text. Enter for example your application name here.
5. Click OK to close the dialog box.

The title is now updated. If you also want to add a subtitle, you can press the Subtitle button in the Title dialog box.

#2
Q: I have put the application name in the title of the graphical window. But all of that text is covered up by the installation dialog boxes in the beginning of the installation. How do I make this text visible?

A: There are two things that you can look at:
1. You can adjust the size of the graphical setup window by opening the Object – Setup window menu item in the editor and adjust the windows size in the dialog box that is shown. Full screen size is the biggest size. But you can also have another size.

The Setup Window dialog box (1)

2. In the Dialog boxes tab in the editor you can choose the “Style: Visual Installer” style, if you have not. It creates smaller dialog boxes.

Style

#3
Q: In the Setup window dialog box in the editor, there is a Title input box in the Window title frame. What is the difference between this title and the title that is specified when choosing the Object – Title menu item?

A: The title that you specify in the Title input box in the Setup window dialog box (see the picture below) is shown in Window’s task bar, and in the caption bar of the setup window if you have also selected the Show title option in the dialog box.

The Setup Window dialog box (2)

The title that you specify via the Object – Title menu item is the title that is shown in the graphical setup window. You can change font, colors, size, alignment etc. for this title.

More information
If you want more information about the settings in the dialog boxes above, you can press the F1 button on your keyboard when the dialog box is open. We recommend you also to take a look on Visual Installer’s tips and tricks pages:

> Tips & tricks for SamLogic Visual Installer

How to copy/move many files at once in Visual Installer’s script language

There is a built-in script language available in Visual Installer. The script language is very versatile and with the script commands you can do different kind of file operations and other types of operations during an installation.

File copy operationOne common operation is to copy or move files during an installation. There are commands available in Visual Installer’s script language that can do this. If you need to copy or move many files at once, you can use the MCOPY and MMOVE commands for this purpose. Below is the syntax of these two commands described:

MCOPY %Source, %DestinationDir
Copies many files at once. %Source specifies the source file path and %DestinationDir specifies the destination folder for the files.

MMOVE %Source, %DestinationDir
Moves many files at once. %Source specifies the source file path and %DestinationDir specifies the destination folder for the files.

   
You can use wildcards with the %Source parameter. Example: “%DESTDIR\Data\*.txt”. The code examples below show how to use these two commands with wildcards etc.:

Example 1 – Copy many files at once
Copies all files in the %DESTDIR\Data folder to the %DESTDIR\NewPlace folder:

MCOPY %DESTDIR\Data\*.*, %DESTDIR\NewPlace

Example 2 – Move many files at once
Moves all text files in the %DESTDIR\Data folder to the %DESTDIR\NewPlace folder:

MMOVE %DESTDIR\Data\*.txt, %DESTDIR\NewPlace

To add script commands to an installation, you need to open the Special – Execute script commands menu item in Visual Installer’s editor. More information is available in this tip.

   
More information
For more information about Visual Installer’s script language, see this web page:

> Advanced Tips & Tricks for SamLogic Visual Installer