POL_Install_crypt32

Informations

Creator Message
Ronin DUSETTE

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 128282
Wine: System

Feedbacks

Description

A simple function to download the Windows XP SP2 version of crypt32.dll, which reportedly is needed for games like Assassin's Creed 2 (uplay) and others. 

Source code

#!/bin/bash
# Date : (2014-08-18 09-00)
# Distribution used to test : Kubuntu 14.04 - 64-bit
# Author : RoninDusette
# Licence : GPLv3
# PlayOnLinux: 4.2.4
  
POL_Debug_Message "Installing crypt32.dll..."

if [ "$POL_ARCH" = "amd64" ]; then
    Path32Bit="$WINEPREFIX/drive_c/windows/syswow64"
else
    Path32Bit="$WINEPREFIX/drive_c/windows/system32"
fi

cd "$POL_USER_ROOT/tmp"

POL_Call POL_SP2_Extract crypt32.dll
POL_Call POL_SP2_Extract msasn1.dll

cp "$POL_USER_ROOT/tmp/msasn1.dll" "$Path32Bit/msasn1.dll"
cp "$POL_USER_ROOT/tmp/crypt32.dll" "$Path32Bit/crypt32.dll"

POL_Wine_OverrideDLL "native, builtin" "crypt32.dll"
  
# Cleanup TMP folder
  
rm "$POL_USER_ROOT/tmp/crypt32.dll"
rm "$POL_USER_ROOT/tmp/msasn1.dll"

Contributions

Filters:

Contribute
Member Message
Yaotl Monday 18 October 2021 at 17:40
Yaotl Anonymous

Information

This update has been approved by the team.

Differences

@@ -7,13 +7,19 @@
   
 POL_Debug_Message "Installing crypt32.dll..."
 
+if [ "$POL_ARCH" = "amd64" ]; then
+    Path32Bit="$WINEPREFIX/drive_c/windows/syswow64"
+else
+    Path32Bit="$WINEPREFIX/drive_c/windows/system32"
+fi
+
 cd "$POL_USER_ROOT/tmp"
 
 POL_Call POL_SP2_Extract crypt32.dll
 POL_Call POL_SP2_Extract msasn1.dll
 
-cp "$POL_USER_ROOT/tmp/msasn1.dll" "$WINEPREFIX/drive_c/windows/system32/msasn1.dll"
-cp "$POL_USER_ROOT/tmp/crypt32.dll" "$WINEPREFIX/drive_c/windows/system32/crypt32.dll"
+cp "$POL_USER_ROOT/tmp/msasn1.dll" "$Path32Bit/msasn1.dll"
+cp "$POL_USER_ROOT/tmp/crypt32.dll" "$Path32Bit/crypt32.dll"
 
 POL_Wine_OverrideDLL "native, builtin" "crypt32.dll"
   

New source code

#!/bin/bash
# Date : (2014-08-18 09-00)
# Distribution used to test : Kubuntu 14.04 - 64-bit
# Author : RoninDusette
# Licence : GPLv3
# PlayOnLinux: 4.2.4
  
POL_Debug_Message "Installing crypt32.dll..."

if [ "$POL_ARCH" = "amd64" ]; then
    Path32Bit="$WINEPREFIX/drive_c/windows/syswow64"
else
    Path32Bit="$WINEPREFIX/drive_c/windows/system32"
fi

cd "$POL_USER_ROOT/tmp"

POL_Call POL_SP2_Extract crypt32.dll
POL_Call POL_SP2_Extract msasn1.dll

cp "$POL_USER_ROOT/tmp/msasn1.dll" "$Path32Bit/msasn1.dll"
cp "$POL_USER_ROOT/tmp/crypt32.dll" "$Path32Bit/crypt32.dll"

POL_Wine_OverrideDLL "native, builtin" "crypt32.dll"
  
# Cleanup TMP folder
  
rm "$POL_USER_ROOT/tmp/crypt32.dll"
rm "$POL_USER_ROOT/tmp/msasn1.dll"

Replies

Friday 29 October 2021 at 22:52
Script approved.
Ronin DUSETTE Saturday 25 October 2014 at 19:20
Ronin DUSETTE

Warning

This update has not been approved yet by the team.
Use it at your own risk

Differences

