i want to create my own installer for portable apps, games, etc. Want to create an instalable app from a portable one... yes.
InnoSetup creates a unique EXE file with all app files inside it and i dont want to do that, it is so big and slow to create.
I just want to do an installable app like commercial games or apps, a little setup exe file with the installation wizard, and the all other files of the app/game located in the same directory to be copied to desired destination directory...
thks in advance, Ima
To refer to the files in the installer's folder, use {src}
constant and external
flag.
To exclude the installer itself, use Check
function to compare CurrentFileName
to {srcexe}
constant.
[Files]
Source: {src}\*; DestDir: {app}; Check: ExcludeSelf; Flags: external recursesubdirs
[Code]
function ExcludeSelf: Boolean;
begin
Result := (CompareText(CurrentFileName, ExpandConstant('{srcexe}')) <> 0);
end;