Opsi-Script
Opsi-Script
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
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
- SisterOfMercy
- Beiträge: 1556
- Registriert: 22 Jun 2012, 19:18
Re: Opsi-Script
Ok, where's the beer?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:Geht das so, oder müsste ich noch den Schlüssel vorher erstellen (REG_EXPAND_SZ)?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

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
Bitte schreiben Sie Deutsch, when I'm responding in the German-speaking part of the forum!
Re: Opsi-Script
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
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
- SisterOfMercy
- Beiträge: 1556
- Registriert: 22 Jun 2012, 19:18
Re: Opsi-Script
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"
Bitte schreiben Sie Deutsch, when I'm responding in the German-speaking part of the forum!
Re: Opsi-Script
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
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
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
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
- SisterOfMercy
- Beiträge: 1556
- Registriert: 22 Jun 2012, 19:18
Re: Opsi-Script
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"
Bitte schreiben Sie Deutsch, when I'm responding in the German-speaking part of the forum!
Re: Opsi-Script
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"
?
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"
?
- SisterOfMercy
- Beiträge: 1556
- Registriert: 22 Jun 2012, 19:18
Re: Opsi-Script
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
Bitte schreiben Sie Deutsch, when I'm responding in the German-speaking part of the forum!
Re: Opsi-Script
Jippie! jetzt funktioniert es! 