@@ -1,7 +1,7 @@
 #!/bin/bash
 # Date : (2014-08-18 09-00)
 # Distribution used to test : Kubuntu 14.04 - 64-bit
-# Author : DJYoshaBYD
+# Author : RoninDusette
 # Licence : GPLv3
 # PlayOnLinux: 4.2.4
   

New source code

#!/bin/bash
# Date : (2014-08-18 09-00)
# Distribution used to test : Kubuntu 14.04 - 64-bit
# Author : RoninDusette
# Licence : GPLv3
# PlayOnLinux: 4.2.4
  
POL_Debug_Message "Installing crypt32.dll..."

cd "$POL_USER_ROOT/tmp"

POL_Call POL_SP2_Extract crypt32.dll
POL_Call POL_SP2_Extract msasn1.dll

cp "$POL_USER_ROOT/tmp/msasn1.dll" "$WINEPREFIX/drive_c/windows/system32/msasn1.dll"
cp "$POL_USER_ROOT/tmp/crypt32.dll" "$WINEPREFIX/drive_c/windows/system32/crypt32.dll"

POL_Wine_OverrideDLL "native, builtin" "crypt32.dll"
  
# Cleanup TMP folder
  
rm "$POL_USER_ROOT/tmp/crypt32.dll"
rm "$POL_USER_ROOT/tmp/msasn1.dll"

Replies

Quentin PÂRIS Tuesday 19 August 2014 at 16:32
Quentin PÂRIS Anonymous

Warning

This update has not been approved yet by the team.
Use it at your own risk

Message

Can you confirm that it works?

Differences

@@ -5,22 +5,19 @@
 # Licence : GPLv3
 # PlayOnLinux: 4.2.4
   
-  
-cd $POL_USER_ROOT/tmp
-  
-POL_Download "https://googledrive.com/host/0B8f6x82bTIm1S1ZzOTVUdWxLMDg/crypt32.dll" "bdaaf79dd63f194434d31a74b9bb8b77"
-POL_Download "https://googledrive.com/host/0B8f6x82bTIm1S1ZzOTVUdWxLMDg/msasn1.dll" "dfd56a351c159ea43bc7774819f0a1cb"
-
-POL_SetupWindow_wait_next_signal "$(eval_gettext 'Downloading...')" "crypt32.dll"
-  
 POL_Debug_Message "Installing crypt32.dll..."
 
-cp $POL_USER_ROOT/tmp/msasn1.dll $WINEPREFIX/drive_c/windows/system32/msasn1.dll
-cp $POL_USER_ROOT/tmp/crypt32.dll $WINEPREFIX/drive_c/windows/system32/crypt32.dll
+cd "$POL_USER_ROOT/tmp"
+
+POL_Call POL_SP2_Extract crypt32.dll
+POL_Call POL_SP2_Extract msasn1.dll
+
+cp "$POL_USER_ROOT/tmp/msasn1.dll" "$WINEPREFIX/drive_c/windows/system32/msasn1.dll"
+cp "$POL_USER_ROOT/tmp/crypt32.dll" "$WINEPREFIX/drive_c/windows/system32/crypt32.dll"
 
 POL_Wine_OverrideDLL "native, builtin" "crypt32.dll"
   
 # Cleanup TMP folder
   
-rm $POL_USER_ROOT/tmp/crypt32.dll
-rm $POL_USER_ROOT/tmp/msasn1.dll
\ No newline at end of file
+rm "$POL_USER_ROOT/tmp/crypt32.dll"
+rm "$POL_USER_ROOT/tmp/msasn1.dll"
\ No newline at end of file

New source code

#!/bin/bash
# Date : (2014-08-18 09-00)
# Distribution used to test : Kubuntu 14.04 - 64-bit
# Author : DJYoshaBYD
# Licence : GPLv3
# PlayOnLinux: 4.2.4
  
POL_Debug_Message "Installing crypt32.dll..."

cd "$POL_USER_ROOT/tmp"

POL_Call POL_SP2_Extract crypt32.dll
POL_Call POL_SP2_Extract msasn1.dll

cp "$POL_USER_ROOT/tmp/msasn1.dll" "$WINEPREFIX/drive_c/windows/system32/msasn1.dll"
cp "$POL_USER_ROOT/tmp/crypt32.dll" "$WINEPREFIX/drive_c/windows/system32/crypt32.dll"

