wineprefixcreate: Register the MSI service in wineprefixcreate

James Hawkins truiken at gmail.com
Tue Aug 29 17:14:07 CDT 2006


Hi,

In order to run an executable with wineprefixcreate, I had to switch
handling from setupapi to advpack, which has several advantages.
There are several nifty things we could possibly do using advpack,
like message boxes for prompts or alerts, running executables,
rollbacks, etc.  Several installers are expecting the MSI service to
be installed before the installation runs, so this takes care of that.
 This lets the .NET Framework 1.1 installer actually start.

Changelog:
* Register the MSI service in wineprefixcreate.

 tools/wine.inf            |    5 +++++
 tools/wineprefixcreate.in |    2 +-
 2 files changed, 6 insertions(+), 1 deletions(-)

-- 
James Hawkins
-------------- next part --------------
diff --git a/tools/wine.inf b/tools/wine.inf
index a7e3a45..5572c3c 100644
--- a/tools/wine.inf
+++ b/tools/wine.inf
@@ -26,6 +26,7 @@
 signature="$CHICAGO$"
 
 [DefaultInstall]
+RunPostSetupCommands=RunPostSetupCommandsSection
 RegisterDlls=RegisterDllsSection
 WineFakeDlls=FakeDllsSection
 UpdateInis=SystemIni
@@ -50,6 +51,7 @@ AddReg=\
     Timezones
 
 [DefaultInstall.NT]
+RunPostSetupCommands=RunPostSetupCommandsSection
 RegisterDlls=RegisterDllsSection
 WineFakeDlls=FakeDllsSection
 UpdateInis=SystemIni
@@ -74,6 +76,9 @@ AddReg=\
     Timezones,\
     VersionInfo
 
+[RunPostSetupCommandsSection]
+msiexec /regserver
+
 [Strings]
 MciExtStr="Software\Microsoft\Windows NT\CurrentVersion\MCI Extensions"
 Mci32Str="Software\Microsoft\Windows NT\CurrentVersion\MCI32"
diff --git a/tools/wineprefixcreate.in b/tools/wineprefixcreate.in
index 7ac5c8c..72be2a5 100644
--- a/tools/wineprefixcreate.in
+++ b/tools/wineprefixcreate.in
@@ -168,7 +168,7 @@ # Copy the .inf script and run it
 
 cp "$datadir/wine.inf" "$CROOT/windows/inf/wine.inf"
 export WINEPREFIX
-"${WINELOADER:-$bindir/wine}" rundll32.exe setupapi.dll,InstallHinfSection DefaultInstall 128 wine.inf
+"${WINELOADER:-$bindir/wine}" rundll32.exe advpack.dll,LaunchINFSectionEx wine.inf,DefaultInstall,,0
 
 # Wait for the wineserver to finish
 
-- 
1.4.2


More information about the wine-patches mailing list