http://bugs.winehq.org/show_bug.cgi?id=29550
Bug #: 29550 Summary: Unable to install Paint Tool Sai Product: Wine Version: unspecified Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: critical Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: ardentangel@charter.net Classification: Unclassified
Created attachment 38284 --> http://bugs.winehq.org/attachment.cgi?id=38284 Screenshot of error
I'm sorry if this is a duplicate, but I could not find the exact same issue on this forum.
I can not install Paint Tool Sai with Wine. First I tried by clicking (as normal) but I got an error that I am not the administrator, so I tried to open as the administrator and that did not work either.
After looking around the web, it seems that others have this same problem, Wine is not acting as the administrator and newer programs will give an error because of this. Since I am using Wine, I can not change the root of the windows (wine) to administrator. For everything I need to do, this make Wine completely useless for me also making this bug terminal for this issue.
Looked for some work arounds and found nothing except to install an older version of wine, which I may do, but that does not correct this issue and will most likely create other issues since I am NOT an advanced user of linux and may or may not be able to keep the auto update from messing with Wine.
I have uploaded a screen shot of the one time I attempted to install Paint Tool Sai at the comand line.
http://bugs.winehq.org/show_bug.cgi?id=29550
Rosanne DiMesio dimesio@earthlink.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Severity|critical |normal
--- Comment #1 from Rosanne DiMesio dimesio@earthlink.net 2012-01-06 18:50:43 CST --- Not critical. http://bugs.winehq.org/page.cgi?id=fields.html#importance
http://bugs.winehq.org/show_bug.cgi?id=29550
--- Comment #2 from Dmitry Timoshkov dmitry@baikal.ru 2012-01-07 07:19:28 CST --- Wine version? Terminal output?
http://bugs.winehq.org/show_bug.cgi?id=29550
--- Comment #3 from Luca Bennati lucak3@gmail.com 2012-01-08 09:06:37 CST --- Created attachment 38301 --> http://bugs.winehq.org/attachment.cgi?id=38301 Console log of setup
Can reproduce with trial demo from http://www.systemax.jp/en/sai/ and wine-1.3.36-172-gb00e703. The first "setup" is just unpacking: the real installation will begin when you start sai.exe from that folder.
http://bugs.winehq.org/show_bug.cgi?id=29550
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, Installer, | |obfuscation Status|UNCONFIRMED |NEW URL| |http://www.systemax.jp/en/s | |ai/ CC| |focht@gmx.net Version|unspecified |1.3.36 Summary|Unable to install Paint |Paint Tool Sai installer |Tool Sai |complains about missing | |administrator rights (Wine | |defaults to NTFS for | |unknown fs type, | |FSCTL_GET_NTFS_VOLUME_DATA | |support needed) Ever Confirmed|0 |1
--- Comment #4 from Anastasius Focht focht@gmx.net 2012-01-08 13:04:24 CST --- Hello,
confirming. It seems the installation employs some kind of DRM scheme for trial period/license data which breaks due to Wine defaulting to NTFS for unknown file system type.
Took a bit to find the relevant part because the action is done on different thread and the error condition is asynchronously propagated through message posting.
--- snip --- ... 0037:Call KERNEL32.GetLogicalDrives() ret=0045530f 0037:Ret KERNEL32.GetLogicalDrives() retval=02000004 ret=0045530f 0037:Call KERNEL32.GetDriveTypeA(2dfee570 "c:\") ret=00455363 0037:Ret KERNEL32.GetDriveTypeA() retval=00000003 ret=00455363 0037:Call KERNEL32.GetVolumeInformationA(2dfee570 "c:\",00000000,00000000,00000000,2dfee580,2dfee57c,2dfee584,0000003f) ret=004553a3 0037:Ret KERNEL32.GetVolumeInformationA() retval=00000001 ret=004553a3 0037:Call ntdll._memicmp(2dfee584 "NTFS",004cd5c0 "NTFS",00000004) ret=004553b5 0037:Ret ntdll._memicmp() retval=00000000 ret=004553b5 0037:Call KERNEL32.CreateFileA(2dfee078 "\\.\c:",80000000,00000003,00000000,00000003,00000000,00000000) ret=004554a6 0037:Ret KERNEL32.CreateFileA() retval=000001e0 ret=004554a6 0037:Call KERNEL32.DeviceIoControl(000001e0,00090064,00000000,00000000,2dfee1c0,00000060,2dfee064,00000000) ret=004558ff 0037:Ret KERNEL32.DeviceIoControl() retval=00000000 ret=004558ff 0037:Call KERNEL32.CloseHandle(000001e0) ret=004558be 0037:Ret KERNEL32.CloseHandle() retval=00000001 ret=004558be 0037:Call KERNEL32.GetDriveTypeA(2dfee570 "c:\") ret=00455363 0037:Ret KERNEL32.GetDriveTypeA() retval=00000003 ret=00455363 0037:Call KERNEL32.GetVolumeInformationA(2dfee570 "c:\",00000000,00000000,00000000,2dfee580,2dfee57c,2dfee584,0000003f) ret=004553a3 0037:Ret KERNEL32.GetVolumeInformationA() retval=00000001 ret=004553a3 0037:Call ntdll._memicmp(2dfee584 "NTFS",004cd5c0 "NTFS",00000004) ret=004553b5 0037:Ret ntdll._memicmp() retval=00000000 ret=004553b5 0037:Call KERNEL32.CreateFileA(2dfee078 "\\.\c:",80000000,00000003,00000000,00000003,00000000,00000000) ret=004554a6 0037:Ret KERNEL32.CreateFileA() retval=000001e0 ret=004554a6 0037:Call KERNEL32.DeviceIoControl(000001e0,00090064,00000000,00000000,2dfee1c0,00000060,2dfee064,00000000) ret=004558ff 0037:Ret KERNEL32.DeviceIoControl() retval=00000000 ret=004558ff 0037:Call KERNEL32.VirtualAlloc(00000000,00000000,00001000,00000004) ret=00455587 0037:Ret KERNEL32.VirtualAlloc() retval=00000000 ret=00455587 0037:Call KERNEL32.CloseHandle(000001e0) ret=004558be 0037:Ret KERNEL32.CloseHandle() retval=00000001 ret=004558be 0037:Call user32.PostMessageA(00080078,00000111,00000004,00000000) ret=00420960 0037:trace:msg:PostMessageW hwnd 0x80078 msg 111 (WM_COMMAND) wp 4 lp 0 0037:Ret user32.PostMessageA() retval=00000001 ret=00420960 ... 0035:Call user32.MessageBoxA(00000000,001859f2 "SAI can not complete setup process because current user dose not have administrator right. Please launch SAI with one of the following way.\n\n - Logon as administrator and launch SAI\n\n - Right click SAI program file -> [Run As Other User]?Enter administrator account (Windows 2000/XP)\n\n - Right c"...,00000000,00000010) ret=00493586 --- snip ---
MSDN entry for FSCTL_GET_NTFS_VOLUME_DATA control code:
http://msdn.microsoft.com/en-us/library/windows/desktop/aa364569.aspx
NTFS_VOLUME_DATA_BUFFER structure:
http://msdn.microsoft.com/en-us/library/windows/desktop/aa365256.aspx
Implementing that ioctl and returning fake data is not enough, you also need sane FSCTL_GET_NTFS_FILE_RECORD data (hence NTFS_VOLUME_DATA_BUFFER BytesPerFileRecordSegment for proper buffer size).
This source code might be helpful to understand how low-level file system access/info retrieval is done:
"FDump - Dumping File Sectors Directly from Disk using Logical Offsets"
http://www.codeproject.com/KB/files/FDump.aspx
(FsReadFileMFT function for similar sequence)
http://www.codeproject.com/script/Articles/ViewDownloads.aspx?aid=32169&...
---
There is also less intrusive code for handling install on FAT32 file systems.
For this to work you need kernel32.dll GetVolumeInformationW() to return FAT32 fs type instead of NTFS for default case.
(http://source.winehq.org/git/wine.git/blob/d5ad5ca91ca6aa1a3eb2a3849bb0dbcb6...)
This allows the app to install/start.
If the installer succeeds, a file containing encrypted DRM data is created in "C:\Documents and Settings\All Users\Application Data\SYSTEMAX Software Development\SAI\NotRemoveMe.ssd"
Additionally a registry entry, pointing to DRM file:
[HKEY_LOCAL_MACHINE\Software\SYSTEMAX Software Development\Sai] "SetupInfo"="C:\users\Public\Application Data\SYSTEMAX Software Development\SAI\NotRemoveMe.ssd"
---
Funny tidbit (from their website) ...
--- quote --- To use this software, the skills of basic file operation on Windows is required. Please do not buy the license for this software if you do not have the skills of basic file operation on Windows. --- quote ---
_o0_
Straight through google translate?
Seems not: http://translate.google.com/translate?sl=ja&tl=en&js=n&prev=_t&a...
--- quote --- Furthermore, in the installation settings, use the product license, and a basic knowledge of computer basics (especially those related to the files and folders), please note that it will be imperative that it is mastered. --- quote ---
;-)
$ sha1sum sai-1.1.0-ful-en.exe fb1876e370d431f21df06428ca6ccf35de727000 sai-1.1.0-ful-en.exe
$ wine --version wine-1.3.36-172-gb00e703
There is also an interesting issue with +relay, I'll make that a separate bug.
Regards
http://bugs.winehq.org/show_bug.cgi?id=29550
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |arethusa26@gmail.com
--- Comment #5 from Anastasius Focht focht@gmx.net 2012-01-16 01:15:18 CST --- *** Bug 19476 has been marked as a duplicate of this bug. ***
http://bugs.winehq.org/show_bug.cgi?id=29550
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |6e0d43811b5e407a77fde3a64ea | |d5f3700ea68a9 Status|NEW |RESOLVED Component|-unknown |kernel32 Resolution|--- |FIXED Summary|Paint Tool Sai installer |PaintTool SAI installer |complains about missing |complains about missing |administrator rights (Wine |administrator rights (Wine |defaults to NTFS for |defaults to NTFS for |unknown fs type, |unknown fs type, |FSCTL_GET_NTFS_VOLUME_DATA |FSCTL_GET_NTFS_VOLUME_DATA |support needed) |support needed)
--- Comment #6 from Anastasius Focht focht@gmx.net --- Hello folks,
revisiting because some guy in #winehq encountered this issue, reminding me immediately of this bug.
He used an outdated Wine version 1.4.1 where this bug was still present.
As I stated in bug 33576 (http://bugs.winehq.org/show_bug.cgi?id=33576#c4) the installer hits a different code path due to addition of FILE_PERSISTENT_ACLS flag for NTFS volumes (commit 6e0d43811b5e407a77fde3a64ead5f3700ea68a9).
That commit introduced a regression though (bug 33576), letting the app fail on startup.
Resolving 'fixed' (you need at least Wine 1.5.30)
Also refining summary to get better search/hit probability.
"Paint Tool Sai" -> "PaintTool SAI"
Regards
https://bugs.winehq.org/show_bug.cgi?id=29550
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #7 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 1.7.9.