POL_Wine_OverrideDLL "native, builtin" "crypt32.dll"
  
# Cleanup TMP folder
  
rm "$POL_USER_ROOT/tmp/crypt32.dll"
rm "$POL_USER_ROOT/tmp/msasn1.dll"

Replies

Tuesday 19 August 2014 at 19:22
I will check shortly.
Tuesday 19 August 2014 at 19:38
Yes. It seems to work fine for me.

Edited by Tinou

booman Tuesday 19 August 2014 at 3:20
booman

Message

Crypt32.dll works perfectly with Uplay and Wine 1.7.24

Thank you thank you thank you DJ!  I will start downloading Assassin's Creed Brotherhood and see if it launches.

Replies

Tuesday 19 August 2014 at 5:50
:D
Anonymous
Tuesday 19 August 2014 at 11:46
Sorry to bother you, but we can't keep the script like that... It is EULA violation
Tuesday 19 August 2014 at 19:21
OK. That is fine. I just didn't get a chance to change it yet. Boomman said that it works without this, so we may not even need it.
Ronin DUSETTE Monday 18 August 2014 at 20:18
Ronin DUSETTE

Warning

This update has not been approved yet by the team.
Use it at your own risk

Differences

@@ -22,4 +22,5 @@
   
 # Cleanup TMP folder
   
-rm $POL_USER_ROOT/tmp/crypt32.dll
\ No newline at end of file
+rm $POL_USER_ROOT/tmp/crypt32.dll
+rm $POL_USER_ROOT/tmp/msasn1.dll
\ No newline at end of file

New source code

#!/bin/bash
# Date : (2014-08-18 09-00)
# Distribution used to test : Kubuntu 14.04 - 64-bit
# Author : DJYoshaBYD
# Licence : GPLv3
# PlayOnLinux: 4.2.4
  
  
cd $POL_USER_ROOT/tmp
  
POL_Download "https://googledrive.com/host/0B8f6x82bTIm1S1ZzOTVUdWxLMDg/crypt32.dll" "bdaaf79dd63f194434d31a74b9bb8b77"
POL_Download "https://googledrive.com/host/0B8f6x82bTIm1S1ZzOTVUdWxLMDg/msasn1.dll" "dfd56a351c159ea43bc7774819f0a1cb"

POL_SetupWindow_wait_next_signal "$(eval_gettext 'Downloading...')" "crypt32.dll"
  
POL_Debug_Message "Installing crypt32.dll..."

cp $POL_USER_ROOT/tmp/msasn1.dll $WINEPREFIX/drive_c/windows/system32/msasn1.dll
cp $POL_USER_ROOT/tmp/crypt32.dll $WINEPREFIX/drive_c/windows/system32/crypt32.dll

POL_Wine_OverrideDLL "native, builtin" "crypt32.dll"
  
# Cleanup TMP folder
  
rm $POL_USER_ROOT/tmp/crypt32.dll
rm $POL_USER_ROOT/tmp/msasn1.dll

Replies

Anonymous
Monday 18 August 2014 at 22:41
Well, I don't like googledrive stuff. It's not very reliable and even illegal in some countries. I would rather you to use Windows XP SP2 or SP3 file (look at Spider Solitaire script)
Monday 18 August 2014 at 22:47
OK. I will make those changes when I get the chance. I will download from ms and use cabextract, as per the other script.
Ronin DUSETTE Monday 18 August 2014 at 18:35
Ronin DUSETTE

Warning

This update has not been approved yet by the team.
Use it at your own risk

Differences

@@ -22,6 +22,4 @@
   
 # Cleanup TMP folder
   
-rm $POL_USER_ROOT/tmp/crypt32.dll
-  
-fi
\ No newline at end of file
+rm $POL_USER_ROOT/tmp/crypt32.dll
\ No newline at end of file

New source code

#!/bin/bash
# Date : (2014-08-18 09-00)
# Distribution used to test : Kubuntu 14.04 - 64-bit
# Author : DJYoshaBYD
# Licence : GPLv3
# PlayOnLinux: 4.2.4
  
  
cd $POL_USER_ROOT/tmp
  
