Archive: Newbie Question: HOW DO I GET THE FILES TO INSTALL!?!


Newbie Question: HOW DO I GET THE FILES TO INSTALL!?!
i used the file command and all that but i don't know how to get the compiler to find the files i need to install:igor:


What do you mean? Runtimes?
Before File, using SetOutPath you are telling where to install.


like this :


Section

SetoutPath "$PROGRAMFILES"

file "C:\thefile.ext"
file "C:\thefile2.ext"

SectionEnd


this will install thefile.ext and thefile2.ext to $PROGRAMFILES wich is the variable in my case for "C:\program files".

if you want to see all the variables .. check the manual and search for "variables"

file "C:\thefile2.ext" << That's the link to the file .. on YOUR hard-drive and that you want to let the installer install.

Originally posted by VegetaSan
like this :


Section

SetoutPath "$PROGRAMFILES"

file "C:\thefile.ext"
file "C:\thefile2.ext"

SectionEnd


this will install thefile.ext and thefile2.ext to $PROGRAMFILES wich is the variable in my case for "C:\program files".

if you want to see all the variables .. check the manual and search for "variables"

file "C:\thefile2.ext" << That's the link to the file .. on YOUR hard-drive and that you want to let the installer install.
thx alot

ok, so this should work, right?
<hr>
Section "Skeetch Antivirus" SecDummy

SetOutPath "$INSTDIR"


File /nonfatal myfile.exe
File /nonfatal C:\Documents and Settings\myusername\Desktop\myfolder\myfile.exe

;Store installation folder
WriteRegStr HKCU "Software\something\something" "" $INSTDIR

;Create uninstaller
WriteUninstaller "$INSTDIR\Uninstall.exe"

!insertmacro MUI_STARTMENU_WRITE_BEGIN Application

;Create shortcuts
CreateDirectory "$SMPROGRAMS\$STARTMENU_FOLDER"
CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\Uninstall.lnk" "$INSTDIR\Uninstall.exe"
CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\myshortcut.lnk" "$INSTDIR\myfile.exe"

!insertmacro MUI_STARTMENU_WRITE_END

SectionEnd
<hr>
well... it doesn't. everything works except that exe. it even creates a working uninstaller, but the .exe file i want to install does not extract


duh, now i get it. outfile describes where the files are going, so theres no need to define that with the file command, because the file command just tells the compiler where to copy the files from on my hard drive. got it. thx alot for clearin' that up