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.

%DAOPath%

The path to the user's DAO (Data Access Objects) directory.

%DesktopFolder%

The path to the user's Desktop folder. On Windows NT/2000/XP, this is the path from the per-user profile.

%DesktopFolderCommon%

The path to the user's Desktop folder. On Windows NT/2000/XP, this is the path from the All Users profile. On a non-Windows NT system, this will simply be the path to the user's Desktop folder (the same as _DesktopFolder).

%FontsFolder%

The path to the user’s font directory (e.g. "C:\Windows\Fonts").

%MyDocumentsFolder%

The user's personal (My Documents) folder on their system. Usually this is something like "C:\Documents and Settings\YourName\My Documents" on Windows 2000/XP and "C:\My Documents" on Windows 98/ME.

Note: Windows 95 did not have the My Documents folder and this variable will return "C:" if run on such a system.

%ProductName%

The name of the product that you are installing. The value of this variable is set on the Session Variables tab of the Project Settings dialog.

%ProductVer%

The version number of the product that you are installing. The value of this variable is set on the Session Variables tab of the Project Settings dialog.

%ProgramFilesFolder%

The user's Program Files folder (typically, this is something like "C:\Program Files").

%RegOwner%

The name of the registered user of the system.

%RegOrganization%

The organization of the registered user of the system.

%SourceDrive%

The drive that the installation executable was run from (e.g. "C:" or "D:").

%SourceFolder%

