Skip to content
Browse files

Merge branch 'master' of https://github.com/brendonbeebe/AutoMovieArc…

  • Loading branch information...
2 parents b7d88ad + 7ef4b13 commit b6fb29acb981219c1e795055849fe64b08a8fb7c @brendonbeebe brendonbeebe committed Mar 2, 2013
View
51 DriveGrab.py
@@ -0,0 +1,51 @@
+import clr
+clr.AddReference('System.Drawing')
+clr.AddReference('System.Windows.Forms')
+
+from System.Drawing import *
+from System.Windows.Forms import *
+import string
+from ctypes import windll
+
+class MyForm(Form):
+ def __init__(self):
+ self.Text = 'Hello World'
+ self.Height = 500
+
+ self.label = Label()
+ self.label.Text = "Default Save Directory: C:\Movies"
+ self.label.Location = Point(50, 50)
+ self.label.Height = 30
+ self.label.Width = 200
+
+ self.drives = self.get_drives()
+ self.start_loc = 100
+
+ for drive in self.drives:
+ button = Button()
+ button.Text = drive
+ button.Location = Point(50, self.start_loc)
+ self.start_loc += 50
+ button.Click += self.buttonPressed
+ self.Controls.Add(self.label)
+ self.Controls.Add(button)
+
+ def buttonPressed(self, sender, args):
+ self.label.Text = "Default Save Directory: %s:\Movies" % sender.Text
+
+ def get_drives(self):
+ drives = []
+ bitmask = windll.kernel32.GetLogicalDrives()
+ for letter in string.uppercase:
+ if bitmask & 1:
+ drives.append(letter)
+ bitmask >>= 1
+
+ return drives
+
+
+Application.EnableVisualStyles()
+Application.SetCompatibleTextRenderingDefault(False)
+
+form = MyForm()
+Application.Run(form)
View
9 Installer/buid/InstScript.nsi
@@ -35,9 +35,16 @@ Section ""
${EndIf}
ExecWait '"$INSTDIR\pkgs\vlc.exe"'
endvlc:
+ ;install python
ExecWait '"msiexec" /i "$INSTDIR\pkgs\python.msi" /passive'
ReadRegStr $0 HKLM "SYSTEM\CurrentControlSet\Control\Session Manager\Environment" "path"
- WriteRegStr HKLM "SYSTEM\CurrentControlSet\Control\Session Manager\Environment" "path" "$0;c:\python27"
+ WriteRegStr HKLM "SYSTEM\CurrentControlSet\Control\Session Manager\Environment" "path" "$0;c:\python33"
+ ;install IronPython
+ ExecWait '"msiexec" /i "$INSTDIR\pkgs\IronPython.msi" /passive'
+ ReadRegStr $0 HKLM "SYSTEM\CurrentControlSet\Control\Session Manager\Environment" "path"
+ WriteRegStr HKLM "SYSTEM\CurrentControlSet\Control\Session Manager\Environment" "path" "$0;C:\Program Files\IronPython 2.7"
+ ;install MakeMKV
+ ExecWait '"$INSTDIR\pkgs\MakeMKV.exe"'
;create desktop shortcut
CreateShortCut "$DESKTOP\${PRODUCT_ID}.lnk" "$INSTDIR\pkgs\${RUN_FILE}.py" ""
View
9 Installer/buid/License.txt
@@ -1,3 +1,6 @@
-VLC Media Player and HandBrake Command Line Utility will be installed as part of this setup.
-Auto Movie Archive requires these additional programs to function properly.
-We do not condone or support software piracy and openly discourage it.
+The following utilities and programs will be installed as part of this installation:
+-VLC Media Player
+-HandBrake Command Line Utility
+-python 3.3, IronPython 2.7
+-Make MKV
+Auto Movie Archive requires these additional programs to function properly. We do not condone or support software piracy and openly discourage it.
View
BIN Installer/buid/pkgs/IronPython.msi
Binary file not shown.
View
BIN Installer/buid/pkgs/MakeMKV.exe
Binary file not shown.
View
BIN Installer/buid/pkgs/python.msi
Binary file not shown.
View
BIN Installer/buid/setup.exe
Binary file not shown.

0 comments on commit b6fb29a

Please sign in to comment.
Something went wrong with that request. Please try again.