POL_Install_nop

Informations

Créateur Messages
petch

Information

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

Informations

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

Retours d'expérience

Description

Installs a program that does nothing (nop.exe).
Useful to simulate the calls to a program without its side effects.

Optionally take a list of filenames to copy it to.

Code source

#!/bin/bash
# PlayOnLinux Function
# Date : (2012-11-10 14:55)
# Last revision : (2012-11-10 15:14)
# Author : petch
# Only For : http://www.playonlinux.com

POL_Download_Resource "http://files.playonlinux.com/nop.zip" "a4bddfcad9e9b927eb1bfceaf289f6f0"

POL_Debug_Message "Installing nop.exe"

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

POL_System_ExtractSingleFile "nop.zip" "nop.exe" "$targetdir/nop.exe"

while [ -n "$1" ]; do
    cp "$targetdir/nop.exe" "$1"
    shift
done

Contributions

Filters:

Contribuer
Membre Messages

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