Rev 9 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 9 | Rev 11 | ||
---|---|---|---|
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}\vc_redist.x86.exe" |
- | |
111 | File "${INSTALLER_SRC}\SDL2.dll" |
110 | File "${INSTALLER_SRC}\SDL2.dll" |
112 | File "${INSTALLER_SRC}\Rick Dangerous Paper Toy.pdf" |
111 | File "${INSTALLER_SRC}\Rick Dangerous Paper Toy.pdf" |
113 | 112 | ||
114 | ; create Start menu shortcuts |
113 | ; create Start menu shortcuts |
115 | CreateShortCut "$DESKTOP\${PRODUCT_NAME}.lnk" "$INSTDIR\${PRODUCT_NAME}.exe" "" "" "" "" "" "Start a Rick Dangerous game" |
114 | CreateShortCut "$DESKTOP\${PRODUCT_NAME}.lnk" "$INSTDIR\${PRODUCT_NAME}.exe" "" "" "" "" "" "Start a Rick Dangerous game" |
Line 128... | Line 127... | ||
128 | WriteRegDWORD HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}" "NoModify" 1 |
127 | WriteRegDWORD HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}" "NoModify" 1 |
129 | WriteRegDWORD HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}" "NoRepair" 1 |
128 | WriteRegDWORD HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}" "NoRepair" 1 |
130 | ${GetSize} "$INSTDIR" "/S=0K" $0 $1 $2 |
129 | ${GetSize} "$INSTDIR" "/S=0K" $0 $1 $2 |
131 | IntFmt $0 "0x%08X" $0 |
130 | IntFmt $0 "0x%08X" $0 |
132 | WriteRegDWORD HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}" "EstimatedSize" "$0" |
131 | 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' |
- | |
136 | SectionEnd |
132 | SectionEnd |
137 | 133 | ||
138 | Section "Uninstall" |
134 | Section "Uninstall" |
139 | Delete "$DESKTOP\${PRODUCT_NAME}.lnk" |
135 | Delete "$DESKTOP\${PRODUCT_NAME}.lnk" |
140 | RMDir /r "$SMPROGRAMS\${PRODUCT_NAME}" |
136 | RMDir /r "$SMPROGRAMS\${PRODUCT_NAME}" |