userspace:dynamics_navision_2009_client
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| userspace:dynamics_navision_2009_client [2012/10/19 21:49] – MatCris | userspace:dynamics_navision_2009_client [2021/08/23 10:37] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Dynamics Navision 2009 Client ====== | + | ====== Dynamics Navision 2009 Client |
| **Versions**\\ | **Versions**\\ | ||
| - | By // | + | By // |
| Tested with opsi 4.0.1.36\\ | Tested with opsi 4.0.1.36\\ | ||
| requiredWinstVersion >= 4.10.8.6 | requiredWinstVersion >= 4.10.8.6 | ||
| - | By // | + | By // |
| - | Das Setup-File wird im ScriptPath in einem Unterverzeichnis " | + | Das Setup-File wird im ScriptPath in einem Unterverzeichnis " |
| - | Das Verzeichnis | + | Das Verzeichnis |
| - | Um die Automatisierung zu ermöglichen, | + | Tree: |
| + | < | ||
| + | ├ navision-2009-classicclient.png | ||
| + | ├ /setup | ||
| + | │ └ / | ||
| + | │ └ setup.ins | ||
| + | ├ uninstall.ins | ||
| + | └ delsub.ins | ||
| + | </ | ||
| - | 1. „Setup.exe“ ausführen | ||
| - | 2. „weiter“ klicken und "Ich akzeptiere“ klicken | ||
| - | 3. „Wählen Sie die Installationsoption“ und „Benutzerdefinierte Komponenten“ | ||
| - | 4. Wählen Sie die Clients aus (RTC oder Classic) und geben Sie den Zieldordner an | ||
| - | 5. Beim RTC den DB-Server-Parameter, | ||
| - | 6. Und „Speichern der Konfiguration“ und Xml-Datei abspeichern | ||
| - | Die Konfig-dAtei heißt bei mir: dynamics_navision_2009_clientconfig.xml | + | ==== setup.ins ==== |
| - | + | ||
| - | + | ||
| - | Tree:\\ | + | |
| - | delsub32.ins\\ | + | |
| - | navision2009.jpeg\\ | + | |
| - | setup\Nav2009R2\...\\ | + | |
| - | setup\dynamics_navision_2009_clientconfig.xml\\ | + | |
| - | setup32.ins\\ | + | |
| - | uninstall32.ins | + | |
| - | + | ||
| - | ==== setup32.ins ==== | + | |
| <code winst> | <code winst> | ||
| [Actions] | [Actions] | ||
| - | requiredWinstVersion >= " | ||
| - | |||
| - | DefVar $UninstallProgram32$ | ||
| DefVar $LogDir$ | DefVar $LogDir$ | ||
| - | DefVar $ProductId$ | + | Set $LogDir$ = " |
| + | DefVar $ProductId$ | ||
| DefVar $MinimumSpace$ | DefVar $MinimumSpace$ | ||
| - | DefVar $InstallDir32$ | + | DefVar $InstallDir$ |
| - | DefVar $Setupfile$ | + | |
| - | DefVar $Logo$ | + | |
| DefVar $ExitCode$ | DefVar $ExitCode$ | ||
| - | DefVar $INST_SystemType$ | + | DefVar $LicenseRequired$ |
| - | DefVar $INST_architecture$ | + | DefVar $LicenseKey$ |
| + | DefVar $LicensePool$ | ||
| - | Set $INST_SystemType$ = GetSystemType | + | ; ---------------------------------------------------------------- |
| - | set $INST_architecture$ = GetProductProperty(" | + | ; - Please edit the following values |
| - | + | ; ---------------------------------------------------------------- | |
| - | Set $LogDir$ = " | + | Set $ProductId$ |
| - | Set $ProductId$ | + | |
| Set $MinimumSpace$ | Set $MinimumSpace$ | ||
| - | Set $InstallDir32$ = "%ProgramFiles32Dir%\Microsoft Dynamics NAV" | + | Set $InstallDir$ = "%ProgramFilesDir%\Microsoft Dynamics NAV" |
| - | Set $Setupfile$ = "setup.exe" | + | Set $LicenseRequired$ = "false" |
| - | Set $Logo$ = "navision2009.jpeg" | + | Set $LicensePool$ = "p_" |
| ; ---------------------------------------------------------------- | ; ---------------------------------------------------------------- | ||
| Line 67: | Line 54: | ||
| else | else | ||
| comment "Show product picture" | comment "Show product picture" | ||
| - | ShowBitmap " | + | ShowBitmap " |
| - | + | ||
| - | if FileExists(" | + | if FileExists(" |
| comment "Start uninstall sub section" | comment "Start uninstall sub section" | ||
| - | Sub " | + | Sub " |
| endif | endif | ||
| + | Message " | ||
| - | comment " | + | if not ($LicenseRequired$ = "false") |
| - | + | comment | |
| - | if (($INST_SystemType$ = "x86 System" | + | Sub_get_licensekey |
| - | Message | + | |
| - | + | ||
| - | Message " | + | |
| - | Winbatch_install_32 | + | |
| - | Sub_check_exitcode | + | |
| endif | endif | ||
| - | ExitWindows /Reboot | + | |
| + | comment "Start setup program" | ||
| + | Winbatch_install | ||
| + | Sub_check_exitcode | ||
| endif | endif | ||
| - | [Winbatch_install_32] | ||
| - | %ScriptPath%\setup\Nav2009R2\$Setupfile$ /quiet /config %ScriptPath%\setup\dynamics_navision_2009_clientconfig.xml | ||
| - | ;/log ' | ||
| + | [Winbatch_install] | ||
| + | msiexec /i " | ||
| + | |||
| + | |||
| + | |||
| + | [Sub_get_licensekey] | ||
| + | if opsiLicenseManagementEnabled | ||
| + | comment " | ||
| + | |||
| + | comment " | ||
| + | Set $LicenseKey$ = demandLicenseKey ($LicensePool$) | ||
| + | ; If there is an assignment of exactly one licensepool to the product the following call is possible: | ||
| + | ; Set $LicenseKey$ = demandLicenseKey ("", | ||
| + | ; | ||
| + | ; If there is an assignment of a license pool to a windows software id, it is possible to use: | ||
| + | ; DefVar $WindowsSoftwareId$ | ||
| + | ; $WindowsSoftwareId$ = " | ||
| + | ; Set $LicenseKey$ = demandLicenseKey ("", | ||
| + | |||
| + | DefVar $ServiceErrorClass$ | ||
| + | set $ServiceErrorClass$ = getLastServiceErrorClass | ||
| + | comment "Error class: " + $ServiceErrorClass$ | ||
| + | |||
| + | if $ServiceErrorClass$ = " | ||
| + | comment " | ||
| + | else | ||
| + | if $ServiceErrorClass$ = " | ||
| + | LogError " | ||
| + | LogError getLastServiceErrorMessage | ||
| + | ExitWindows /Reboot | ||
| + | isFatalError | ||
| + | else | ||
| + | if $ServiceErrorClass$ = " | ||
| + | LogError " | ||
| + | ExitWindows /Reboot | ||
| + | isFatalError | ||
| + | endif | ||
| + | endif | ||
| + | endif | ||
| + | else | ||
| + | LogError " | ||
| + | isFatalError | ||
| + | endif | ||
| Line 124: | Line 150: | ||
| </ | </ | ||
| - | ==== delsub32.ins ==== | + | |
| + | |||
| + | ==== delsub.ins ==== | ||
| <code winst> | <code winst> | ||
| - | Set $UninstallProgram32$ = " | + | DefVar |
| + | Set $MsiId$ = ' | ||
| - | if (($INST_SystemType$ = "x86 System" | + | Message " |
| - | Message " | + | |
| - | if FileExists($UninstallProgram32$) | + | if not (GetRegistryStringValue(" |
| - | comment "Uninstall program | + | comment "MSI id " + $MsiId$ + " |
| - | Winbatch_uninstall_32 | + | Winbatch_uninstall_msi |
| - | sub_check_exitcode | + | sub_check_exitcode |
| - | endif | + | |
| endif | endif | ||
| - | [Winbatch_uninstall_32] | + | comment " |
| - | "$UninstallProgram32$" | + | Files_uninstall |
| + | |||
| + | |||
| + | |||
| + | [Winbatch_uninstall_msi] | ||
| + | msiexec /x $MsiId$ /qb! REBOOT=ReallySuppress | ||
| + | |||
| + | |||
| + | |||
| + | [Files_uninstall] | ||
| + | delete -sf "$InstallDir$\" | ||
| Line 172: | Line 210: | ||
| </ | </ | ||
| - | ==== uninstall32.ins ==== | + | |
| + | |||
| + | ==== uninstall.ins ==== | ||
| <code winst> | <code winst> | ||
| - | [Actions] | + | [Initial] |
| - | requiredWinstVersion >= "4.10.8.6" | + | requiredWinstVersion >= " |
| + | LogLevel=2 ; | ||
| + | ExitOnError=false ; | ||
| + | ScriptErrorMessages=on ; | ||
| + | TraceMode=off ; | ||
| + | StayOnTop=false | ||
| - | DefVar $UninstallProgram32$ | + | [Aktionen] |
| + | DefVar $TEMP$ | ||
| + | Set $TEMP$ = EnvVar(" | ||
| DefVar $LogDir$ | DefVar $LogDir$ | ||
| + | Set $LogDir$ = " | ||
| DefVar $ExitCode$ | DefVar $ExitCode$ | ||
| DefVar $ProductId$ | DefVar $ProductId$ | ||
| - | DefVar $InstallDir32$ | + | DefVar $InstallDir$ |
| - | DefVar $Setupfile$ | + | DefVar $LicenseRequired$ |
| - | DefVar $Logo$ | + | DefVar $LicensePool$ |
| - | DefVar $INST_SystemType$ | + | |
| - | DefVar $INST_architecture$ | + | |
| - | Set $INST_SystemType$ = GetSystemType | + | ; ---------------------------------------------------------------- |
| - | set $INST_architecture$ = GetProductProperty(" | + | ; - Please edit the following values |
| - | + | ; ---------------------------------------------------------------- | |
| - | Set $LogDir$ = " | + | Set $ProductId$ |
| - | Set $ProductId$ | + | Set $InstallDir$ = "%ProgramFilesDir%\Microsoft Dynamics NAV" |
| - | Set $InstallDir32$ = "%ProgramFiles32Dir%\Microsoft Dynamics NAV" | + | Set $LicenseRequired$ = "false" |
| - | Set $Setupfile$ = "setup.exe" | + | Set $LicensePool$ |
| - | Set $Logo$ = "navision2009.jpeg" | + | |
| ; ---------------------------------------------------------------- | ; ---------------------------------------------------------------- | ||
| comment "Show product picture" | comment "Show product picture" | ||
| - | ShowBitmap " | + | ShowBitmap |
| Message " | Message " | ||
| - | if FileExists(" | + | if FileExists(" |
| comment "Start uninstall sub section" | comment "Start uninstall sub section" | ||
| - | Sub " | + | Sub " |
| + | endif | ||
| + | |||
| + | if not ($LicenseRequired$ = " | ||
| + | comment " | ||
| + | Sub_free_license | ||
| + | endif | ||
| + | |||
| + | [Sub_free_license] | ||
| + | if opsiLicenseManagementEnabled | ||
| + | comment " | ||
| + | |||
| + | comment " | ||
| + | DefVar $result$ | ||
| + | Set $result$ = FreeLicense($LicensePool$) | ||
| + | ; If there is an assignment of a license pool to the product, it is possible to use | ||
| + | ; Set $result$ = FreeLicense("", | ||
| + | ; | ||
| + | ; If there is an assignment of a license pool to a windows software id, it is possible to use | ||
| + | ; DefVar $WindowsSoftwareId$ | ||
| + | ; $WindowsSoftwareId$ = " | ||
| + | ; set $result$ = FreeLicense("", | ||
| + | else | ||
| + | LogError " | ||
| + | isFatalError | ||
| endif | endif | ||
| - | ExitWindows /Reboot | ||
| </ | </ | ||
userspace/dynamics_navision_2009_client.1350676162.txt.gz · Last modified: (external edit)
