[Bug 26373] Solidworks 2010 crashes

wine-bugs at winehq.org wine-bugs at winehq.org
Tue Mar 15 11:39:05 CDT 2011


http://bugs.winehq.org/show_bug.cgi?id=26373

--- Comment #13 from denis bonnenfant <denis.bonnenfant at diderot.org> 2011-03-15 11:39:04 CDT ---
(In reply to comment #12)
> (In reply to comment #11)
> > I mean at run-time, since obviously there are users with existing installs
> > and it's going to be a support headache.
> 
> Yeah, a crash might be the only user-visible indicator. A +reg
> trace should reveal the user SID, and if +advapi shows calls to
> GetTokenInformation(TokenUser) and LookupAccountSid it's likely
> that the app depends on the SID <-> username mapping.

OK, now I understand. There are some informations related to the old
interactive SID stored in HKLM. They need to be renamed to local user SID.

For Solidworks, it was in 
HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Installer\\UserData

With this hack SolidWorks works perfectly without reinstalling, and I guess
that it would be the same for other apps.

So, basically 

sed -i "s/S-1-5-4/S-1-5-21-0-0-0-1000/g"  $WINEPREFIX/system.reg  

will do the trick. 


Adding it to a winetricks verb, or, better, as a test launched at first 1.3.16
start (when WINEPREFIX is updated) may be a good thing.  I tested it on a few
prefixes and it doesn't break anything.

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list