Jump to content

Silent installation for VirtualDubMod & EAC ?


Kapo

Recommended Posts


Hey Kapo! :)

I don't think you need to install VDM. All the files are compressed in a zip archive. All you have to do is copy all of those to any directory you want. Or maybe it is better if you can make your own installer for this little program.

:)

Link to comment
Share on other sites

As stated previously, EAC installs all its files in one directory so you could make an Inno setup installer.

Attached is one I used to use just to give you an idea, this will install to C:\Program Files\Exact Audio Copy, and create some shortcuts.

On uninstall it will delete the keys created by EAC and delete the folder.

ExactAudio.iss

Link to comment
Share on other sites

You can use NSIS installer too ...

Here is an example (from me)

Name "YourProjectName"

!define PRODUCT "YourProjectName"
!include "MUI.nsh"
!define HAVE_UPX
!ifdef HAVE_UPX
!packhdr tmp.dat "upx -9 tmp.dat"
!endif
SetCompressor lzma

OutFile "YourOutputSetup.exe"
BRANDINGTEXT "YourProjectName"

InstallDir "$PROGRAMFILES\${PRODUCT}"
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_PAGE_FINISH
!insertmacro MUI_UNPAGE_CONFIRM
!insertmacro MUI_UNPAGE_INSTFILES
!define MUI_ABORTWARNING
!insertmacro MUI_LANGUAGE "French"

Section "section_1" section_1
;Copie des fichiers
SetOutPath "$INSTDIR"
FILE /r "C:\YourFolderToCompress\*.*"
SectionEnd

Section Shortcuts
CreateShortCut "$DESKTOP\YourProjectName.lnk" "$INSTDIR\Main.exe" "switches if you want" "$INSTDIR\icon.exe" 0
SectionEnd

Section Uninstaller
CreateShortCut "$SMPROGRAMS\NameOfTheUninstaller.lnk" "$INSTDIR\NameOfTheUninstaller.exe" "" "$INSTDIR\NameOfTheUninstaller.exe" 0
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\YourProjectName" "DisplayName" "${PRODUCT}"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\YourProjectName" "UninstallString" "$INSTDIR\NameOfTheUninstaller.exe"
WriteRegStr HKCU "Software\${PRODUCT}" "" $INSTDIR
WriteUninstaller "$INSTDIR\NameOfTheUninstaller.exe"
SectionEnd


Function un.onUninstSuccess
HideWindow
;Edit message text (succesfully uninstalled ...)
MessageBox MB_ICONINFORMATION|MB_OK "$(^Name) à été désinstallé avec succès"
FunctionEnd

Function un.onInit
;Confirmation of the uninstallation ...
MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 "Êtes-vous sûr de vouloir désinstaller $(^Name) ?" IDYES +2
Abort
FunctionEnd

Section "Uninstall"
Delete "$DESKTOP\YourProjectName.lnk"
Delete "$SMPROGRAMS\NameOfTheUninstaller.lnk"
Delete "$INSTDIR\*.*"
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\YourProjectName"
RMDir "$INSTDIR"
SectionEnd

;eof

Compil it and your installer is ready ;)

Edited by sonic
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...