|
From: John S. <jst...@us...> - 2010-07-21 20:21:10
|
Module: performous
Branch: master
Commit: cf6864f80dec1afb6897ef779bb609aed9c160d6
Author: John Stumpo <st...@js...>
Date: Sat Jun 26 03:31:05 2010 -0400
Add Start menu entries to the installer.
---
win32/cross-from-debian/makepackage.py | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/win32/cross-from-debian/makepackage.py b/win32/cross-from-debian/makepackage.py
index 2ad6342..f422145 100755
--- a/win32/cross-from-debian/makepackage.py
+++ b/win32/cross-from-debian/makepackage.py
@@ -85,6 +85,10 @@ for root, dirs, files in os.walk('.'):
makensis.stdin.write(r''' WriteRegStr HKLM "Software\Performous" "" "$INSTDIR"
WriteUninstaller "$INSTDIR\uninst.exe"
+ SetShellVarContext all
+ CreateDirectory "$SMPROGRAMS\Performous"
+ CreateShortcut "$SMPROGRAMS\Performous\Performous.lnk" "$INSTDIR\bin\performous.exe"
+ CreateShortcut "$SMPROGRAMS\Performous\Uninstall.lnk" "$INSTDIR\uninst.exe"
SectionEnd
Section Uninstall
@@ -99,6 +103,10 @@ for root, dirs, files in os.walk('.', topdown=False):
makensis.stdin.write(r''' Delete "$INSTDIR\uninst.exe"
RmDir "$INSTDIR"
+ SetShellVarContext all
+ Delete "$SMPROGRAMS\Performous\Performous.lnk"
+ Delete "$SMPROGRAMS\Performous\Uninstall.lnk"
+ RmDir "$SMPROGRAMS\Performous"
DeleteRegKey /ifempty HKLM "Software\Performous"
SectionEnd
''')
|