[Setup]
AppName=Plugin_Ings
AppVersion=1.0
DefaultDirName={code:GetInstallDir}
DisableProgramGroupPage=yes
Uninstallable=no
OutputDir=.
OutputBaseFilename=Plugin_Ings
Compression=lzma
SolidCompression=yes
[Files]
; Copies all files in the folder flat (no subfolders)
Source: "D:\Work\Ingstron\ANSA-Pluggin\Source_Files\*"; DestDir: "{app}"; Flags: ignoreversion
[Run]
; Optional: run something after install
; Filename: "{app}\your_file.py"; Flags: postinstall skipifsilent nowait
[Code]
function GetInstallDir(Default: String): String;
begin
Result := 'C:\config\plugins'; // You can change this to any default base folder
end;
This is the script written. When manually select a folder, the term 'plugins' is attached with the selected path automatically. How to provent.