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
eee455c2
Commit
eee455c2
authored
Apr 30, 2007
by
Misha Koshelev
Committed by
Alexandre Julliard
May 01, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Add JScript/VBScript support.
parent
d70c9e76
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
1 deletion
+23
-1
Makefile.in
dlls/msi/Makefile.in
+1
-0
automation.c
dlls/msi/automation.c
+6
-0
custom.c
dlls/msi/custom.c
+11
-1
msipriv.h
dlls/msi/msipriv.h
+5
-0
script.c
dlls/msi/script.c
+0
-0
No files found.
dlls/msi/Makefile.in
View file @
eee455c2
...
...
@@ -38,6 +38,7 @@ C_SRCS = \
record.c
\
registry.c
\
regsvr.c
\
script.c
\
select
.c
\
source.c
\
streams.c
\
...
...
dlls/msi/automation.c
View file @
eee455c2
...
...
@@ -920,3 +920,9 @@ HRESULT create_msiserver(IUnknown *pOuter, LPVOID *ppObj)
{
return
create_automation_object
(
0
,
pOuter
,
ppObj
,
&
DIID_Installer
,
InstallerImpl_Invoke
);
}
/* Wrapper around create_automation_object to create a session object. */
HRESULT
create_session
(
MSIHANDLE
msiHandle
,
IDispatch
**
pDispatch
)
{
return
create_automation_object
(
msiHandle
,
NULL
,
(
LPVOID
)
pDispatch
,
&
DIID_Session
,
SessionImpl_Invoke
);
}
dlls/msi/custom.c
View file @
eee455c2
...
...
@@ -981,6 +981,7 @@ static UINT HANDLE_CustomType34(MSIPACKAGE *package, LPCWSTR source,
static
DWORD
WINAPI
ACTION_CallScript
(
const
LPGUID
guid
)
{
msi_custom_action_info
*
info
;
MSIHANDLE
hPackage
;
UINT
r
=
ERROR_FUNCTION_FAILED
;
info
=
find_action_by_guid
(
guid
);
...
...
@@ -990,7 +991,16 @@ static DWORD WINAPI ACTION_CallScript( const LPGUID guid )
return
r
;
}
FIXME
(
"function %s, script %s
\n
"
,
debugstr_w
(
info
->
target
),
debugstr_w
(
info
->
source
)
);
TRACE
(
"function %s, script %s
\n
"
,
debugstr_w
(
info
->
target
),
debugstr_w
(
info
->
source
)
);
hPackage
=
alloc_msihandle
(
&
info
->
package
->
hdr
);
if
(
hPackage
)
{
r
=
call_script
(
hPackage
,
info
->
type
,
info
->
source
,
info
->
target
,
info
->
action
);
MsiCloseHandle
(
hPackage
);
}
else
ERR
(
"failed to create handle for %p
\n
"
,
info
->
package
);
if
(
info
->
type
&
msidbCustomActionTypeAsync
&&
info
->
type
&
msidbCustomActionTypeContinue
)
...
...
dlls/msi/msipriv.h
View file @
eee455c2
...
...
@@ -793,6 +793,11 @@ extern VOID ControlEvent_UnSubscribeToEvent( MSIPACKAGE *package, LPCWSTR event,
/* OLE automation */
extern
HRESULT
create_msiserver
(
IUnknown
*
pOuter
,
LPVOID
*
ppObj
);
extern
HRESULT
create_session
(
MSIHANDLE
msiHandle
,
IDispatch
**
pDispatch
);
extern
HRESULT
load_type_info
(
IDispatch
*
iface
,
ITypeInfo
**
pptinfo
,
REFIID
clsid
,
LCID
lcid
);
/* Scripting */
extern
DWORD
call_script
(
MSIHANDLE
hPackage
,
INT
type
,
LPCWSTR
script
,
LPCWSTR
function
,
LPCWSTR
action
);
/* User Interface messages from the actions */
extern
void
ui_progress
(
MSIPACKAGE
*
,
int
,
int
,
int
,
int
);
...
...
dlls/msi/script.c
0 → 100644
View file @
eee455c2
This diff is collapsed.
Click to expand it.
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