userspace:origin
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| userspace:origin [2013/12/13 09:01] – tobias | userspace:origin [2021/08/23 10:37] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | \\ | ||
| - | **This is a master copy. Click on <edit this page> and copy the contents under " | ||
| - | |||
| ====== Origin Ver. 9.1 MSI Installer ====== | ====== Origin Ver. 9.1 MSI Installer ====== | ||
| - | Tested with opsi X.Y.Z\\ | + | |
| - | requiredWinstVersion >= W.X.Y.Z\\ | + | |
| Files can be downloaded at Download here: [[http:// | Files can be downloaded at Download here: [[http:// | ||
| - | By < | + | By --- // |
| Tree:\\ | Tree:\\ | ||
| Line 58: | Line 54: | ||
| ==== What you need ==== | ==== What you need ==== | ||
| *the MSI Installer from Additive (64bit + 32bit) | *the MSI Installer from Additive (64bit + 32bit) | ||
| - | *the MSI files from VISUAL C++ 2012 REDISTRIBUTABLE [[http:// | + | *the MSI files from VISUAL C++ 2012 REDISTRIBUTABLE |
| *the MSI files from VISUAL C++ 2008 REDISTRIBUTABLE (64bit + 32bit) | *the MSI files from VISUAL C++ 2008 REDISTRIBUTABLE (64bit + 32bit) | ||
| - | [[nix|Change the following headlines to the names of your scripts]] | ||
| ==== additional_actions.opsiinc ==== | ==== additional_actions.opsiinc ==== | ||
| <code winst> | <code winst> | ||
| - | click on "edit this page" | + | ; Insert additional Sektions (only the section name, not the section) |
| + | if ($INST_SystemType$ = "x86 System") | ||
| + | Message " | ||
| + | files_lic_x86 | ||
| + | Message " | ||
| + | winbatch_vcredist_x86 | ||
| + | |||
| + | else | ||
| + | Message " | ||
| + | files_lic_x64 | ||
| + | Message " | ||
| + | winbatch_vcredist_x64 | ||
| + | |||
| + | endif | ||
| </ | </ | ||
| + | |||
| ==== additional_sections.opsiinc ==== | ==== additional_sections.opsiinc ==== | ||
| <code winst> | <code winst> | ||
| - | click on "edit this page" | + | ; Insert the section, not the section name !!! |
| - | </ | + | [files_lic_x86] |
| + | copy -s "%ScriptPath%\files\use_server.lic" | ||
| + | |||
| + | [files_lic_x64] | ||
| + | copy -s " | ||
| + | |||
| + | [winbatch_vcredist_x86] | ||
| + | msiexec -i %scriptpath%\files\MSI\vcredist_x86-2008_x86_x64\vc_red.msi -passive | ||
| + | msiexec -i %scriptpath%\files\MSI\vcredist_x86-2012_x86_x64\vcRuntimeMinimum_x86\vc_runtimeMinimum_x86.msi -passive ADDEPLOY=1 | ||
| + | msiexec -i %scriptpath%\files\MSI\vcredist_x86-2012_x86_x64\vcRuntimeAdditional_x86\vc_runtimeAdditional_x86.msi -passive ADDEPLOY=1 | ||
| + | |||
| + | |||
| + | [winbatch_vcredist_x64] | ||
| + | msiexec -i %scriptpath%\files\MSI\vcreddist_x64_2008_x64\vc_red.msi -passive | ||
| + | msiexec -i %scriptpath%\files\MSI\vcredist_x86-2008_x86_x64\vc_red.msi -passive | ||
| + | |||
| + | msiexec -i %scriptpath%\files\MSI\vcredist_x64-2012_x64\vcRuntimeMinimum_amd64\vc_runtimeMinimum_x64.msi -passive ADDEPLOY=1 | ||
| + | msiexec -i %scriptpath%\files\MSI\vcredist_x64-2012_x64\vcRuntimeAdditional_amd64\vc_runtimeAdditional_x64.msi -passive ADDEPLOY=1 | ||
| + | |||
| + | msiexec -i %scriptpath%\files\MSI\vcredist_x86-2012_x86_x64\vcRuntimeMinimum_x86\vc_runtimeMinimum_x86.msi -passive ADDEPLOY=1 | ||
| + | msiexec -i %scriptpath%\files\MSI\vcredist_x86-2012_x86_x64\vcRuntimeAdditional_x86\vc_runtimeAdditional_x86.msi -passive ADDEPLOY=1</ | ||
| ==== config.opsiinc ==== | ==== config.opsiinc ==== | ||
| <code winst> | <code winst> | ||
| - | click on "edit this page" to see the complete source. | + | ; ---------------------------------------------------------------- |
| + | ; - | ||
| + | ; ---------------------------------------------------------------- | ||
| + | |||
| + | ; | ||
| + | ; therefore please: only lower letters, no umlauts, | ||
| + | ; no white space use ' | ||
| + | |||
| + | Set $ProductId$ | ||
| + | Set $MinimumSpace$ | ||
| + | set $setupcommand32$ | ||
| + | set $setupcommand64$ | ||
| + | |||
| + | Set $INST_SystemType$ | ||
| + | set $INST_architecture$ = GetProductProperty(" | ||
| + | Set $LogDir$ | ||
| + | |||
| + | |||
| + | |||
| + | ; ---------------------------------------------------------------- | ||
| + | ; - Currently installing MSIs | ||
| + | ; ---------------------------------------------------------------- | ||
| + | |||
| + | set $installed_MSI_32$ | ||
| + | |||
| + | set $installed_MSI_64$ | ||
| + | |||
| + | set $installed_MSI_Both$ | ||
| + | |||
| + | |||
| + | |||
| + | ; ---------------------------------------------------------------- | ||
| + | ; - MSIID MAPP / Aktuelle MSIIDs | ||
| + | ; ---------------------------------------------------------------- | ||
| + | ;32 | ||
| + | ; - | ||
| + | |||
| + | ;64 | ||
| + | ; | ||
| + | ; | ||
| + | ; | ||
| + | ; | ||
| + | |||
| + | ;Both | ||
| + | ; | ||
| + | ; | ||
| + | ; | ||
| + | ; | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | ; ---------------------------------------------------------------- | ||
| + | ; - MSIs from outdated packages | ||
| + | ; ---------------------------------------------------------------- | ||
| + | set $MSI_32$ | ||
| + | |||
| + | set $MSI_64$ | ||
| + | |||
| + | set $MSI_Both$ | ||
| + | |||
| + | |||
| + | |||
| + | ; ---------------------------------------------------------------- | ||
| + | ; - Additional Configuration | ||
| + | ; ---------------------------------------------------------------- | ||
| + | set $checktask$ | ||
| + | set $killtask$ | ||
| + | set $SearchProcess$ | ||
| + | |||
| + | |||
| </ | </ | ||
| ==== delsub.ins ==== | ==== delsub.ins ==== | ||
| <code winst> | <code winst> | ||
| - | ;this is my vbs-script... | + | ; ---------------------------------------------------------------- |
| - | echo click on "edit this page" to see the complete | + | ; - 32Bit - |
| + | ; ---------------------------------------------------------------- | ||
| + | |||
| + | |||
| + | |||
| + | if ($INST_SystemType$ = "x86 System" | ||
| + | Message " | ||
| + | |||
| + | |||
| + | if not (GetRegistryStringValue32("[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\" | ||
| + | comment "MSI id " + $ID$ + " found in registry, starting msiexec | ||
| + | Winbatch_uninstall_msi | ||
| + | sub_check_exitcode | ||
| + | endif | ||
| + | endif | ||
| + | |||
| + | |||
| + | |||
| + | ; ---------------------------------------------------------------- | ||
| + | ; - 64Bit - | ||
| + | ; ---------------------------------------------------------------- | ||
| + | |||
| + | |||
| + | |||
| + | if ($INST_SystemType$ = "64 Bit System" | ||
| + | Message " | ||
| + | |||
| + | |||
| + | if not (GetRegistryStringValue64(" | ||
| + | comment "MSI id " + $ID$ + " found in registry, starting msiexec to uninstall" | ||
| + | Winbatch_uninstall_msi | ||
| + | sub_check_exitcode | ||
| + | endif | ||
| + | endif | ||
| + | |||
| + | |||
| + | ; ---------------------------------------------------------------- | ||
| + | ; - Both - | ||
| + | ; ---------------------------------------------------------------- | ||
| + | |||
| + | Message " | ||
| + | |||
| + | |||
| + | if not (GetRegistryStringValue(" | ||
| + | comment "MSI id " + $ID$ + " found in registry, starting msiexec to uninstall" | ||
| + | Winbatch_uninstall_msi | ||
| + | sub_check_exitcode | ||
| + | endif | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | [Winbatch_uninstall_msi] | ||
| + | msiexec /x $ID$ /qb! REBOOT=ReallySuppress | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | [Sub_check_exitcode] | ||
| + | comment "Test for installation success via exit code" | ||
| + | set $ExitCode$ = getLastExitCode | ||
| + | ; informations to exit codes see | ||
| + | ; http:// | ||
| + | ; http:// | ||
| + | if ($ExitCode$ = " | ||
| + | comment "Looks good: setup program gives exitcode zero" | ||
| + | else | ||
| + | comment "Setup program gives a exitcode unequal zero: " + $ExitCode$ | ||
| + | if ($ExitCode$ = " | ||
| + | comment " | ||
| + | comment " | ||
| + | else | ||
| + | if ($ExitCode$ = " | ||
| + | comment "looks good: setup program gives exitcode 1641" | ||
| + | comment " | ||
| + | else | ||
| + | if ($ExitCode$ = " | ||
| + | comment "looks good: setup program gives exitcode 3010" | ||
| + | comment " | ||
| + | else | ||
| + | logError " | ||
| + | isFatalError | ||
| + | endif | ||
| + | endif | ||
| + | endif | ||
| + | endif | ||
| </ | </ | ||
| ==== setup.ins ==== | ==== setup.ins ==== | ||
| <code winst> | <code winst> | ||
| - | ;this is my vbs-script... | + | [Actions] |
| - | echo click on "edit this page" to see the complete | + | |
| + | |||
| + | SetLogLevel=6 | ||
| + | |||
| + | requiredWinstVersion >= " | ||
| + | |||
| + | ; Include configuration | ||
| + | include_insert " | ||
| + | include_insert " | ||
| + | |||
| + | |||
| + | ; ---------------------------------------------------------------- | ||
| + | ; - PreCheck & Settings | ||
| + | ; ---------------------------------------------------------------- | ||
| + | |||
| + | |||
| + | if not(HasMinimumSpace (" | ||
| + | LogError "Not enough space on %SystemDrive%, | ||
| + | isFatalError | ||
| + | ; Stop process and set installation status to failed | ||
| + | else | ||
| + | comment "Show product picture" | ||
| + | ShowBitmap " | ||
| + | endif | ||
| + | |||
| + | |||
| + | if ( $checktask$ | ||
| + | for %s% in $SearchProcess$ do sub_checktask | ||
| + | else | ||
| + | comment " | ||
| + | endif | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | ; ---------------------------------------------------------------- | ||
| + | ; - Remove Aktionen | ||
| + | ; ---------------------------------------------------------------- | ||
| + | |||
| + | comment " | ||
| + | |||
| + | if ($INST_SystemType$ = "x86 System" | ||
| + | for %s% in $MSI_32$ do sub_open_dellsub | ||
| + | |||
| + | else | ||
| + | |||
| + | for %s% in $MSI_64$ do sub_open_dellsub | ||
| + | |||
| + | endif | ||
| + | |||
| + | for %s% in $MSI_Both$ do sub_open_dellsub | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | ; ---------------------------------------------------------------- | ||
| + | ; - Setup Aktionen | ||
| + | ; ---------------------------------------------------------------- | ||
| + | |||
| + | if ($INST_SystemType$ = "x86 System" | ||
| + | Message " | ||
| + | comment "Start setup program" | ||
| + | Winbatch_install_32 | ||
| + | Sub_check_exitcode | ||
| + | endif | ||
| + | |||
| + | |||
| + | if ($INST_SystemType$ = "64 Bit System" | ||
| + | Message " | ||
| + | comment "Start setup program" | ||
| + | Winbatch_install_64 | ||
| + | Sub_check_exitcode | ||
| + | endif | ||
| + | |||
| + | include_append " | ||
| + | include_insert " | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | ; ---------------------------------------------------------------- | ||
| + | ; - Sektionen | ||
| + | ; ---------------------------------------------------------------- | ||
| + | |||
| + | |||
| + | |||
| + | [Winbatch_install_32] | ||
| + | |||
| + | $setupcommand32$ | ||
| + | |||
| + | |||
| + | |||
| + | [Winbatch_install_64] | ||
| + | |||
| + | $setupcommand64$ | ||
| + | |||
| + | |||
| + | [sub_open_dellsub] | ||
| + | set $ID$ = " | ||
| + | Sub " | ||
| + | |||
| + | |||
| + | [sub_checktask] | ||
| + | set $currentchecktask$ = " | ||
| + | set $tasklist$ = getOutStreamFromSection(' | ||
| + | set $processVAR$ = unquote(takeString(1, | ||
| + | |||
| + | if ($processVAR$ = $currentchecktask$) | ||
| + | Message = " | ||
| + | if ($killtask$ = " | ||
| + | killtask $currentchecktask$ | ||
| + | else | ||
| + | message " | ||
| + | |||
| + | endif | ||
| + | if ($fatalerror$ = " | ||
| + | pause | ||
| + | isFatalError | ||
| + | |||
| + | else | ||
| + | message " | ||
| + | endif | ||
| + | |||
| + | message | ||
| + | endif | ||
| + | |||
| + | |||
| + | [DosInAnIcon_checkprocess] | ||
| + | @echo off | ||
| + | TASKLIST /FI "IMAGENAME eq $subvar$" | ||
| + | |||
| + | |||
| + | [Sub_check_exitcode] | ||
| + | comment "Test for installation success via exit code" | ||
| + | set $ExitCode$ = getLastExitCode | ||
| + | ; informations | ||
| + | ; http:// | ||
| + | ; http:// | ||
| + | if ($ExitCode$ = " | ||
| + | comment "Looks good: setup program gives exitcode zero" | ||
| + | else | ||
| + | comment "Setup program gives a exitcode unequal zero: " + $ExitCode$ | ||
| + | if ($ExitCode$ = " | ||
| + | comment " | ||
| + | comment " | ||
| + | else | ||
| + | if ($ExitCode$ = " | ||
| + | comment "looks good: setup program gives exitcode 1641" | ||
| + | comment " | ||
| + | else | ||
| + | if ($ExitCode$ = " | ||
| + | comment "looks good: setup program gives exitcode 3010" | ||
| + | comment " | ||
| + | else | ||
| + | logError " | ||
| + | isFatalError | ||
| + | endif | ||
| + | endif | ||
| + | endif | ||
| + | endif | ||
| </ | </ | ||
| ==== uninstall.ins ==== | ==== uninstall.ins ==== | ||
| <code winst> | <code winst> | ||
| - | ;this is my vbs-script... | + | [Actions] |
| - | echo click on "edit this page" | + | |
| + | SetLogLevel=6 | ||
| + | |||
| + | requiredWinstVersion >= "4.10.8.6" | ||
| + | |||
| + | include_insert | ||
| + | include_insert " | ||
| + | |||
| + | comment "Show product picture" | ||
| + | ShowBitmap " | ||
| + | |||
| + | |||
| + | |||
| + | comment " | ||
| + | |||
| + | if ($INST_SystemType$ = "x86 System" | ||
| + | for %s% in $installed_MSI_32$ do sub_open_dellsub | ||
| + | |||
| + | else | ||
| + | |||
| + | for %s% in $installed_MSI_64$ do sub_open_dellsub | ||
| + | |||
| + | endif | ||
| + | |||
| + | for %s% in $installed_MSI_Both$ do sub_open_dellsub | ||
| + | |||
| + | |||
| + | |||
| + | [sub_open_dellsub] | ||
| + | set $ID$ = " | ||
| + | Sub " | ||
| </ | </ | ||
| ==== vars.ins ==== | ==== vars.ins ==== | ||
| <code winst> | <code winst> | ||
| - | ;this is my vbs-script... | + | |
| - | echo click on "edit this page" to see the complete source. | + | ; ---------------------------------------------------------------- |
| + | ; - DefVar / DefString | ||
| + | ; ---------------------------------------------------------------- | ||
| + | |||
| + | DefVar $MsiId32$ | ||
| + | DefVar $MsiId64$ | ||
| + | DefVar $LogDir$ | ||
| + | DefVar $ProductId$ | ||
| + | DefVar $MinimumSpace$ | ||
| + | DefVar $InstallDir32$ | ||
| + | DefVar $InstallDir64$ | ||
| + | DefVar $ExitCode$ | ||
| + | DefVar $INST_SystemType$ | ||
| + | DefVar $INST_architecture$ | ||
| + | DefVar $setupcommand32$ | ||
| + | DefVar $setupcommand64$ | ||
| + | DefVar $ID$ | ||
| + | DefVar $subvar$ | ||
| + | DefVar $killtask$ | ||
| + | DefVar $checktask$ | ||
| + | |||
| + | |||
| + | DefStringList $MSI_32$ | ||
| + | DefStringList $MSI_64$ | ||
| + | DefStringList $MSI_Both$ | ||
| + | DefStringlist $installed_MSI_Both$ | ||
| + | DefStringList $installed_MSI_32$ | ||
| + | DefStringList $installed_MSI_64$ | ||
| + | DefStringList $processlist$ | ||
| + | DefStringList $process$ | ||
| + | DefStringList $process_unquote$ | ||
| + | DefStringList $SearchProcess$ | ||
| + | DefStringList $currentchecktask$ | ||
| + | DefStringList $processVAR$ | ||
| + | |||
| </ | </ | ||
userspace/origin.1386921661.txt.gz · Last modified: (external edit)