POL_Download "https://googledrive.com/host/0B8f6x82bTIm1S1ZzOTVUdWxLMDg/crypt32.dll" "bdaaf79dd63f194434d31a74b9bb8b77"
POL_Download "https://googledrive.com/host/0B8f6x82bTIm1S1ZzOTVUdWxLMDg/msasn1.dll" "dfd56a351c159ea43bc7774819f0a1cb"

POL_SetupWindow_wait_next_signal "$(eval_gettext 'Downloading...')" "crypt32.dll"
  
POL_Debug_Message "Installing crypt32.dll..."

cp $POL_USER_ROOT/tmp/msasn1.dll $WINEPREFIX/drive_c/windows/system32/msasn1.dll
cp $POL_USER_ROOT/tmp/crypt32.dll $WINEPREFIX/drive_c/windows/system32/crypt32.dll

POL_Wine_OverrideDLL "native, builtin" "crypt32.dll"
  
# Cleanup TMP folder
  
rm $POL_USER_ROOT/tmp/crypt32.dll

Replies

Edited by RoninDusette

Ronin DUSETTE Monday 18 August 2014 at 18:09
Ronin DUSETTE

Warning

This update has not been approved yet by the team.
Use it at your own risk

Message

Initial commit. 

Differences

@@ -0,0 +1,28 @@
+#!/bin/bash
+# Date : (2014-08-18 09-00)
+# Distribution used to test : Kubuntu 14.04 - 64-bit
+# Author : DJYoshaBYD
+# Licence : GPLv3
+# PlayOnLinux: 4.2.4
+  
+  
+cd $POL_USER_ROOT/tmp
+  
+POL_Download "https://googledrive.com/host/0B8f6x82bTIm1S1ZzOTVUdWxLMDg/crypt32.dll" "bdaaf79dd63f194434d31a74b9bb8b77"
+  
+POL_SetupWindow_wait_next_signal "$(eval_gettext 'Downloading...')" "crypt32.dll"
+  
+POL_Debug_Message "Installing crypt32.dll..."
+  
+cp $POL_USER_ROOT/tmp/crypt32.dll $WINEPREFIX/drive_c/windows/system32/crypt32.dll
+  
+if [ "$(POL_Wine regsvr32 $WINEPREFIX/drive_c/windows/system32/crypt32.dll | grep -o "Successfully")" != "Successfully" ]; then
+        POL_Debug_Fatal "Failed to register crypt32.dll. Please verify you have the needed dependencies and try again."
+  
+else        echo "Success. crypt32.dll is now ready for use in $WINEPREFIX"
+  
+# Cleanup TMP folder
+  
+rm $POL_USER_ROOT/tmp/crypt32.dll
+  
+fi
\ No newline at end of file

New source code

#!/bin/bash
# Date : (2014-08-18 09-00)
# Distribution used to test : Kubuntu 14.04 - 64-bit
# Author : DJYoshaBYD
# Licence : GPLv3
# PlayOnLinux: 4.2.4
  
  
cd $POL_USER_ROOT/tmp
  
POL_Download "https://googledrive.com/host/0B8f6x82bTIm1S1ZzOTVUdWxLMDg/crypt32.dll" "bdaaf79dd63f194434d31a74b9bb8b77"
  
POL_SetupWindow_wait_next_signal "$(eval_gettext 'Downloading...')" "crypt32.dll"
  
POL_Debug_Message "Installing crypt32.dll..."
  
cp $POL_USER_ROOT/tmp/crypt32.dll $WINEPREFIX/drive_c/windows/system32/crypt32.dll
  
if [ "$(POL_Wine regsvr32 $WINEPREFIX/drive_c/windows/system32/crypt32.dll | grep -o "Successfully")" != "Successfully" ]; then
        POL_Debug_Fatal "Failed to register crypt32.dll. Please verify you have the needed dependencies and try again."
  
else        echo "Success. crypt32.dll is now ready for use in $WINEPREFIX"
  
# Cleanup TMP folder
  
rm $POL_USER_ROOT/tmp/crypt32.dll
  
fi

Replies

Monday 18 August 2014 at 18:15
Please note that this does not work very well at the moment. I am working with Booman to get this working correctly, as he is the one that requested it. Please be patient whilst we test this function to perfection. :)

This site allows content generated by members, and we promptly remove any content that infringes copyright according to our Terms of Service. To report copyright infringement, please send a notice to dmca-notice@playonlinux.com