2
0
Эх сурвалжийг харах

Use {#MyAppExeName} in the [Files] entry as well.

Martijn Laan 5 жил өмнө
parent
commit
75caf19f28

+ 1 - 1
Projects/CompWizard.pas

@@ -973,7 +973,7 @@ begin
 
 
     { AppFiles }
     { AppFiles }
     if not NotCreateAppDirCheck.Checked and not NoAppExeCheck.Checked then begin
     if not NotCreateAppDirCheck.Checked and not NoAppExeCheck.Checked then begin
-      Files := Files + 'Source: "' + AppExeEdit.Text + '"; DestDir: "{app}"; Flags: ignoreversion' + SNewLine;
+      Files := Files + 'Source: "' + PathExtractPath(AppExeEdit.Text) + AppExeName + '"; DestDir: "{app}"; Flags: ignoreversion' + SNewLine;
       if AppExeRunCheck.Checked then begin
       if AppExeRunCheck.Checked then begin
         if CompareText(PathExtractExt(AppExeEdit.Text), '.exe') = 0 then
         if CompareText(PathExtractExt(AppExeEdit.Text), '.exe') = 0 then
           Run := Run + 'Filename: "{app}\' + AppExeName + '"; Description: "{cm:LaunchProgram,' + AppAmpEscapedName + '}"; Flags: nowait postinstall skipifsilent' + SNewLine
           Run := Run + 'Filename: "{app}\' + AppExeName + '"; Description: "{cm:LaunchProgram,' + AppAmpEscapedName + '}"; Flags: nowait postinstall skipifsilent' + SNewLine