-1
我爲我的應用程序創建了inno安裝程序安裝程序。現在我想將該安裝程序放置在用戶可以從其安裝的共享文件夾中。從共享驅動器運行inno安裝程序
安裝程序需要將文件放在{%HOMEPATH}\{#MyAppName}
目錄中。但是,當我設置AllowUNCPath=yes
它可以從共享驅動器運行,但它會將文件安裝在fileshare\{%HOMEPATH}\{#MyAppName}
上。
是否可以從文件共享中運行安裝程序並將其安裝在用戶本地驅動器上?
我的設置部分看起來像:
[Setup]
AppId="{{AAAAAA-AAAA-AAAA-AAAA-AAAAAAAA}"
AppName={#MyAppName}
;AppVersion={#MyAppVersion}
AppVersion={code:getVersionNumber}
;AppVerName={#MyAppName} {#MyAppVersion}
AppPublisher={#MyAppPublisher}
DefaultDirName={%HOMEPATH}\{#MyAppName}
DefaultGroupName={#MyAppPublisher}
OutputDir=compiledInstaller
OutputBaseFilename=setup
SetupIconFile={#iconName}
;Set some installer settings
Compression=lzma
SolidCompression=yes
ArchitecturesAllowed=x64
PrivilegesRequired=lowest
AllowCancelDuringInstall=False
AllowUNCPath=false
ArchitecturesInstallIn64BitMode=x64
CreateUninstallRegKey=yes
UsePreviousAppDir=yes
;Disable different screens
DisableDirPage=yes
DisableProgramGroupPage=yes
DisableReadyPage=True
DisableReadyMemo=True
DisableFinishedPage=True
DisableWelcomePage=True
[Files]
Source: "{#path}*"; DestDir: "{app}"; Flags: external recursesubdirs
Source: "{#path}/.eclipseproduct"; DestDir: "{app}"; Flags: external
Source: "{#installerPath}/{#ScriptName}"; DestDir: "{app}"; Flags: external
Source: "{#installerPath}/{#iconName}"; DestDir: "{app}"; Flags: external
的path
和installerPath
變量被鏈接到共享驅動器上的文件。