Archive: InstallDir


InstallDir
ok here is my code:

;the name
Name "DVD to iPod"
;the file
OutFile "Setup.exe"
;the directory
InstallDir "$PROGRAMFILES\DVD to iPod\"
;the text
DirText "This will install the applications needed to convert a DVD to iPod format."

Section
;files installed
SetOutPath $INSTDIR
File SetupDVDDecrypter_3.5.4.0.exe
File videoraipodconverter_Installer.exe
File about.txt
WriteUninstaller $INSTDIR\Uninstall.exe
CreateDirectory "$SMPROGRAMS\DVD to iPod"
CreateDirectory "$SMPROGRAMS\DVD to iPod\Uninstall.lnk" "$INSTDIR\Uninstall.exe"

SectionEnd

Section "Uninstall"
;files removed
Delete $INSTDIR\SetupDVDDecrypter_3.5.4.0.exe
Delete $INSTDIR\videoraipodconverter_Installer.exe
Delete $INSTDIR\about.txt
Delete $INSTDIR\Uninstall.exe
RMDir $INSTDIR
Delete "$SMPROGRAMS\DVD to iPod\Uninstall.lnk"
RMDir "$SMPROGRAMS\DVD to iPod"

SectionEnd

and i get this error:

InstallDir expects 1 parameters, got 3.
Usage: InstallDir default_install_directory


i am completely new, how do i fix this?


i not sure how i fixed it but it works now and line is still
InstallDir "$PROGRAMFILES\DVD to iPod"