| 1 | Name "writefailure.exe"
|
|---|
| 2 |
|
|---|
| 3 | ; The file to write
|
|---|
| 4 | OutFile ${output}
|
|---|
| 5 |
|
|---|
| 6 | ; The default installation directory
|
|---|
| 7 | InstallDir $DESKTOP\bigfile
|
|---|
| 8 |
|
|---|
| 9 | ; The text to prompt the user to enter a directory
|
|---|
| 10 | DirText "Choose where to install bigfile:"
|
|---|
| 11 |
|
|---|
| 12 | ; The stuff to install
|
|---|
| 13 | Section "bigfile"
|
|---|
| 14 |
|
|---|
| 15 | SectionIn RO
|
|---|
| 16 |
|
|---|
| 17 | ; Set output path to the installation directory.
|
|---|
| 18 | SetOutPath $INSTDIR
|
|---|
| 19 | SetShellVarContext "all"
|
|---|
| 20 |
|
|---|
| 21 | ;Install these files, overwrite existing.
|
|---|
| 22 | SetOverwrite on
|
|---|
| 23 |
|
|---|
| 24 | RMDir /r $DESKTOP\bigfile
|
|---|
| 25 |
|
|---|
| 26 | File ${input}
|
|---|
| 27 | SectionEnd
|
|---|