[Setup]
; other stuff like AppId here
DefaultDirName={autopf}\{#MyAppName}
[Files]
Source: "C:\Desktop\Installer\WpfApp\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\Desktop\Installer\WpfApp\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
Now let's say I want the app to always be installed inside of a folder called "SampleApps". This means regardless of what is entered in DefaultDirName, what the user selects in the wizard, or using the DIR parameter in the CLI, it'll first make a folder called SampleApps at that location (unless it already exists) and then put the app inside it.
I tried doing something like DestDir: "SampleApps\{app}";
but that throws the error "Setup was unable to create directory "C:\WINDOWS\system32\SampleApps\C:"
Any tips would be greatly appreciated!