http://bugs.winehq.org/show_bug.cgi?id=36633
Bug ID: 36633 Summary: Administrative privileges not sufficient Product: Wine Version: unspecified Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: 9728889999o@gmail.com
Created attachment 48676 --> http://bugs.winehq.org/attachment.cgi?id=48676 Error Message
I tried to run an application under Wine and it says that I have "insufficient privileges, please close and run again as administrator." I tried to run the Windows 7 USB/DVD Creator. See the attachment for more.
http://bugs.winehq.org/show_bug.cgi?id=36633
9728889999o@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|unspecified |1.6
http://bugs.winehq.org/show_bug.cgi?id=36633
--- Comment #1 from 9728889999o@gmail.com --- I have tried the Windows 98 trick and STILL it shows me the same message. PLEASE HELP!!!
https://bugs.winehq.org/show_bug.cgi?id=36633
--- Comment #2 from Austin English austinenglish@gmail.com --- Please retest in 1.7.19 and a clean 32-bit WINEPREFIX and if still present, attach the terminal output.
http://bugs.winehq.org/show_bug.cgi?id=36633
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download URL| |http://www.microsoftstore.c | |om/store/msusa/html/pbPage. | |Help_Win7_usbdvd_dwnTool CC| |focht@gmx.net Summary|Administrative privileges |Windows 7 USB/DVD download |not sufficient |tool fails on startup, | |reporting 'Administrative | |privileges not sufficient'
--- Comment #3 from Anastasius Focht focht@gmx.net --- Hello,
I can't reproduce this, the app starts fine here (after working around several other bugs).
Did you install MS .NET Framework 2.0 or Mono (default)?
Microsoft provided the C# source code for the .NET app with the installation here:
--- snip --- $ pwd /home/focht/.wine/drive_c/users/focht/Local Settings/Application Data/Apps/Windows 7 USB DVD Download Tool
$ unzip -l wudtsource.zip Archive: wudtsource.zip Length Date Time Name --------- ---------- ----- ---- 1286 12-08-2009 16:55 README 0 11-23-2009 16:08 dmcicons/ 1685 11-20-2009 10:46 dmcicons/app.rc 2171 11-18-2009 12:55 dmcicons/AssemblyInfo.cpp 4568 11-20-2009 10:47 dmcicons/dmcicons.vcproj 86272 01-25-2009 11:17 dmcicons/wudt.ico 0 12-08-2009 16:56 Install/ 1072 11-20-2009 14:34 Install/CreateLocalizedInstallers.cmd 3145 12-08-2009 17:43 Install/Install.wixproj 9593 12-08-2009 17:37 Install/Product.wxs 1475 12-02-2009 15:04 Install/ProductStrings.de-DE.wxl 69278 11-23-2009 12:30 Install/ProductStrings.en-AU.wxl 69278 11-23-2009 12:30 Install/ProductStrings.en-GB.wxl 1284 12-02-2009 15:02 Install/ProductStrings.en-US.wxl 1394 12-02-2009 15:01 Install/ProductStrings.es-ES.wxl 1376 12-02-2009 15:01 Install/ProductStrings.fr-FR.wxl 1448 12-02-2009 15:00 Install/ProductStrings.it-IT.wxl 1603 12-02-2009 14:59 Install/ProductStrings.ja-JP.wxl 69435 12-02-2009 14:59 Install/ProductStrings.ko-KR.wxl 1412 12-02-2009 15:03 Install/ProductStrings.nl-NL.wxl 0 11-23-2009 16:10 IoWrapper/ 11770 11-16-2009 12:33 IoWrapper/dutil.cpp 10815 11-16-2009 12:37 IoWrapper/dutil.h 4389 12-01-2009 15:56 IoWrapper/IoWrapper.vcproj 2467 11-16-2009 12:32 IoWrapper/memutil.cpp 1662 11-16-2009 12:33 IoWrapper/memutil.h 1526 11-19-2009 16:45 IoWrapper/precomp.h 47978 11-16-2009 12:33 IoWrapper/strutil.cpp 5102 11-16-2009 12:33 IoWrapper/strutil.h 10888 12-02-2009 13:42 IoWrapper/UsbIOWrapper.cpp 1342 11-23-2009 13:42 IoWrapper/UsbIOWrapper.h 0 12-08-2009 17:22 ISOTool/ 646 10-06-2009 15:36 ISOTool/app.manifest 18328 11-16-2009 14:21 ISOTool/COPYING 0 12-08-2009 16:57 ISOTool/DriveService/ 1727 11-19-2009 10:21 ISOTool/DriveService/BootloaderException.cs 9426 11-20-2009 14:49 ISOTool/DriveService/DriveService.cs 13945 12-08-2009 18:07 ISOTool/DriveService/DvdDriveService.cs 2545 11-16-2009 12:42 ISOTool/DriveService/IDriveService.cs 10968 11-23-2009 15:37 ISOTool/DriveService/UsbDriveService.cs 5721 11-16-2009 12:40 ISOTool/ImageButton.cs ... --- snip ---
The code snippet 'Program.cs':
--- snip --- [STAThread] private static void Main() { // Verify the user is running under admin priveleges WindowsIdentity identity = WindowsIdentity.GetCurrent(); WindowsPrincipal principal = identity != null ? new WindowsPrincipal(identity) : null; if (principal == null || !principal.IsInRole(WindowsBuiltInRole.Administrator)) { MessageBox.Show( Properties.Resources.RequireAdmin, Properties.Resources.ToolTitle, MessageBoxButtons.OK, MessageBoxIcon.None, MessageBoxDefaultButton.Button1, 0);
return; } ... --- snip ---
Likely related to Lsa (NTAccount) API.
$ sha1sum Windows7-USB-DVD-tool.exe ed1108a525066d1f850023cb5bfa05fc4ed21983 Windows7-USB-DVD-tool.exe
$ du -sh Windows7-USB-DVD-tool.exe 2.6M Windows7-USB-DVD-tool.exe
$ wine --version wine-1.7.19-70-gd6a59f7
Regards
https://bugs.winehq.org/show_bug.cgi?id=36633
super_man@post.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |super_man@post.com
--- Comment #4 from super_man@post.com ---
I can't reproduce this, the app starts fine here (after working around several other bugs).
"Can't recognize 'Wudt.msi' as an internal or external command, or batch script."
Blocked by some other bug?
wine-1.7.54-179-ga0d0d0d
https://bugs.winehq.org/show_bug.cgi?id=36633
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Windows 7 USB/DVD download |Windows 7 USB/DVD download |tool fails on startup, |tool (.NET 2.0 app) fails |reporting 'Administrative |on startup, reporting |privileges not sufficient' |'Administrative privileges | |not sufficient'
--- Comment #5 from Anastasius Focht focht@gmx.net --- Hello super_man,
that's bug 36646
I didn't add dependency to bug 36646 here since the problem here is not present/reproducible for me (OP used an outdated Wine version).
You can work around bug 36646 by manual unwrapping:
--- snip --- $ cabextract Windows7-USB-DVD-Download-Tool-Installer-en-US.exe Extracting cabinet: Windows7-USB-DVD-Download-Tool-Installer-en-US.exe extracting setup.cmd extracting Wudt.msi
All done, no errors. --- snip ---
Before running the installer make sure you have .NET Framework 2.0 (or Wine-Mono) and Microsoft Image Mastering API v2 prerequisites installed as outlined by: https://wudt.codeplex.com
--- quote --- For Windows XP Users
The following applications must be installed prior to installing the tool:
* Microsoft .NET Framework v2 must be installed. It can be downloaded at http://www.microsoft.com/downloads/details.aspx?FamilyID=0856EACB-4362-4B0D-....
* Microsoft Image Mastering API v2 must be installed. It can be downloaded at http://www.microsoft.com/downloads/details.aspx?FamilyId=B5F726F1-4ACE-455D-.... --- quote ---
For 'Microsoft Image Mastering API v2' installer you need to work around bug 6194 ("Several Microsoft Installers/Updaters fail due to missing "%systemroot%\system32\CatRoot{F750E6C3-38EE-11D1-85E5-00C04FC295EE}" folder and catalog file (Microsoft XmlLite, BITS Service 2.0, MSI 4.5 Update)")
I also mentioned this here: https://bugs.winehq.org/show_bug.cgi?id=6194#c27
The problem is that an empty catalog file won't work (causing 'wintrust.CryptCATOpen()' failue) hence you need to cheat. Fortunately if one installed MS .NET Framework 2.0 a valid .cat from that install can be used:
--- snip --- $ mkdir -p ~/.wine/drive_c/windows/system32/CatRoot/{F750E6C3-38EE-11D1-85E5-00C04FC295EE}
$ cp ~/.wine/drive_c/windows/RegisteredPackages/{D5D40355-5FB0-48fb-A231-CDC637FA16E0}/NETFXUSA.CAT ~/.wine/drive_c/windows/system32/CatRoot/{F750E6C3-38EE-11D1-85E5-00C04FC295EE}/oem0.cat --- snip ---
When running 'Microsoft Image Mastering API v2' installer you might another one: bug 35041
--- snip --- $ wine ./WindowsXP-KB932716-v2-x86-ENU.exe fixme:clusapi:GetNodeClusterState ((null),0x33ebc4) stub! fixme:advapi:DecryptFileA ("c:\48b0a6320c76fdb2dd\", 00000000): stub fixme:setupapi:pSetupGetGlobalFlags stub fixme:wintrust:CryptCATEnumerateAttr 0x1362c8, 0x136318, (nil) fixme:wintrust:CryptCATEnumerateAttr 0x1362c8, 0x136318, (nil) fixme:wintrust:CryptCATEnumerateAttr 0x1362c8, 0x136318, (nil) fixme:wintrust:CryptCATEnumerateAttr 0x1362c8, 0x136318, (nil) fixme:wintrust:CryptCATEnumerateAttr 0x1362c8, 0x136318, (nil) fixme:wintrust:CryptCATEnumerateAttr 0x1362c8, 0x136318, (nil) fixme:wintrust:CryptCATEnumerateAttr 0x1362c8, 0x136318, (nil) *** Error in `c:\48b0a6320c76fdb2dd\update\update.exe': double free or corruption (!prev): 0x7cc85b98 *** ======= Backtrace: ========= /lib/libc.so.6(+0x42119503)[0xf73bb503] /lib/libc.so.6(+0x42121e8a)[0xf73c3e8a] /lib/libc.so.6(cfree+0x50)[0xf73c7530] /lib/libX11.so.6(_XlcDestroyLocaleDataBase+0x94)[0x7db9c5e4] /lib/libX11.so.6(+0x42a42451)[0x7dba1451] /lib/libX11.so.6(_XCloseLC+0x78)[0x7dba92d8] /lib/libX11.so.6(_XlcCurrentLC+0x31)[0x7dba9321] /lib/libX11.so.6(_Xlcmbstoutf8+0xfd)[0x7dba1fdd] /lib/libX11.so.6(_Xmbstoutf8+0x34)[0x7dba2034] /lib/libX11.so.6(+0x42a595b8)[0x7dbb85b8] /lib/libX11.so.6(_XimLocalOpenIM+0x41c)[0x7dbb680c] /lib/libX11.so.6(_XimOpenIM+0xfd)[0x7dbb4bbd] /lib/libX11.so.6(XOpenIM+0x48)[0x7db98588] ... --- snip ---
Hence you run it with:
--- snip --- $ taskset -0 wine ./WindowsXP-KB932716-v2-x86-ENU.exe --- snip ---
and finally the actual app installer:
--- snip --- $ wine start Wudt.msi --- snip ---
Starting the app:
--- snip --- $ pwd /home/focht/.wine/drive_c/users/focht/Local Settings/Application Data/Apps/Windows 7 USB DVD Download Tool
$ wine ./Windows7-USB-DVD-Download-Tool.exe --- snip ---
Anyway, there is nothing to fix here but I documented those bug dependency chains for completeness.
$ wine --version wine-1.7.54-179-ga0d0d0d
Regards
https://bugs.winehq.org/show_bug.cgi?id=36633
Gijs Vermeulen gijsvrm@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID Status|UNCONFIRMED |RESOLVED
--- Comment #6 from Gijs Vermeulen gijsvrm@gmail.com --- (In reply to Anastasius Focht from comment #5)
Anyway, there is nothing to fix here but I documented those bug dependency chains for completeness.
In that case, resolving INVALID.
https://bugs.winehq.org/show_bug.cgi?id=36633
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |dotnet URL|http://www.microsoftstore.c |https://web.archive.org/web |om/store/msusa/html/pbPage. |/20130403085818/http://imag |Help_Win7_usbdvd_dwnTool |es2.store.microsoft.com/pro | |d/clustera/framework/w7udt/ | |1.0/en-us/windows7-usb-dvd- | |tool.exe
--- Comment #7 from Anastasius Focht focht@gmx.net --- Hello folks,
adding stable links via Internet Archive for documentation:
Windows 7 USB/DVD download tool:
https://web.archive.org/web/20130403085818/http://images2.store.microsoft.co...
Image Mastering API v2.0 (IMAPIv2.0) for Windows XP (KB932716)(Microsoft Download Center):
https://web.archive.org/web/20151006211426/http://download.microsoft.com/dow...
---
I've run a small C# app (from my comment #3) against Wine versions from that time but never encountered the error message. It crashes on some Wine releases but these were different problems.
Install .NET Framework SDK 2.0 for C# compiler:
'winetricks -q dotnet20sdk'
Create a text file 'bug36633.cs' with following content:
--- snip --- using System; using System.Security.Principal;
namespace bug36633 { class Program { static void Main(string[] args) { WindowsIdentity identity = WindowsIdentity.GetCurrent(); WindowsPrincipal principal = identity != null ? new WindowsPrincipal(identity) : null; if (principal == null || !principal.IsInRole(WindowsBuiltInRole.Administrator)) { Console.WriteLine("Not detected as administrator (problem)."); } else { Console.WriteLine("Detected as administrator (ok)."); } } } } --- snip ---
Compile it to .NET executable using the SDK C# compiler.
--- snip --- $ wine "C:\windows\Microsoft.NET\Framework\v2.0.50727\csc.exe" /debug+ bug36633.cs ... Microsoft (R) Visual C# 2005 Compiler version 8.00.50727.42 for Microsoft (R) Windows (R) 2005 Framework version 2.0.50727 Copyright (C) Microsoft Corporation 2001-2005. All rights reserved. ... --- snip ---
Automated poor man's testing against a range of Wine versions.
Prerequisite: disable JIT debugger
--- snip --- $ wine reg add "HKLM\Software\Microsoft\.NETFramework" \ /v DbgJITDebugLaunchSetting /t REG_DWORD /d 1 /f --- snip ---
Using 'winetricks autostart_winedbg=enabled nocrashdialog' to ensure default crash handler is always Wine and remains non-interactive.
--- snip --- $ for ver in 1.4 1.6 1.7.{0..54} ; do (echo "#####" ;\ wine_register_path $ver ;\ wineboot -u &> /dev/null ;\ winetricks autostart_winedbg=enabled nocrashdialog &> /dev/null ;\ WINEDEBUG=-all wine ./bug36633.exe 2>&1 | egrep "(admin|debugger)" ;\ wineserver -w) ;\ done
##### Active Wine version: wine-1.4 Detected as administrator (ok). ##### Active Wine version: wine-1.6 Detected as administrator (ok). ##### Active Wine version: wine-1.7.0 Detected as administrator (ok). ##### Active Wine version: wine-1.7.1 wine: Unhandled exception 0xe0434f4d in thread 27 at address 0x7b83781e (thread 0027), starting debugger... ##### Active Wine version: wine-1.7.2 wine: Unhandled exception 0xe0434f4d in thread 27 at address 0x7b83779e (thread 0027), starting debugger... ##### Active Wine version: wine-1.7.3 wine: Unhandled exception 0xe0434f4d in thread 36 at address 0x7b83779e (thread 0036), starting debugger... ##### Active Wine version: wine-1.7.4 wine: Unhandled exception 0xe0434f4d in thread 36 at address 0x7b83779e (thread 0036), starting debugger... ##### Active Wine version: wine-1.7.5 wine: Unhandled exception 0xe0434f4d in thread 36 at address 0x7b83779e (thread 0036), starting debugger... ##### Active Wine version: wine-1.7.6 wine: Unhandled exception 0xe0434f4d in thread 36 at address 0x7b83779e (thread 0036), starting debugger... ##### Active Wine version: wine-1.7.7 Detected as administrator (ok). ##### Active Wine version: wine-1.7.8 Detected as administrator (ok). ##### Active Wine version: wine-1.7.9 Detected as administrator (ok). ##### Active Wine version: wine-1.7.10 Detected as administrator (ok). ##### Active Wine version: wine-1.7.11 Detected as administrator (ok). ##### Active Wine version: wine-1.7.12 wine: Unhandled exception 0xe0434f4d in thread 35 at address 0x7b8377be (thread 0035), starting debugger... ##### Active Wine version: wine-1.7.13 wine: Unhandled exception 0xe0434f4d in thread 35 at address 0x7b8377be (thread 0035), starting debugger... ##### Active Wine version: wine-1.7.14 wine: Unhandled exception 0xe0434f4d in thread 35 at address 0x7b8377ce (thread 0035), starting debugger... ##### Active Wine version: wine-1.7.15 wine: Unhandled exception 0xe0434f4d in thread 45 at address 0x7b8377ee (thread 0045), starting debugger... ##### Active Wine version: wine-1.7.16 wine: Unhandled exception 0xe0434f4d in thread 45 at address 0x7b83782e (thread 0045), starting debugger... ##### Active Wine version: wine-1.7.17 wine: Unhandled exception 0xe0434f4d in thread 45 at address 0x7b83786e (thread 0045), starting debugger... ##### Active Wine version: wine-1.7.18 wine: Unhandled exception 0xe0434f4d in thread 45 at address 0x7b83786e (thread 0045), starting debugger... ##### Active Wine version: wine-1.7.19 wine: Unhandled exception 0xe0434f4d in thread 45 at address 0x7b83786e (thread 0045), starting debugger... ##### Active Wine version: wine-1.7.20 wine: Unhandled exception 0xe0434f4d in thread 45 at address 0x7b83788e (thread 0045), starting debugger... ##### Active Wine version: wine-1.7.21 Detected as administrator (ok). ##### Active Wine version: wine-1.7.22 Detected as administrator (ok). ##### Active Wine version: wine-1.7.23 Detected as administrator (ok). ... ##### Active Wine version: wine-1.7.53 Detected as administrator (ok). ##### Active Wine version: wine-1.7.54 Detected as administrator (ok). --- snip ---
Regards
https://bugs.winehq.org/show_bug.cgi?id=36633
--- Comment #8 from Austin English austinenglish@gmail.com --- Closing.
https://bugs.winehq.org/show_bug.cgi?id=36633
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #9 from Austin English austinenglish@gmail.com --- Closing.