setup factory 会话变量

    技术2022-05-20  62

    setup factory 会话变量

    Session variables are special types of variables that are expanded at runtime when they are used. When they are used on screens, their values are automatically expanded for you, however if a session variable is used in an action script, it must be manually expanded using the SessionVar.Expand action.

    While there are predefined session variables available to use, you can also create custom session variables at design time and run time. At design time, they can be defined on the Session Variables tab of the Project Settings dialog. At run time, you can create and manipulate session variables using the available SessionVar actions.

    Note: If a session variable used on a screen needs to be set to a different value, it must be set prior to the screen's displaying, and all of its events. Another option is to set the text of the screen control using the appropriate Dlg***.SetProperties action. Any changes made to a session variable on a screen after the screen has been created (just before the On Preload event) will have no effect.

    The following pre-defined session variables are available in Setup Factory:

    %AppFolder%

    Your application's main directory, where all of your files and folders will be installed. For example, by default Setup Factory's main directory is C:/Program Files/Setup Factory 7.0.

    %AppFolder% is initially set to the default value that you give it on the Session Variables tab of the Project Settings dialog. However, in most installations, the value of %AppFolder% will ultimately be set by the user on the Select Install Folder screen, overriding the default value.

    %ApplicationDataFolder%

    The path to the per-user Application Data folder on the user's system. This folder serves as a common repository for application-specific data. Typically, this path is something like "C:/Documents and Settings/YourName/Application Data."

    %ApplicationDataFolderCommon%

    The path to the all-user Application Data folder on the user's system. This folder servers as a common repository for application-specific data. Typically this is something like "C:/Documents and Settings/All Users/Application Data."

    %AppShortcutFolderName%

    The name of the shortcut folder on the Start menu where your application's shortcuts will be stored.

    %AppShortcutFolderName% is initially set to the default value that you give it on the Session Variables tab of the Project Settings dialog. However, in many installations, the value of %AppShortcutFolderName% will ultimately be set by the user on the Select Shortcut Folder screen, overriding the default value %ProductName%.

    %AppDrive%

    The drive letter of %AppFolder%. You should not set this variable explicitly. It is reset every time that %AppFolder% is re-assigned. For example, if %AppFolder% is C:/Program Files/My Program, %AppDrive% will be C:.

    %CommonFilesFolder%

    The user's Common Files folder. Typically, this is something like: C:/Program Files/Common Files.

    %CompanyName%

    Your company’s name. The value of this variable is set on the Session Variables tab of the Project Settings dialog.

    %CompanyURL%

    Your company’s URL. The value of this variable is set on the Session Variables tab of the Project Settings dialog.

    %Copyright%

    The copyright message for your product. The value of this variable is set on the Session Variables tab of the Project Settings dialog.

    转载请注明原文地址: https://ibbs.8miu.com/read-2231831.html

    最新回复(0)