The full path to the folder that the installation executable was run from (e.g. "C:\Downloads" or "D:\").

%SourceFilename%

The full path, including the filename, for the current setup executable.

For example, if the user was running "setup.exe" from "C:\Downloads", %SourceFilename% would be expanded to "C:\Downloads\Setup.exe".

%StartFolder%

The path to the user's Start menu folder. On Windows NT/2000/XP, this is the path from the per-user profile.

%StartFolderCommon%

The path to the user's Start menu folder. On Windows NT/2000/XP, this is the path from the All Users profile. On a non-Windows NT system, this will simply be the path to the user's Start menu folder (the same as %StartFolder%).

%StartProgramsFolder%

The path to the Programs folder in the user's Start menu. On Windows NT/2000/XP, this is the path from the per-user profile.

%StartProgramsFolderCommon%

The path to the Programs folder in the user's Start menu. On Windows NT/2000/XP, this is the path from the All Users profile. On a non-Windows NT system, this will simply be the path to the Programs folder in the user's Start menu (the same as %StartProgramsFolder%).

%StartupFolder%

The path to the user's Startup folder. On Windows NT/2000/XP, this is the path from the per-user profile.

%StartupFolderCommon%

The path to the user's Startup folder. On Windows NT/2000/XP, this is the path from the All Users profile. On a non-Windows NT system, this will be the path to the user's Startup folder (the same as %StartupFolder%).

%SystemFolder%

The path to the user’s Windows System folder (e.g. "C:\Windows\System").

%SystemDrive%

The drive that the user's Windows System directory is located on (usually "C:").

%TempFolder%

The path to the user's Temp folder.

%TempLaunchFolder%

The path to the temporary directory where Setup Factory extracts the files it will need for the installation. (For example, this is the directory where Primer files are extracted to.) During the uninstall, this variable contains the path to the uninstall files folder. This is the folder that the uninstall configuration file is located.

Usually this directory will be the user's temporary directory, unless the user overrides the temporary directory with the /T command line option.

%WindowsFolder%

The path to the user’s Windows folder (e.g. "C:\Windows").

%WindowTitle%

The text that will appear on the windows task bar while the installation is running. The value of this variable is set on the Session Variables tab of the Project Settings dialog.

setup factory 会话变量相关推荐

  1. Setup Factory 打包工具部分功能代码解

    Setup Factory 打包工具部分功能代码解 Application.Exit 退出安装程序,并返回一个可选的返回代码.Application.GetInstallLanguage 返回一个包含 ...

  2. 在mysql中会话变量前面的字符是什么_在MySQL中仅使用会话变量仅对字符的首次出现执行搜索/替换...

    要仅对首次出现的位置执行搜索/替换,请使用CONCAT和REPLACE()方法. 查询如下以设置用户定义的会话变量-mysql> set @Sentence='Thks ks is a my s ...

  3. Setup Factory打包时实现第三方DLL文件的注册

    Setup Factory中的如下界面: 红色矩形中的仅仅是用来测试该文件是否是能注册的组件或ocx控件,在安装包安装过程中并不会注册该组件,如需注册,必须按下面步骤进行: 1: 先将需要注册的组件所 ...

  4. 一个Setup Factory的Lua脚本

    需求是把安装路径中的反斜杠转义成斜杠并写入到配置文件特定的地方去. 读取配置文件 由于配置文件不大 一次性的读入到内存中 local f = io.input(SessionVar.Expand(&q ...

  5. php 发送表单数据,php - 将表单数据发送到会话变量 - SO中文参考 - www.soinside.com...

    我有一个页面,表格需要通过邮寄发送.我的htaccess在其中重定向导致后期数据丢失,因此我想将这些数据放入会话变量中以便由另一个页面拾取. 表单页面下面的会话变量"favcolor&quo ...

  6. Setup Factory 9安装前卸载旧版本的方法

    2019独角兽企业重金招聘Python工程师标准>>> Setup factory 9 删除前一版本的方法(即升级的方法): 1.在Actions的On Pre Install中加入 ...

  7. mysql查询结果赋予变量_MySQL设置会话变量:把查询结果赋值给变量

    MySQL设置变量有两种方式:会话变量和存储过程变量. 1.使用set或select直接赋值,变量名以@开头 例如:set @var=1; 可以在一个会话的任何地方声明,作用域是整个会话,称为用户变量 ...

  8. Setup Factory用户只选择硬盘根目录时自动创建MyApp文件夹

    曾经在网上看到有网友问: 我用Setup Factory 制作的安装程序,在执行安装的时候会有默认的安装路径,同时用户也可以选择安装路径. 比如默认的安装路径是 C:/Program Files/My ...

  9. Setup Factory打包注册dll

    1.生成一个Setup Factory工程,按照向导生成即可 2.添加dll到工程中 3.判断原有文件夹下是否有该文件,如果有删除.在On Pre Install中添加代码,改代码是通过Add Act ...

  10. Setup Factory导入注册表时丢失部分语句

    以我注册自定义URL协议遇到的问题为例,也许能为你解决"利用Setup Factory导入注册表不能完全成功"提供一些思路. 问题描述:在注册表中添加自定义URL协议成功,但在网页 ...

最新文章

  1. python 模板匹配对比
  2. 手机哪个好用计算机,手机计算器软件哪个好用
  3. 数据挖掘 —— 有监督学习(回归)
  4. 刚回到北京,倒时差中……
  5. C#规范整理·资源管理和序列化
  6. lora模块在牛联网和智慧农业中的应用案列
  7. Linux操作系统原理与应用03:进程
  8. ViewPager使用android
  9. 国外卫星地图mapbox的基本操作
  10. 有哪些适合女生练字的字帖?
  11. 彻底拿下QSPI双闪存W25Q256| STM32H750| QSPI 双FLASH |cubeIDE |下载算法(二)
  12. 七彩虹固态硬盘 慧荣SM2258XT主控开卡教程,SM2259XT2貌似差不多
  13. php调查问卷数据库,关于一个问卷调查的程序,如何插入数据库
  14. UserWarning: Usage of dash-separated ‘script-dir‘ will not be supported in future versions. 笔记
  15. 人脸识别,人脸识别门禁系统的原理
  16. 互联网公司客户如何选择短信平台或短信通道需要知道的基本知识
  17. 微信小程序-扫码点餐系统设计
  18. pageX,pageY,screenX,screenY,clientX,和clientY,offsetX ,offsetY,layerX,layerY的使用 和 区别
  19. 游戏+AI,你不曾想象的未来
  20. 34Speech SIMCLR: Combining Contrastive and Reconstruction Objective for Self-supervised Speech

热门文章

  1. 机器视觉基础知识汇总
  2. Python 安卓群控随机修改机型
  3. 钉钉再放大招!打造公司文化也有智能工具,中国4300万中小企业有福了
  4. 斐讯k3怎么设置虚拟服务器,斐讯K3路由器功能介绍及使用教程
  5. SPSS基础教程:SPSS菜单命令详解
  6. NeurIPS自动驾驶比赛结束,新加坡松下研究院申省梅团队夺冠...
  7. 关于一些初级ACM竞赛题目的分析和题解(九)
  8. 利用matlab聚类分析,利用Matlab软件实现聚类分析
  9. 软件默认安装路径注册表更改问题
  10. 数学建模论文格式规范(国赛)