[RAPPS] Added LnkParameters Generate field to set the shortcut parameters (#8262)

This commit is contained in:
Whindmar Saksit
2025-07-17 16:28:34 +02:00
committed by GitHub
parent 519232df78
commit 805d4c7eea

View File

@@ -33,6 +33,7 @@ extern "C" {
#define DB_GENINST_DIR L"Dir"
#define DB_GENINST_ICON L"Icon"
#define DB_GENINST_LNK L"Lnk"
#define DB_GENINST_LNKARGS L"LnkParameters"
#define DB_GENINST_DELFILE L"DelFile" // Delete files generated by the application
#define DB_GENINST_DELDIR L"DelDir"
#define DB_GENINST_DELDIREMPTY L"DelDirEmpty"
@@ -325,6 +326,9 @@ CreateMainShortcut(const CStringW &Target)
SplitFileAndDirectory(Target, &tmp);
link->SetWorkingDirectory(tmp);
if (*GetGenerateString(DB_GENINST_LNKARGS, tmp))
link->SetArguments(tmp);
if (SUCCEEDED(GetCustomIconPath(Info, tmp)))
{
LPWSTR p = tmp.GetBuffer();