Du är här

POL_Install_nop

Informations

Creator Meddelanden
petch

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 210282
Wine: System

Feedbacks

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.

Source code

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

Contribute
Member Meddelanden

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