inno设置中的目标文件夹问题

时间:2014-12-30 10:37:39

标签: inno-setup pascalscript

我的安装程序运行2个exe文件,我希望给用户选择第一个exe程序的目标文件夹,我不会将exe文件包装在[Files]部分而是我下载它们 问题是安装程序在我选择的目录页面中选择的目标安装主exe文件,怎么来的?我该如何解决这个问题 这是代码 -

[Setup]
AppName={#ReadIni(SourcePath + "Bundletemplate.ini", "setupValues", "AppName", "")}
AppVersion={#ReadIni(SourcePath + "Bundletemplate.ini", "setupValues", "AppVersion", "")}
;AppVerName={#MyAppName} {#MyAppVersion}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#ReadIni(SourcePath + "Bundletemplate.ini", "setupValues", "AppURL", "")}
AppSupportURL={#ReadIni(SourcePath + "Bundletemplate.ini", "setupValues", "AppURL", "")}
AppUpdatesURL={#ReadIni(SourcePath + "Bundletemplate.ini", "setupValues", "AppURL", "")}
AppCopyright={#ReadIni(SourcePath + "Bundletemplate.ini", "setupValues", "CopyRight", "")}
DefaultDirName={pf}\AppName
DefaultGroupName=AppName
OutputDir=Setup_File
OutputBaseFilename={#ReadIni(SourcePath + "Bundletemplate.ini", "setupValues", "BundleOutputName", "")}
SetupIconFile=..\Assets\{#ReadIni(SourcePath + "Bundletemplate.ini", "setupValues", "iconfile", "")}
Compression=lzma
SolidCompression=yes
DisableProgramGroupPage=yes
DisableReadyMemo=True
DisableReadyPage=True
DisableDirPage=No
DisableWelcomePage=True
DisableFinishedPage=True
Uninstallable=no

#include <idp.iss>
[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"


[Files]
Source: "Bundletemplate.ini"; DestDir: "{tmp}"; Flags: ignoreversion

[Run]
Filename: "{tmp}\MOInstaller.exe"; Description: ""; WorkingDir: "{app}"; Flags: waituntilterminated; BeforeInstall: MOBeforeInstall; AfterInstall: MOafterInstall; Parameters:"{#ReadIni(SourcePath + "Bundletemplate.ini", "setupValues", "Appcommand", "")} {code:Switches}"
Filename: "{tmp}\SOInstaller.exe"; Description: ""; Check: DontInstallSP; Flags: nowait ; BeforeInstall: SOBeforeInstall; AfterInstall: SOafterInstall;  Parameters:"{#ReadIni(SourcePath + "Bundletemplate.ini", "setupValues", "OfferAppcommand", "")} -carrier_id={code:CTID} -installation_session_id={code:SessionID}"

0 个答案:

没有答案