Subversion Repositories Games.Rick Dangerous

Rev

Rev 2 | Rev 9 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2 Rev 4
Line 105... Line 105...
105
	SetOutPath "$INSTDIR"
105
	SetOutPath "$INSTDIR"
106
 
106
 
107
	; deploy our files
107
	; deploy our files
108
	File /r "${INSTALLER_SRC}\sounds"
108
	File /r "${INSTALLER_SRC}\sounds"
109
	File "${INSTALLER_SRC}\${PRODUCT_NAME}.exe"
109
	File "${INSTALLER_SRC}\${PRODUCT_NAME}.exe"
110
	File "${INSTALLER_SRC}\msvcr90.dll"
110
	File "${INSTALLER_SRC}\vc_redist.x86.exe"
111
	File "${INSTALLER_SRC}\sdl.dll"
111
	File "${INSTALLER_SRC}\sdl.dll"
112
	File "${INSTALLER_SRC}\Rick Dangerous Paper Toy.pdf"
112
	File "${INSTALLER_SRC}\Rick Dangerous Paper Toy.pdf"
113
 
113
 
114
	; create Start menu shortcuts
114
	; create Start menu shortcuts
115
	CreateShortCut "$DESKTOP\${PRODUCT_NAME}.lnk" "$INSTDIR\${PRODUCT_NAME}.exe" "" "" "" "" "" "Start a Rick Dangerous game"
115
	CreateShortCut "$DESKTOP\${PRODUCT_NAME}.lnk" "$INSTDIR\${PRODUCT_NAME}.exe" "" "" "" "" "" "Start a Rick Dangerous game"
116
	CreateDirectory "$SMPROGRAMS\${PRODUCT_NAME}"
116
	CreateDirectory "$SMPROGRAMS\${PRODUCT_NAME}"
117
	CreateShortCut "$SMPROGRAMS\${PRODUCT_NAME}\${PRODUCT_NAME}.lnk" "$INSTDIR\${PRODUCT_NAME}.exe" "" "" "" "" "" "Start a Rick Dangerous game"
117
	CreateShortCut "$SMPROGRAMS\${PRODUCT_NAME}\${PRODUCT_NAME}.lnk" "$INSTDIR\${PRODUCT_NAME}.exe" "" "" "" "" "" "Start a Rick Dangerous game"
118
	CreateShortCut "$SMPROGRAMS\${PRODUCT_NAME}\Rick Dangerous Paper Toy.lnk" "$INSTDIR\Rick Dangerous Paper Toy.pdf" "" "" "" "" "" "Build your own Rick Dangerous 3D paper toy!"
118
	CreateShortCut "$SMPROGRAMS\${PRODUCT_NAME}\Rick Dangerous Paper Toy.lnk" "$INSTDIR\Rick Dangerous Paper Toy.pdf" "" "" "" "" "" "Build your own Rick Dangerous 3D paper toy!"
-
 
119
	CreateShortCut "$SMPROGRAMS\${PRODUCT_NAME}\Online Help (incl. how to play).lnk" "http://www.pmbaty.com/rick/" "" "" "" "" "" "Visit the website to learn how to play"
119
 
120
 
120
	; create a proper uninstaller
121
	; create a proper uninstaller
121
	WriteUninstaller $INSTDIR\uninstall.exe
122
	WriteUninstaller $INSTDIR\uninstall.exe
122
	WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}" "DisplayName" "${PRODUCT_NAME}"
123
	WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}" "DisplayName" "${PRODUCT_NAME}"
123
	WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}" "DisplayIcon" "$INSTDIR\${PRODUCT_NAME}.exe,0"
124
	WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}" "DisplayIcon" "$INSTDIR\${PRODUCT_NAME}.exe,0"
Line 127... Line 128...
127
	WriteRegDWORD HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}" "NoModify" 1
128
	WriteRegDWORD HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}" "NoModify" 1
128
	WriteRegDWORD HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}" "NoRepair" 1
129
	WriteRegDWORD HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}" "NoRepair" 1
129
	${GetSize} "$INSTDIR" "/S=0K" $0 $1 $2
130
	${GetSize} "$INSTDIR" "/S=0K" $0 $1 $2
130
	IntFmt $0 "0x%08X" $0
131
	IntFmt $0 "0x%08X" $0
131
	WriteRegDWORD HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}" "EstimatedSize" "$0"
132
	WriteRegDWORD HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}" "EstimatedSize" "$0"
-
 
133
 
-
 
134
	; silently install the Microsoft Visual C++ runtime
-
 
135
	Exec '"$INSTDIR\vc_redist.x86.exe" /install /quiet /norestart'
132
SectionEnd
136
SectionEnd
133
 
137
 
134
Section "Uninstall"
138
Section "Uninstall"
135
	Delete "$DESKTOP\${PRODUCT_NAME}.lnk"
139
	Delete "$DESKTOP\${PRODUCT_NAME}.lnk"
136
	RMDir /r "$SMPROGRAMS\${PRODUCT_NAME}"
140
	RMDir /r "$SMPROGRAMS\${PRODUCT_NAME}"