diff --git a/CLIENT_DATA/associate.cmd b/CLIENT_DATA/associate.cmd deleted file mode 100644 index 4ec552c..0000000 --- a/CLIENT_DATA/associate.cmd +++ /dev/null @@ -1,14 +0,0 @@ -@echo off - -SETLOCAL -SET SC=HKLM\SOFTWARE\Classes -SET Extn=tmd tmv doc dot docx docm dotx dotm odt ott sxw xtw rtf -FOR %%j IN (%Extn%) DO ( - REG ADD %SC%\.%%j /VE /D "TextMakerViewer.%%j" /F - REG ADD %SC%\TextMakerViewer.%%j /VE /D "TextMaker Viewer" /F - REG ADD %SC%\TextMakerViewer.%%j\DefaultIcon /VE /D "\"%PROGRAMFILES%\SoftMaker Viewer\TextMaker/TMViewer.exe\"" /F - REG ADD %SC%\TextMakerViewer.%%j\shell\open\command /VE /D "\"%PROGRAMFILES%\SoftMaker Viewer\TextMaker/TMViewer.exe\" \"%%1\"" /F - ) -ENDLOCAL - -exit \ No newline at end of file diff --git a/CLIENT_DATA/delsub32.ins b/CLIENT_DATA/delsub32.ins index 669e720..d650365 100644 --- a/CLIENT_DATA/delsub32.ins +++ b/CLIENT_DATA/delsub32.ins @@ -4,7 +4,7 @@ ; credits: http://www.opsi.org/credits/ -Set $MsiId$ = '{AC76BA86-7AD7-1031-7B44-AA1000000001}' +Set $MsiId$ = '{6CA72632-1857-4859-B57D-4BAC6E53C052}' Set $UninstallProgram$ = $InstallDir$ + "\uninstall.exe" Message "Uninstalling " + $ProductId$ + " ..." @@ -40,12 +40,12 @@ LinkFolder_uninstall [Winbatch_uninstall_msi] -; msiexec /x $MsiId$ /qb! REBOOT=ReallySuppress +msiexec /x $MsiId$ /qb! REBOOT=ReallySuppress [Files_uninstall] ; Example for recursively deleting the installation directory (don't forget the trailing backslash): ; -delete -sf "$InstallDir$\" +; delete -sf "$InstallDir$\" [Registry_uninstall] ; Example of deleting a registry key: @@ -55,8 +55,8 @@ delete -sf "$InstallDir$\" [LinkFolder_uninstall] ; Example of deleting a folder from AllUsers startmenu: ; -set_basefolder common_programs -delete_subfolder SoftMaker +; set_basefolder common_programs +; delete_subfolder $ProductId$ ; ; Example of deleting a shortcut from AllUsers desktop: ; diff --git a/CLIENT_DATA/setup32.ins b/CLIENT_DATA/setup32.ins index e278f11..0162b52 100644 --- a/CLIENT_DATA/setup32.ins +++ b/CLIENT_DATA/setup32.ins @@ -26,9 +26,9 @@ Set $LogDir$ = "%SystemDrive%\tmp" ; therefore please: only lower letters, no umlauts, ; no white space use '-' as a seperator Set $ProductId$ = "tmviewer" -Set $MinimumSpace$ = "150 MB" +Set $MinimumSpace$ = "30 MB" ; the path were we find the product after the installation -Set $InstallDir$ = "%ProgramFiles32Dir%\SoftMaker Viewer\TextMaker\" +Set $InstallDir$ = "%ProgramFiles32Dir%\SoftMaker Viewer\TextMaker" Set $LicenseRequired$ = "false" Set $LicensePool$ = "p_" + $ProductId$ ; ---------------------------------------------------------------- @@ -60,6 +60,10 @@ else comment "Copy files" Files_install /32Bit + comment "Patching Config Files" + Patches_install "$InstallDir$" + "\SoftMaker\Settings\tmv10config.ini" + + comment "Patch Registry" Registry_install /32Bit @@ -83,14 +87,17 @@ endif ; ; === MSI package ======================================================================================= ; You may use the parameter PIDKEY=$Licensekey$ -;msiexec /i "%ScriptPath%\X86FILE" /l* "$LogDir$\$ProductId$.install_log.txt" /qb! ALLUSERS=2 REBOOT=ReallySuppress EULA_ACCEPT=YES +msiexec /i "%ScriptPath%\X86FILE" /l* "$LogDir$\$ProductId$.install_log.txt" /qb! ALLUSERS=2 REBOOT=ReallySuppress ; -"%ScriptPath%\associate.cmd" [Files_install] ; Example of recursively copying some files into the installation directory: ; -copy -s "%ScriptPath%\files\*.*" "$InstallDir$" +; copy -s "%ScriptPath%\files\*.*" "$InstallDir$" + +[Patches_install] +set [Ignore] OEMRegisterSkip=-1 + [Registry_install] ; Example of setting some values of an registry key: @@ -108,17 +115,17 @@ copy -s "%ScriptPath%\files\*.*" "$InstallDir$" ; ; Example of creating an shortcut to the installed exe in AllUsers startmenu: ; -set_basefolder common_programs -set_subfolder SoftMaker - -set_link - name: TextMaker Viewer - target: "$InstallDir$\TMViewer.exe" - parameters: - working_dir: $InstallDir$ - icon_file: "$InstallDir$\TMViewer.exe" - icon_index: 1 -end_link +; set_basefolder common_programs +; set_subfolder $ProductId$ +; +; set_link +; name: $ProductId$ +; target: +; parameters: +; working_dir: $InstallDir$ +; icon_file: +; icon_index: +; end_link ; ; Example of creating an shortcut to the installed exe on AllUsers desktop: ; diff --git a/CLIENT_DATA/uninstall32.ins b/CLIENT_DATA/uninstall32.ins index 96ad559..4805dcd 100644 --- a/CLIENT_DATA/uninstall32.ins +++ b/CLIENT_DATA/uninstall32.ins @@ -21,7 +21,7 @@ Set $LogDir$ = "%SystemDrive%\tmp" ; - Please edit the following values - ; ---------------------------------------------------------------- Set $ProductId$ = "tmviewer" -Set $InstallDir$ = "%ProgramFiles32Dir%\SoftMaker Viewer\TextMaker\" +Set $InstallDir$ = "%ProgramFiles32Dir%\SoftMaker Viewer\TextMaker" Set $LicenseRequired$ = "false" Set $LicensePool$ = "p_" + $ProductId$ ; ---------------------------------------------------------------- diff --git a/SoftMaker-Logo.png_medium.png.sha1sum b/SoftMaker-Logo.png_medium.png.sha1sum new file mode 100644 index 0000000..11cd2fb --- /dev/null +++ b/SoftMaker-Logo.png_medium.png.sha1sum @@ -0,0 +1 @@ +a7b0f9b48a69b2868382fed95c8afbaa764026b9 /usr/portage/distfiles/SoftMaker-Logo.png_medium.png diff --git a/TextMakerViewer2010.msi.sha1sum b/TextMakerViewer2010.msi.sha1sum new file mode 100644 index 0000000..82382ad --- /dev/null +++ b/TextMakerViewer2010.msi.sha1sum @@ -0,0 +1 @@ +e2b4e120689b18ade0ad2939b69043714423c282 /usr/portage/distfiles/TextMakerViewer2010.msi diff --git a/TextMakerViewer2010.wxs b/TextMakerViewer2010.wxs new file mode 100644 index 0000000..cf65b08 --- /dev/null +++ b/TextMakerViewer2010.wxs @@ -0,0 +1,382 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/build.sh b/build.sh index a699c40..2e9a977 100644 --- a/build.sh +++ b/build.sh @@ -1,13 +1,13 @@ #!/bin/sh PN="tmviewer" VERSION="2010" -RELEASE="5" +RELEASE="6" PRIORITY="0" ADVICE="" -TYPE="restrict" +TYPE="public" # all downloads should not have any traling parameters like ?downlaodid=1234 .....(should rewrite in python) -ICON="http://www.24android.com/de/wp-content/uploads/2010/11/softmaker_office.png" -X86="http://www.softmaker.net/down/TMViewerSetup.exe" +ICON="http://www.android-user.de/var/ezflow_site/storage/images/artikel/exklusiv-vorschau-auf-softmaker-office-fuer-android/softmaker-logo.png/25888-1-ger-DE/SoftMaker-Logo.png_medium.png" +X86="http://internal.graz.disconnected-by-peer.at/Orig/SoftMaker/Viewer/HB/2010/TextMakerViewer2010.msi" #AMD64="http://downloads.sourceforge.net/sevenzip/7z920-x64.msi" ICONFILE=${ICON##*/} X86FILE=${X86##*/} @@ -56,9 +56,7 @@ unix2dos $OUT/$PN/CLIENT_DATA/* CHECKSUM=`sha1sum /usr/portage/distfiles/$X86FILE` if [ "$CHECKSUM" = "$SHA1SUM" ] then - #cp /usr/portage/distfiles/$X86FILE $OUT/$PN/CLIENT_DATA - mkdir -p $OUT/$PN/CLIENT_DATA/files - 7z x -o$OUT/$PN/CLIENT_DATA/files /usr/portage/distfiles/$X86FILE + cp /usr/portage/distfiles/$X86FILE $OUT/$PN/CLIENT_DATA else echo "The checksums do not match." exit 1 @@ -70,7 +68,6 @@ unix2dos $OUT/$PN/CLIENT_DATA/* else echo "Downloading file" wget -O /usr/portage/distfiles/$X86FILE $X86 - #plowdown -o /usr/portage/distfiles $X86 exit 1 fi @@ -120,5 +117,5 @@ popd mkdir -p /var/tmp/opsi/upload/$TYPE/ cp -afv $OUT/*.opsi /var/tmp/opsi/upload/$TYPE/ -#rm -rf $OUT +rm -rf $OUT diff --git a/softmaker_office.png.sha1sum b/softmaker_office.png.sha1sum deleted file mode 100644 index 44a8bf7..0000000 --- a/softmaker_office.png.sha1sum +++ /dev/null @@ -1 +0,0 @@ -6bf005b745d773d6e50071d3e3ced780d23bd8e0 /usr/portage/distfiles/softmaker_office.png