Opsi-Script
Verfasst: 02 Mär 2022, 21:22
von heinzer
Hey,
ich würde gerne die 2 Registry Werte erstellen:
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Outlook]
"ForcePSTPath"=hex(2):64,00,3a,00,5c,00,6f,00,75,00,74,00,6c,00,6f,00,6f,00,6b,\
00,00,00
"ForceOSTPath"=hex(2):64,00,3a,00,5c,00,6f,00,75,00,74,00,6c,00,6f,00,6f,00,6b,\
00,00,00
Hier die Setup.ins:
[Actions]
outlook-pfade /AllNTUserDats
[outlook-pfade]
openkey [HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Outlook]
set "ForcePSTPath"=hex(2):64,00,3a,00,5c,00,6f,00,75,00,74,00,6c,00,6f,00,6f,00,6b,\
00,00,00
set "ForceOSTPath"=hex(2):64,00,3a,00,5c,00,6f,00,75,00,74,00,6c,00,6f,00,6f,00,6b,\
00,00,00
Geht das so, oder müsste ich noch den Schlüssel vorher erstellen (REG_EXPAND_SZ)?
Vielen Dank für Deine Hilfe
Viele Grüße
Stefan
Re: Opsi-Script
Verfasst: 03 Mär 2022, 01:12
von SisterOfMercy
heinzer hat geschrieben: ↑02 Mär 2022, 21:22
[HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Outlook]
"ForcePSTPath"=hex(2):64,00,3a,00,5c,00,6f,00,75,00,74,00,6c,00,6f,00,6f,00,6b,\
00,00,00
"ForceOSTPath"=hex(2):64,00,3a,00,5c,00,6f,00,75,00,74,00,6c,00,6f,00,6f,00,6b,\
00,00,00
Hier die Setup.ins:
Code: Alles auswählen
[Actions]
outlook-pfade /AllNTUserDats
[outlook-pfade]
openkey [HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Outlook]
set "ForcePSTPath"=hex(2):64,00,3a,00,5c,00,6f,00,75,00,74,00,6c,00,6f,00,6f,00,6b,\
00,00,00
set "ForceOSTPath"=hex(2):64,00,3a,00,5c,00,6f,00,75,00,74,00,6c,00,6f,00,6f,00,6b,\
00,00,00
Geht das so, oder müsste ich noch den Schlüssel vorher erstellen (REG_EXPAND_SZ)?
Ok, where's the beer?
Look here:
https://download.uib.de/4.2/documentati ... y-sections
A secondary section with a name that starts with outlook will not work.
Code: Alles auswählen
[Actions]
Registry_install_AllProfiles /AllNTUserDats
[Registry_install_AllProfiles]
openkey [HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Outlook]
set "ForcePSTPath" = REG_BINARY:64 00 3a 00 5c 00 6f 00 75 00 74 00 6c 00 6f 00 6f 00 6b 00 00 00
set "ForceOSTPath" = REG_BINARY:64 00 3a 00 5c 00 6f 00 75 00 74 00 6c 00 6f 00 6f 00 6b 00 00 00
You might also want to look in this post, to find more office 2016 settings:
viewtopic.php?p=49506#p49506
Re: Opsi-Script
Verfasst: 03 Mär 2022, 12:42
von heinzer
Hey,
vielen Dank. Kuhl.
Und was soll ich beim Uninstall - Script eintragen?
Das muss ja vorhanden sein, aber das sind dann die einzigen zwingend vorhandend sein müssende, oder?
Viele Grüße
Stefan
Re: Opsi-Script
Verfasst: 03 Mär 2022, 13:09
von SisterOfMercy
heinzer hat geschrieben: ↑03 Mär 2022, 12:42
Und was soll ich beim Uninstall - Script eintragen?
Das muss ja vorhanden sein, aber das sind dann die einzigen zwingend vorhandend sein müssende, oder?
You don't need an uninstall script, but it's best if you just make them so you won't have to update a lot of packages when you do want uninstall scripts. (speaking from my own experience).
I don't know what the ForcePSTPath normally is, if it did not exist before you do this:
Code: Alles auswählen
[Actions]
Registry_uninstall_AllProfiles /AllNTUserDats
[Registry_uninstall_AllProfiles]
openkey [HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Outlook]
deletevar "ForcePSTPath"
deletevar "ForceOSTPath"
This is all in the documentation. Also take a look at the wiki for some complete scripts. Take note of the delsub subscripts, so you have the same code running during uninstall as well as a reinstall. For this example it doesn't matter, but with programs it's different.
Re: Opsi-Script
Verfasst: 03 Mär 2022, 17:04
von heinzer
Hey nochmal,
müsste das nicht so heißen?
[Actions]
Registry_install_AllProfiles /AllNTUserDats
[Registry_install_AllProfiles]
openkey [HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Outlook]
set "ForcePSTPath" = REG_EXPAND_SZ:64 00 3a 00 5c 00 6f 00 75 00 74 00 6c 00 6f 00 6f 00 6b 00 00 00
set "ForceOSTPath" =REG_EXPAND_SZ:64 00 3a 00 5c 00 6f 00 75 00 74 00 6c 00 6f 00 6f 00 6b 00 00 00
Also statt REG_BINARY --> REG_EXPAND_SZ ??
Viele Grüße und Dank
Stefan
Re: Opsi-Script
Verfasst: 03 Mär 2022, 17:14
von heinzer
Hey nochmal,
habe es gerade ausgeführt:
154) [2] [2022-03-03 17:12:30.676] [outlook-pfad] Syntax Error in Section: Registry_install_AllProfiles (Command in line 6 in section: Registry_install_AllProfiles; file: setup.opsiscript; section start at line: 4; origin: setup.opsiscript; line: 6): set "ForcePSTPath" = REG_EXPAND_SZ:64 00 3a 00 5c 00 6f 00 75 00 74 00 6c 00 6f 00 6f 00 6b 00 00 00 -> " or ' expected
(155) [2] [2022-03-03 17:12:30.676] [outlook-pfad] Syntax Error in Section: Registry_install_AllProfiles (Command in line 7 in section: Registry_install_AllProfiles; file: setup.opsiscript; section start at line: 4; origin: setup.opsiscript; line: 7): set "ForceOSTPath" =REG_EXPAND_SZ:64 00 3a 00 5c 00 6f 00 75 00 74 00 6c 00 6f 00 6f 00 6b 00 00 00 -> " or ' expected
(168) [2] [2022-03-03 17:12:31.774] [outlook-pfad] Syntax Error in Section: Registry_install_AllProfiles (Command in line 6 in section: Registry_install_AllProfiles; file: setup.opsiscript; section start at line: 4; origin: setup.opsiscript; line: 6): set "ForcePSTPath" = REG_EXPAND_SZ:64 00 3a 00 5c 00 6f 00 75 00 74 00 6c 00 6f 00 6f 00 6b 00 00 00 -> " or ' expected
(169) [2] [2022-03-03 17:12:31.774] [outlook-pfad] Syntax Error in Section: Registry_install_AllProfiles (Command in line 7 in section: Registry_install_AllProfiles; file: setup.opsiscript; section start at line: 4; origin: setup.opsiscript; line: 7): set "ForceOSTPath" =REG_EXPAND_SZ:64 00 3a 00 5c 00 6f 00 75 00 74 00 6c 00 6f 00 6f 00 6b 00 00 00 -> " or ' expected
(183) [2] [2022-03-03 17:12:32.443] [outlook-pfad] Syntax Error in Section: Registry_install_AllProfiles (Command in line 6 in section: Registry_install_AllProfiles; file: setup.opsiscript; section start at line: 4; origin: setup.opsiscript; line: 6): set "ForcePSTPath" = REG_EXPAND_SZ:64 00 3a 00 5c 00 6f 00 75 00 74 00 6c 00 6f 00 6f 00 6b 00 00 00 -> " or ' expected
(184) [2] [2022-03-03 17:12:32.443] [outlook-pfad] Syntax Error in Section: Registry_install_AllProfiles (Command in line 7 in section: Registry_install_AllProfiles; file: setup.opsiscript; section start at line: 4; origin: setup.opsiscript; line: 7): set "ForceOSTPath" =REG_EXPAND_SZ:64 00 3a 00 5c 00 6f 00 75 00 74 00 6c 00 6f 00 6f 00 6b 00 00 00 -> " or ' expected
(198) [2] [2022-03-03 17:12:32.510] [outlook-pfad] Syntax Error in Section: Registry_install_AllProfiles (Command in line 6 in section: Registry_install_AllProfiles; file: setup.opsiscript; section start at line: 4; origin: setup.opsiscript; line: 6): set "ForcePSTPath" = REG_EXPAND_SZ:64 00 3a 00 5c 00 6f 00 75 00 74 00 6c 00 6f 00 6f 00 6b 00 00 00 -> " or ' expected
(199) [2] [2022-03-03 17:12:32.510] [outlook-pfad] Syntax Error in Section: Registry_install_AllProfiles (Command in line 7 in section: Registry_install_AllProfiles; file: setup.opsiscript; section start at line: 4; origin: setup.opsiscript; line: 7): set "ForceOSTPath" =REG_EXPAND_SZ:64 00 3a 00 5c 00 6f 00 75 00 74 00 6c 00 6f 00 6f 00 6b 00 00 00 -> " or ' expected
(210) [2] [2022-03-03 17:12:32.522] [outlook-pfad] Syntax Error in Section: Registry_install_AllProfiles (Command in line 6 in section: Registry_install_AllProfiles; file: setup.opsiscript; section start at line: 4; origin: setup.opsiscript; line: 6): set "ForcePSTPath" = REG_EXPAND_SZ:64 00 3a 00 5c 00 6f 00 75 00 74 00 6c 00 6f 00 6f 00 6b 00 00 00 -> " or ' expected
(211) [2] [2022-03-03 17:12:32.522] [outlook-pfad] Syntax Error in Section: Registr
Re: Opsi-Script
Verfasst: 03 Mär 2022, 17:56
von SisterOfMercy
heinzer hat geschrieben: ↑03 Mär 2022, 17:04
Also statt REG_BINARY --> REG_EXPAND_SZ ??
Well, as you found out, that doesn't work.
Have you looked at the documentation?
https://download.uib.de/4.2/documentati ... y-commands
Code: Alles auswählen
Set <Varname> = <Registrytyp>:<Value>
Setzt die durch <Varname> bezeichnete Registry-Variable auf den Wert <Value> des Typs <Registrytyp>. Es werden folgende Registry-Typen interpretiert:
REG_SZ (String)
REG_EXPAND_SZ (ein String, der vom System zu expandierende Teilstrings wie %Systemroot% enthält)
REG_DWORD (ganzzahlige Werte; Dezimaldarstellung oder 0xHexadezimal)
REG_BINARY (binäre Werte, in zweistelligen Hexadezimalen, d.h. 00 01 02 .. 0F 10 .., notiert)
REG_MULTI_SZ (Arrays von String-Werten, die in opsi-script-Syntax durch das Zeichen "|" getrennt werden;
Beispiel für set mit unterschiedlichen Registrydatentypen:
set "var1" = "my string"
set "var2" = REG_SZ:"my string"
set "var3" = REG_EXPAND_SZ:"%ProgramFiles%"
set "var4" = REG_DWORD:123 (Decimal)
set "var5" = REG_DWORD:0x7b (Hexadecimal)
set "var6" = REG_BINARY:00 01 02 0F 10
set "var7" = REG_MULTI_SZ:"A|BC|de"
The documentation is your friend.
Re: Opsi-Script
Verfasst: 03 Mär 2022, 19:39
von heinzer
Hey,
ok, also so (mit Anführungsstrichen und Schlusstrichen):
[Actions]
Registry_install_AllProfiles /AllNTUserDats
[Registry_install_AllProfiles]
openkey [HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Outlook]
set "ForcePSTPath" = REG_EXPAND_SZ: "64 00 3a 00 5c 00 6f 00 75 00 74 00 6c 00 6f 00 6f 00 6b 00 00 00"
set "ForceOSTPath" =REG_EXPAND_SZ: "64 00 3a 00 5c 00 6f 00 75 00 74 00 6c 00 6f 00 6f 00 6b 00 00 00"
?
Re: Opsi-Script
Verfasst: 03 Mär 2022, 20:36
von SisterOfMercy
heinzer hat geschrieben: ↑03 Mär 2022, 19:39
ok, also so (mit Anführungsstrichen und Schlusstrichen):
No!
REG_BINARY
REG_BINARY!
REG_BINARY!!
Have you even tried this?
Code: Alles auswählen
[Actions]
Registry_install_AllProfiles /AllNTUserDats
[Registry_install_AllProfiles]
openkey [HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Outlook]
set "ForcePSTPath" = REG_BINARY:64 00 3a 00 5c 00 6f 00 75 00 74 00 6c 00 6f 00 6f 00 6b 00 00 00
set "ForceOSTPath" = REG_BINARY:64 00 3a 00 5c 00 6f 00 75 00 74 00 6c 00 6f 00 6f 00 6b 00 00 00
Re: Opsi-Script
Verfasst: 03 Mär 2022, 20:57
von heinzer
Jippie! jetzt funktioniert es!
