Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
8cc14a93
Commit
8cc14a93
authored
Dec 27, 2004
by
Aric Stewart
Committed by
Alexandre Julliard
Dec 27, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Create the shortcut directory if it does not exist.
- Set the INSTALLLEVEL in CostFinalize if it is not set.
parent
2ad3ff88
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
action.c
dlls/msi/action.c
+12
-0
No files found.
dlls/msi/action.c
View file @
8cc14a93
...
...
@@ -2278,10 +2278,13 @@ static UINT ACTION_CostFinalize(MSIPACKAGE *package)
'C'
,
'o'
,
'n'
,
'd'
,
'i'
,
't'
,
'i'
,
'o'
,
'n'
,
0
};
static
const
WCHAR
szCosting
[]
=
{
'C'
,
'o'
,
's'
,
't'
,
'i'
,
'n'
,
'g'
,
'C'
,
'o'
,
'm'
,
'p'
,
'l'
,
'e'
,
't'
,
'e'
,
0
};
static
const
WCHAR
szlevel
[]
=
{
'I'
,
'N'
,
'S'
,
'T'
,
'A'
,
'L'
,
'L'
,
'L'
,
'E'
,
'V'
,
'E'
,
'L'
,
0
};
static
const
WCHAR
szOne
[]
=
{
'1'
,
0
};
UINT
rc
;
MSIQUERY
*
view
;
DWORD
i
;
LPWSTR
level
;
TRACE
(
"Building Directory properties
\n
"
);
...
...
@@ -2483,6 +2486,12 @@ static UINT ACTION_CostFinalize(MSIPACKAGE *package)
}
MSI_SetPropertyW
(
package
,
szCosting
,
szOne
);
/* set default run level if not set */
level
=
load_dynamic_property
(
package
,
szlevel
,
NULL
);
if
(
!
level
)
MSI_SetPropertyW
(
package
,
szlevel
,
szOne
);
else
HeapFree
(
GetProcessHeap
(),
0
,
level
);
return
ERROR_SUCCESS
;
}
...
...
@@ -4402,6 +4411,9 @@ static UINT ACTION_CreateShortcuts(MSIPACKAGE *package)
MSI_RecordGetStringW
(
row
,
2
,
buffer
,
&
sz
);
target_folder
=
resolve_folder
(
package
,
buffer
,
FALSE
,
FALSE
,
NULL
);
/* may be needed because of a bug somehwere else */
create_full_pathW
(
target_folder
);
sz
=
0x100
;
MSI_RecordGetStringW
(
row
,
3
,
buffer
,
&
sz
);
reduce_to_longfilename
(
buffer
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment