Forums

[Script] ElsterFormular

Official german software to file a tax return

Auteur Réponses
weeman Dimanche 29 September 2013 à 11:30
weeman

Here is my script for the official german software to file a tax return "ElsterFormular".

[code language=playonlinux]
#!/bin/bash
# Date : 2013-09-29
# Last revision : 2013-09-29
# Distribution used to test : ubuntu 13.10 (64bit)
# Author: Michael Weimann <mail@michael-weimann.eu>
# Wine version used: 1.6

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"

TITLE="ElsterFormular"
PREFIX="ElsterFormular"
WINEVERSION="1.6"

POL_SetupWindow_Init
 
POL_SetupWindow_presentation "$TITLE" "Mozilla" "https://www.elster.de/elfo_home.php" "Michael Weimann" "ElsterFormular"

# create prefix
POL_System_SetArch "x86"
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WINEVERSION"
 
# install dependencies
POL_Call POL_Install_vcrun2008

# dll overrides
POL_Wine_OverrideDLL "native,builtin" "msvcp90"

POL_System_TmpCreate "$PREFIX"

POL_SetupWindow_InstallMethod "LOCAL"
 
if [ "$INSTALL_METHOD" = "LOCAL" ]
then
    POL_SetupWindow_question "$(eval_gettext 'You want to open $TITLE download page in your browser?')" "$TITLE"
    if [ "$APP_ANSWER" = "TRUE" ]
    then
        POL_Browser "https://www.elster.de/elfo_down.php"
    fi
    POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
 
    POL_Wine start /unix "$APP_ANSWER"
    POL_Wine_WaitExit "$TITLE"
fi

POL_System_TmpDelete

# create shortcut for the ElsterFormular executable
POL_Shortcut "pica.exe" "$TITLE"
 
POL_SetupWindow_Close
exit
[/code]

22x22


44x44

top


petch Dimanche 29 September 2013 à 11:54
petch

Hi weeman,
Your script look ok, the only slightly strange things are probably remnants of a support for automatic download?
- unused temporary directory, you could drop POL_System_Tmp{Create,Delete}
- POL_SetupWindow_InstallMethod with just one method, doesn't really make sense
- same for test on $INSTALL_METHOD, of course

Usually start /unix is unnecessary, and has a known bad side effect; So if it works without it, better remove it.

That's about it for me...
weeman Dimanche 29 September 2013 à 13:20
weeman

Hi petch,

I updated the script according to your remarks.

At first I considered an automatically download. But I'm not sure if this would be legal because the user must accept a license before he can start the download.

Here's the new script:
#!/bin/bash
# Date : 2013-09-29
# Last revision : 2013-09-29
# Distribution used to test : ubuntu 13.10 (64bit)
# Author: Michael Weimann 
# Wine version used: 1.6

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"

TITLE="ElsterFormular"
PREFIX="ElsterFormular"
WINEVERSION="1.6"

POL_SetupWindow_Init

POL_SetupWindow_presentation "$TITLE" "ElsterFormular" "https://www.elster.de/elfo_home.php" "Michael Weimann" "ElsterFormular"

# create prefix
POL_System_SetArch "x86"
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WINEVERSION"

# install dependencies
POL_Call POL_Install_vcrun2008

# dll overrides
POL_Wine_OverrideDLL "native,builtin" "msvcp90"

POL_SetupWindow_question "$(eval_gettext 'You want to open $TITLE download page in your browser?')" "$TITLE"
if [ "$APP_ANSWER" = "TRUE" ]
then
    POL_Browser "https://www.elster.de/elfo_down.php"
fi
POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"

POL_Wine "$APP_ANSWER"
POL_Wine_WaitExit "$TITLE"

# create shortcut for the ElsterFormular executable
POL_Shortcut "pica.exe" "$TITLE"

POL_SetupWindow_Close
exit

Edité par weeman

petch Dimanche 29 September 2013 à 14:24
petch

Yes, I guessed something like that.

Anyway, looking at the new version of the script I missed that you didn't enable integrated debugger support: just add a POL_Debug_Init statement right after POL_SetupWindow_Init
With that change I hope I'm not forgetting anything, and you can submit the script for inclusion into the repository :)
weeman Dimanche 29 September 2013 à 15:12
weeman

With debugger support:

#!/bin/bash
# Date : 2013-09-29
# Last revision : 2013-09-29
# Distribution used to test : ubuntu 13.10 (64bit)
# Author: Michael Weimann
# Wine version used: 1.6
 
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="ElsterFormular"
PREFIX="ElsterFormular"
WINEVERSION="1.6"
 
POL_SetupWindow_Init
POL_Debug_Init
 
POL_SetupWindow_presentation "$TITLE" "ElsterFormular" "https://www.elster.de/elfo_home.php" "Michael Weimann" "ElsterFormular"
 
# create prefix
POL_System_SetArch "x86"
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WINEVERSION"
 
# install dependencies
POL_Call POL_Install_vcrun2008
 
# dll overrides
POL_Wine_OverrideDLL "native,builtin" "msvcp90"
 
POL_SetupWindow_question "$(eval_gettext 'You want to open $TITLE download page in your browser?')" "$TITLE"
if [ "$APP_ANSWER" = "TRUE" ]
then
    POL_Browser "https://www.elster.de/elfo_down.php"
fi
POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
 
POL_Wine "$APP_ANSWER"
POL_Wine_WaitExit "$TITLE"
 
# create shortcut for the ElsterFormular executable
POL_Shortcut "pica.exe" "$TITLE"
 
POL_SetupWindow_Close
exit


I'll submit the script soon.
JaxxBee Jeudi 7 Aoüt 2014 à 16:03
JaxxBeeAnonymous

Hallo Michael

is there any possibility to print in Elster the documents or save as pdf ?

 

Greetings

JB

This site allows content generated by members, and we promptly remove any content that infringes copyright according to our Terms of Service. To report copyright infringement, please send a notice to dmca-notice@playonlinux.com