SetBrandingImage script message fixed
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@782 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
9dc9acf536
commit
3744051b21
1 changed files with 15 additions and 6 deletions
|
@ -3325,24 +3325,33 @@ int CEXEBuild::doCommand(int which_token, LineParser &line, FILE *fp, const char
|
|||
case TOK_SETBRANDINGIMAGE:
|
||||
#ifdef NSIS_CONFIG_VISIBLE_SUPPORT
|
||||
{
|
||||
SCRIPT_MSG("SetBrandingImage: %s\n", line.gettoken_str(1));
|
||||
SCRIPT_MSG("SetBrandingImage: ");
|
||||
if (!branding_image_found) {
|
||||
ERROR_MSG("Error: no branding image found in choosen UI!\n");
|
||||
ERROR_MSG("\nError: no branding image found in chosen UI!\n");
|
||||
return PS_ERROR;
|
||||
}
|
||||
ent.which=EW_SETBRANDINGIMAGE;
|
||||
for (int i = 1; i < line.getnumtokens(); i++)
|
||||
if (!strnicmp(line.gettoken_str(i),"/IMGID=",7))
|
||||
if (!strnicmp(line.gettoken_str(i),"/IMGID=",7)) {
|
||||
ent.offsets[1]=atoi(line.gettoken_str(i)+7);
|
||||
else if (!stricmp(line.gettoken_str(i),"/RESIZETOFIT"))
|
||||
SCRIPT_MSG("/IMGID=%d ",ent.offsets[1]);
|
||||
}
|
||||
else if (!stricmp(line.gettoken_str(i),"/RESIZETOFIT")) {
|
||||
ent.offsets[2]=1;
|
||||
else if (!ent.offsets[0])
|
||||
SCRIPT_MSG("/RESIZETOFIT ");
|
||||
}
|
||||
else if (!ent.offsets[0]) {
|
||||
ent.offsets[0]=add_string(line.gettoken_str(i));
|
||||
else
|
||||
SCRIPT_MSG("\"%s\" ", line.gettoken_str(i));
|
||||
}
|
||||
else {
|
||||
SCRIPT_MSG("\n");
|
||||
PRINTHELP();
|
||||
}
|
||||
|
||||
if (!ent.offsets[1])
|
||||
ent.offsets[1]=branding_image_id;
|
||||
SCRIPT_MSG("\n");
|
||||
}
|
||||
return add_entry(&ent);
|
||||
#else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue