Permalink
Browse files

Merge pull request #8 from thetjyoung/master

New Stuf 4 U
  • Loading branch information...
2 parents 6518e64 + a79a1ff commit 7ef4b13e08566568ef99d878859fcc1c618c1fce @brendonbeebe brendonbeebe committed Mar 2, 2013
View
@@ -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)
@@ -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" ""
@@ -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.
Binary file not shown.
Binary file not shown.
Binary file not shown.
View
Binary file not shown.

0 comments on commit 7ef4b13

Please sign in to comment.