The forum

SEFIP 8.3 installer

Author Replies
meloves Saturday 24 May 2008 at 21:36
melovesAnonymous

Well, this is a Brazilian piece of software is widely used by Brazilian accounting offices!

It needs some work, I'm still learning.

Oh, a note! The default should be "Arquivos de programas" not "Program files" if used by brazilian people. Anyway, here's the script with "Program files" instead.

It'll download SEFIP and then install it. ;)

#!/bin/bash
if [ "$PLAYONLINUX" = "" ]
then
exit 0
fi
source "$PLAYONLINUX/lib/sources"
cfg_check

#Présentation
presentation "SEFIP 8.3" "Secretaria da Receita Previdenicária" "http://www.previdenciasocial.gov.br" "Wine-Brazil" "Sefip83" 1 $MAX_STEP

mkdir -p $HOME/.PlayOnLinux/wineprefix/Sefip83
cd $HOME/.PlayOnLinux/wineprefix/Sefip83

select_prefixe "$(pwd)"
[img][img][/img][/img]creer_prefixe 2 $MAX_STEP

Set_OS winxp
fonts_to_prefixe
cd $REPERTOIRE/tmp
telecharger "$LNG_DOWNLOAD_VC" "http://www.previdenciasocial.gov.br/programas/GFIP-SEFIP/SetupSefipV83FULL.exe"
"$LNG_DOWNLOAD" 3 $MAX_STEP
wine SetupSefipV83FULL.exe

export WINEPREFIX="$REPERTOIRE/wineprefix/sefip83"
creer_lanceur "sefip83" "Program files/CAIXA/SEFIP" "Sefip.exe" "sefip83.png" "SEFIP 8.3" SEFIP83
meloves Saturday 24 May 2008 at 23:19
melovesAnonymous

Almost there!

Now, I've implemented a function that lets you download the needed libraries!

#!/bin/bash
if [ "$PLAYONLINUX" = "" ]
then
exit 0
fi
source "$PLAYONLINUX/lib/sources"
cfg_check

#Présentation
presentation "SEFIP 8.3" "Secretaria da Receita Previdenicária" "http://www.previdenciasocial.gov.br" "Wine-Brazil" "Sefip83" 1 $MAX_STEP

mkdir -p $HOME/.PlayOnLinux/wineprefix/Sefip83
cd $HOME/.PlayOnLinux/wineprefix/Sefip83

select_prefixe "$(pwd)"
creer_prefixe 2

Set_OS winxp
fonts_to_prefixe
cd $REPERTOIRE/tmp
message "Este instalador irá fazer o download do SEFIP 8.3.
Informamos que nem a Equipe da PlayOnLinux nem a Caixa Econômica Federal oferecem suporte a este produto quando executado fora do Windows.

Ao prosseguir com a instalação, você concorda que possui uma licença original do Windows XP e de que está ciente de que está usando o programa por sua conta e risco" "Instalação do SEFIP 8.3" 3 7 0
telecharger "$LNG_DOWNLOAD_VC" "http://www.previdenciasocial.gov.br/programas/GFIP-SEFIP/SetupSefipV83FULL.exe"
"$LNG_DOWNLOAD" 4 7
question "Nesta etapa, você irá fazer o download das bibliotecas necessárias para a execução do SEFIP 8.3" "Instalação de componentes" 5 7
telecharger "http://www.bitwiseim.com/download/msvcp60.dll" 6 7
mv msvcp80.dll "$HOME/.PlayOnLinux/wineprefix/Sefip83/drive_c/windows/system32"
wine SetupSefipV83FULL.exe
rm ./tmp/SetupSefipV83FULL.exe