POL_Install_crypt32

Informations

Créateur Messages
Ronin DUSETTE

Information

Cet installateur a été accepté par l'équipe.

Informations

Plate-formes :
Téléchargements : 128286
Wine: System

Retours d'expérience

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. 

Code source

#!/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:

Contribuer
Membre Messages
Yaotl Lundi 18 Octobre 2021 à 17:40
Yaotl Anonymous

Information

Cette mise à jour a été acceptée par l'équipe

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"
   

Nouveau code source

#!/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"

Réponses

Vendredi 29 Octobre 2021 à 22:52
Script approved.
Ronin DUSETTE Samedi 25 Octobre 2014 à 19:20
Ronin DUSETTE

Warning

Cette mise à jour n'a pas été approuvée par l'équipe.
Utilisez-la à vos risques et périls

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
   

Nouveau code source

#!/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"

Réponses

Quentin PÂRIS Mardi 19 Aoüt 2014 à 16:32
Quentin PÂRIS Anonymous

Warning

Cette mise à jour n'a pas été approuvée par l'équipe.
Utilisez-la à vos risques et périls

Messages

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

Nouveau code source

#!/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"

Réponses

Mardi 19 Aoüt 2014 à 19:22
I will check shortly.
Mardi 19 Aoüt 2014 à 19:38
Yes. It seems to work fine for me.

Edité par Tinou

booman Mardi 19 Aoüt 2014 à 3:20
booman

Messages

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.

Réponses

Mardi 19 Aoüt 2014 à 5:50
:D
Anonymous
Mardi 19 Aoüt 2014 à 11:46
Sorry to bother you, but we can't keep the script like that... It is EULA violation
Mardi 19 Aoüt 2014 à 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 Lundi 18 Aoüt 2014 à 20:18
Ronin DUSETTE

Warning

Cette mise à jour n'a pas été approuvée par l'équipe.
Utilisez-la à vos risques et périls

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

Nouveau code source

#!/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

Réponses

Anonymous
Lundi 18 Aoüt 2014 à 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)
Lundi 18 Aoüt 2014 à 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 Lundi 18 Aoüt 2014 à 18:35
Ronin DUSETTE

Warning

Cette mise à jour n'a pas été approuvée par l'équipe.
Utilisez-la à vos risques et périls

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

Nouveau code source

#!/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

Réponses

Edité par RoninDusette

Ronin DUSETTE Lundi 18 Aoüt 2014 à 18:09
Ronin DUSETTE

Warning

Cette mise à jour n'a pas été approuvée par l'équipe.
Utilisez-la à vos risques et périls

Messages

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

Nouveau code source

#!/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

Réponses

Lundi 18 Aoüt 2014 à 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