ci: install visual c++ 2010 redist on windows installer
This commit is contained in:
@@ -32,35 +32,35 @@ InstallDir "$PROGRAMFILES32\${APP_NAME}"
|
||||
|
||||
!insertmacro MUI_LANGUAGE "English"
|
||||
|
||||
Section "Olive (required)"
|
||||
|
||||
SectionIn RO
|
||||
|
||||
SetOutPath $INSTDIR
|
||||
|
||||
File /r olive-editor\*
|
||||
|
||||
WriteUninstaller "$INSTDIR\uninstall.exe"
|
||||
Section "Olive"
|
||||
SectionIn RO
|
||||
SetOutPath $INSTDIR
|
||||
File /r olive-editor\*
|
||||
WriteUninstaller "$INSTDIR\uninstall.exe"
|
||||
|
||||
# Install Visual C++ 2010 Redistributable
|
||||
File "vcredist_x64.exe"
|
||||
ExecWait '"$INSTDIR\vcredist_x64.exe" /quiet'
|
||||
Delete "$INSTDIR\vcredist_x64.exe"
|
||||
SectionEnd
|
||||
|
||||
Section "Create Desktop shortcut"
|
||||
CreateShortCut "$DESKTOP\${APP_NAME}.lnk" "$INSTDIR\${APP_TARGET}.exe"
|
||||
CreateShortCut "$DESKTOP\${APP_NAME}.lnk" "$INSTDIR\${APP_TARGET}.exe"
|
||||
SectionEnd
|
||||
|
||||
Section "Create Start Menu shortcut"
|
||||
CreateDirectory "$SMPROGRAMS\${APP_NAME}"
|
||||
CreateShortCut "$SMPROGRAMS\${APP_NAME}\${APP_NAME}.lnk" "$INSTDIR\${APP_TARGET}.exe"
|
||||
CreateShortCut "$SMPROGRAMS\${APP_NAME}\Uninstall ${APP_NAME}.lnk" "$INSTDIR\uninstall.exe"
|
||||
CreateDirectory "$SMPROGRAMS\${APP_NAME}"
|
||||
CreateShortCut "$SMPROGRAMS\${APP_NAME}\${APP_NAME}.lnk" "$INSTDIR\${APP_TARGET}.exe"
|
||||
CreateShortCut "$SMPROGRAMS\${APP_NAME}\Uninstall ${APP_NAME}.lnk" "$INSTDIR\uninstall.exe"
|
||||
SectionEnd
|
||||
|
||||
Section "Associate *.ove files with Olive"
|
||||
WriteRegStr HKCR ".ove" "" "OliveEditor.OVEFile"
|
||||
WriteRegStr HKCR ".ove" "Content Type" "application/vnd.olive-project"
|
||||
WriteRegStr HKCR "OliveEditor.OVEFile" "" "Olive project file"
|
||||
WriteRegStr HKCR "OliveEditor.OVEFile\DefaultIcon" "" "$INSTDIR\olive-editor.exe,1"
|
||||
WriteRegStr HKCR "OliveEditor.OVEFile\shell\open\command" "" "$\"$INSTDIR\olive-editor.exe$\" $\"%1$\""
|
||||
System::Call 'shell32.dll::SHChangeNotify(i, i, i, i) v (0x08000000, 0, 0, 0)'
|
||||
WriteRegStr HKCR ".ove" "" "OliveEditor.OVEFile"
|
||||
WriteRegStr HKCR ".ove" "Content Type" "application/vnd.olive-project"
|
||||
WriteRegStr HKCR "OliveEditor.OVEFile" "" "Olive project file"
|
||||
WriteRegStr HKCR "OliveEditor.OVEFile\DefaultIcon" "" "$INSTDIR\olive-editor.exe,1"
|
||||
WriteRegStr HKCR "OliveEditor.OVEFile\shell\open\command" "" "$\"$INSTDIR\olive-editor.exe$\" $\"%1$\""
|
||||
System::Call 'shell32.dll::SHChangeNotify(i, i, i, i) v (0x08000000, 0, 0, 0)'
|
||||
SectionEnd
|
||||
|
||||
UninstPage uninstConfirm
|
||||
@@ -68,18 +68,18 @@ UninstPage instfiles
|
||||
|
||||
Section "uninstall"
|
||||
|
||||
rmdir /r "$INSTDIR"
|
||||
rmdir /r "$INSTDIR"
|
||||
|
||||
Delete "$DESKTOP\${APP_NAME}.lnk"
|
||||
rmdir /r "$SMPROGRAMS\${APP_NAME}"
|
||||
|
||||
DeleteRegKey HKCR ".ove"
|
||||
DeleteRegKey HKCR "OliveEditor.OVEFile"
|
||||
DeleteRegKey HKCR "OliveEditor.OVEFile\DefaultIcon" ""
|
||||
DeleteRegKey HKCR "OliveEditor.OVEFile\shell\open\command" ""
|
||||
System::Call 'shell32.dll::SHChangeNotify(i, i, i, i) v (0x08000000, 0, 0, 0)'
|
||||
Delete "$DESKTOP\${APP_NAME}.lnk"
|
||||
rmdir /r "$SMPROGRAMS\${APP_NAME}"
|
||||
|
||||
DeleteRegKey HKCR ".ove"
|
||||
DeleteRegKey HKCR "OliveEditor.OVEFile"
|
||||
DeleteRegKey HKCR "OliveEditor.OVEFile\DefaultIcon" ""
|
||||
DeleteRegKey HKCR "OliveEditor.OVEFile\shell\open\command" ""
|
||||
System::Call 'shell32.dll::SHChangeNotify(i, i, i, i) v (0x08000000, 0, 0, 0)'
|
||||
SectionEnd
|
||||
|
||||
Function LaunchOlive
|
||||
ExecShell "" "$INSTDIR\${APP_TARGET}.exe"
|
||||
ExecShell "" "$INSTDIR\${APP_TARGET}.exe"
|
||||
FunctionEnd
|
||||
|
||||
Reference in New Issue
Block a user