Skip to content

Commit

Permalink
Shortcuts and paths on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Smári McCarthy committed Aug 4, 2014
1 parent 3eede13 commit 61b5939
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion mp.cmd
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@echo off
set PATH=%PATH%;GnuPG\;OpenSSL\;
set PYTHONPATH=%~dp0
set PYTHONPATH=%~dp0;%~dp0\GnuPG\;%~dp0\OpenSSL\;
if exist python27\python.exe (
set PYTHONBIN=python27\python.exe
) else if exist c:\python27\python.exe (
Expand Down
12 changes: 9 additions & 3 deletions packages/windows/mailpile.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,16 @@ Section

WriteRegStr HKCU "Software\Mailpile" "" $INSTDIR

createShortCut "$SMPROGRAMS\Mailpile.lnk" "$INSTDIR\mailpile\mp.cmd" # Call startup script...

File /r /x packages /x .git "../../../Mailpile/*"
File /r "GnuPG"
File /r "OpenSSL"
File /r "Python27"
File "mailpile.ico"

createDirectory "$SMPROGRAMS\Mailpile"
createShortCut "$SMPROGRAMS\Mailpile\Start Mailpile.lnk" "$INSTDIR\mp.cmd" "" "$INSTDIR\mailpile.ico" # Call startup script...
WriteINIStr "$SMPROGRAMS\Mailpile\Open Mailpile.url" "InternetShortcut" "URL" "http://localhost:33411"


WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Run" \
"Mailpile" "$INSTDIR\mp.cmd"
Expand All @@ -47,7 +51,9 @@ SectionEnd

Section "un.Uninstall"
RMDir "$INSTDIR"
Delete "$SMPROGRAMS\Mailpile.lnk"
Delete "$SMPROGRAMS\Mailpile\Start Mailpile.lnk"
Delete "$SMPROGRAMS\Mailpile\Open Mailpile.url"
RMDir "$SMPROGRAMS\Mailpile"

DeleteRegKey /ifempty HKCU "Software\Mailpile"
SectionEnd
Binary file modified packages/windows/mailpile_logo.bmp
Binary file not shown.

0 comments on commit 61b5939

Please sign in to comment.