Inno Setup 注册表获取程序安装路径
来源:互联网 发布:sql查询语句不重复 编辑:程序博客网 时间:2024/05/16 06:16
https://github.com/Palakis/obs-websocket/blob/master/installer/installer.iss
来自这个位置
; Script generated by the Inno Setup Script Wizard.; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!#define MyAppName "MyApp"#define MyAppVersion "1.1"#define MyAppPublisher "rang"#define MyAppExeName "MyApp-setup.exe"[Setup]; NOTE: The value of AppId uniquely identifies this application.; Do not use the same AppId value in installers for other applications.; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)AppId={{BC4AA8B8-8751-4D3F-BC0D-F168710A7114}AppName={#MyAppName}AppVersion={#MyAppVersion};AppVerName={#MyAppName} {#MyAppVersion}AppPublisher={#MyAppPublisher}DefaultDirName={code:GetDirName}DefaultGroupName={#MyAppName}OutputDir=D:\MyAppOutputBaseFilename=MyApp1.1Compression=lzmaSolidCompression=yesDisableDirPage=yes[Languages]Name: "Default"; MessagesFile: "compiler:Default.isl"Name: "english"; MessagesFile: "compiler:Languages\English.isl"Name: "french"; MessagesFile: "compiler:Languages\French.isl"Name: "german"; MessagesFile: "compiler:Languages\German.isl"Name: "russian"; MessagesFile: "compiler:Languages\Russian.isl"[Files]Source: "D:\MyApp\MyApp.dll"; DestDir: "{app}"; Flags: ignoreversion; NOTE: Don't use "Flags: ignoreversion" on any shared system files[Code]// credit where it's due :// following function come from https://github.com/Xaymar/obs-studio_amf-encoder-plugin/blob/master/%23Resources/Installer.in.iss#L45function GetDirName(Value: string): string;var InstallPath: string;begin // initialize default path, which will be returned when the following registry // key queries fail due to missing keys or for some different reason Result := '{pf}\obs-studio\obs-plugins\32bit\'; // query the first registry value; if this succeeds, return the obtained value if RegQueryStringValue(HKLM32, 'SOFTWARE\OBS Studio', '', InstallPath) then Result := InstallPath + '\obs-plugins\32bit\';end;
这里最后的InstallPath是程序安装路径的根目录,我这加后面的就是程序里想要装的地方
0 0
- Inno Setup 注册表获取程序安装路径
- Inno Setup获取安装参数
- Inno Setup获取安装参数
- Inno setup制作安装包时向注册表中写安装后的路径
- inno setup禁止中文安装路径
- Inno Setup获取安装包名称
- 读注册表获取程序安装路径
- delphi Inno Setup 制作安装程序
- 利用Inno Setup制作补丁安装程序
- 使用Inno Setup制作安装程序
- Inno Setup 5制作安装程序
- inno setup安装包程序完整版
- 用inno setup制作安装程序
- 免费安装制作程序 Inno Setup
- Inno Setup 注册表启动项 修改注册表
- Inno Setup 已经安装好程序后,再次运行安装包无法选择安装路径的问题。
- Inno Setup 及 My Inno Setup Extensions安装程序生成工具中文教程
- Inno Setup 及 My Inno Setup Extensions安装程序生成工具中文教程
- context,listener,filter,servlet加载顺序
- break的巧妙时用
- 命令
- is 32-bit instead of 64-bit动态库错误分析
- 使用tinyxml2生成和解析xml文档
- Inno Setup 注册表获取程序安装路径
- 文件结构
- 构造函数实例
- Project facet Dynamic Web Module version 3.0 is not supported.
- JMS发送消息工具类MsgQueueSender
- XML缓存工具类WebserviceXml
- dom4j处理带命名空间的XML-使用XPath
- 一个各种牛逼神器的网站
- Oracle基础