Changed script so it downloads the latest version of NPP (4.3)
[npp-install.git] / npp-installer.py
blob99b1d1f124dbfcbab87f3fba43aae72a7fd905e1
1  #!/usr/bin/python
3 import os
5 print ("Welcome to npp-installer. You must be running a Debain-based (apt-get) distro for this script to work.")
6 wineok = raw_input("Do you have Wine installed? y/n >>> ")
9 if wineok == "n":
10 distro = raw_input("Are you running Ubuntu? y/n >>> ")
12 if distro == "y":
13 os.system ("sudo apt-get install wine")
14 else:
15 username = raw_input("What is your username? As in /home/user/? >>> ")
16 os.system ("su apt-get install wine")
17 returnUser = "su %s" % (username)
18 os.system (returnUser)
20 os.system("wget http://easynews.dl.sourceforge.net/sourceforge/notepad-plus/npp.4.3.Installer.exe")
22 os.system("wine ./npp.4.3.Installer.exe")
24 print "You may be able to find a shortcut in your menu know. Otherwise, you can find NPP in your ~/.wine subdirectory"