Giter Club home page Giter Club logo

Comments (5)

ctl74100 avatar ctl74100 commented on July 20, 2024

i'm currently working on this issue :D

from ole--vagrant-community.

ctl74100 avatar ctl74100 commented on July 20, 2024

draft.txt

from ole--vagrant-community.

dogi avatar dogi commented on July 20, 2024

@ctl74100 better to read ;)

:: preinstall.bat
:: install bonjour and putty
::
@ECHO OFF

:: create a temporarily folder 
if not exist "C:\tempfolder" mkdir C:\tempfolder

:: download bonjour to the temp folder and download putty to the user desktop
powershell -command "& { (New-Object Net.WebClient).DownloadFile('http://support.apple.com/downloads/DL999/en_US/BonjourPSSetup.exe', 'C:\tempfolder\BonjourPSSetup.exe') }"
powershell -command "& { (New-Object Net.WebClient).DownloadFile('https://the.earth.li/~sgtatham/putty/latest/x86/putty.exe', '%USERPROFILE%\Desktop\putty.exe') }"

:: Switch to the temporarily folder
cd C:\tempfolder

:: Check whether bonjour is already installed
reg export HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall temp1.txt
find /i /n "Bonjour" temp1.txt
if %errorlevel% == 0 (
echo Bonjour is already installed!!!!
del temp1.txt BonjourPSSetup.exe
cd C:/
RMDIR tempfolder
exit /b
)

:: Start the installation
start /w C:\tempfolder\BonjourPSSetup.exe

:: Check whether bonjour is installed correctly
reg export HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall temp2.txt
find /i /n "Bonjour" temp2.txt
if %errorlevel% == 0 (
echo program is installed correctly
)

del temp1.txt temp2.txt BonjourPSSetup.exe
cd C:/
RMDIR tempfolder

think you should work on the windows version of #16

from ole--vagrant-community.

ctl74100 avatar ctl74100 commented on July 20, 2024

@dogi
:D maybe next time.
should i make a pull request?

from ole--vagrant-community.

dogi avatar dogi commented on July 20, 2024

yes

from ole--vagrant-community.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.