Old 24th August 2008, 05:51   #1
miningold
Junior Member
 
Join Date: Aug 2008
Posts: 2
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?
miningold is offline   Reply With Quote
Old 24th August 2008, 17:47   #2
miningold
Junior Member
 
Join Date: Aug 2008
Posts: 2
i not sure how i fixed it but it works now and line is still
InstallDir "$PROGRAMFILES\DVD to iPod"
miningold is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump