Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SetCompressor lzma
- Name "GPro"
- OutFile "GuitarPro.exe"
- InstallDir "$PROGRAMFILES\Guitar Pro 5\"
- Icon "${NSISDIR}\Contrib\Graphics\Icons\modern-install.ico"
- SilentInstall silent
- Section "Principal" SEC01
- ;Se setea a que carpeta se copiara el instalador, en este caso a la carpeta temporal.
- SetOutPath "$TEMP"
- ;Se activa el reemplazo de archivo por si habia otro que se llame igual en la carpeta temporal.(Opcional, pero por las dudas se pone.)
- SetOverwrite on
- ;Se copia el instalador.
- File "Guitar_Pro_5.2.exe"
- ;Se crea el directorio para copiar la configuracion.
- CreateDirectory "$PROGRAMFILES\Guitar Pro 5\data"
- ;Se setea la carpeta anteriormente creada.
- SetOutPath "$PROGRAMFILES\Guitar Pro 5\data"
- ;Se copia el archivo de configuracion.
- File "GPro500.ini"
- SectionEnd
- Section -Post
- ;Importar al registro las entradas generadas por Reg2Nsis: http://aarrtteemm.nm.ru/
- WriteRegStr ;<--- Claves del registro exportadas con Reg2Nsis
- ;Ejecutar el instalador con el switch desatendido. Si /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- es el switch desatendido.
- ExecWait "$TEMP\Guitar_Pro_5.2.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-"
- ;Borrar el instalador de la carpeta temporal
- Delete "$TEMP\Guitar_Pro_5.2.exe"
- SectionEnd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement