Page 1 of 1

Registrierungsschlüssel und Konfiguration hinzufügen

Posted: 30. Sep 2019, 15:29
by Ahmed
Ich habe versucht, folgenden Schlüssel zur Registrierung hinzuzufügen, aber es funktioniert nicht. Haben Sie eine Vorstellung davon, wie es funktioniert.

Code: Select all

[Reg:Product]
HKLM,"SOFTWARE\Accellion\kiteworksOutlook\GUI","ChooseToInstall",0x00010001,1
HKLM,"SOFTWARE\Accellion\kiteworksOutlook\GUI","ProxyNone",0x00010001,1
HKLM,"SOFTWARE\Accellion\kiteworksOutlook\GUI","FirstTime",0x00010001,0
HKLM,"SOFTWARE\Accellion\kiteworksOutlook\GUI","hostname",0x00010001,"de.sample.us.com"
HKLM,"SOFTWARE\Accellion\kiteworksOutlook\GUI","LoginRetries",0x00010001,5
der Original-Registrierungsschlüssel

Code: Select all

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Accellion\kiteworksOutlook\GUI]
"ChooseToInstall"=dword:00000001
"ProxyNone"=dword:00000001
"FirstTime"=dword:00000000
"hostname"="de.sample.us.com"
"LoginRetries"=dword:00000005
Gruß und Vielen Dank
Ahmed

Re: Registrierungsschlüssel und Konfiguration hinzufügen

Posted: 30. Sep 2019, 15:44
by r.wiegel
So sollte es gehen:

Code: Select all

[Reg:Product]
HKLM,"Software\Accellion\kiteworksOutlook\GUI","ChooseToInstall",0x00010001,"0x00000001"
HKLM,"Software\Accellion\kiteworksOutlook\GUI","ProxyNone",0x00010001,"0x00000001"
HKLM,"Software\Accellion\kiteworksOutlook\GUI","FirstTime",0x00010001,"0x00000000"
HKLM,"Software\Accellion\kiteworksOutlook\GUI","hostname",0x00000000,"de.sample.us.com"
HKLM,"Software\Accellion\kiteworksOutlook\GUI","LoginRetries",0x00010001,"0x00000005"

Re: Registrierungsschlüssel und Konfiguration hinzufügen

Posted: 30. Sep 2019, 17:02
by Ahmed
Vielen Dank aber es funktioniert nicht. nur eine Hinweis, dass der Schlüssel nicht existiert. Kann dieser Befehl Key erstellen oder er wird ihn nur ändern?

Vielen Dank
Ahmed

Re: Registrierungsschlüssel und Konfiguration hinzufügen

Posted: 01. Oct 2019, 08:20
by r.wiegel
Ist evtl. die Zeile auskommentiert?:

[Product]
...
#Reg:Product
...
wir würden dann gerne einen Blick auf Setup.inf werfen...

Re: Registrierungsschlüssel und Konfiguration hinzufügen

Posted: 01. Oct 2019, 08:46
by Ahmed

Code: Select all

[SetupInfo]
Author                  = Test
CreationDate            = 30.09.2019
InventoryID             =
Description             = Accellion Inc Accellion for Outlook Desktop 1.3.1907.3601 1.3.1907.3601 DEU
Method                  = MSI
Tested on               = Win7 x64, Win10 x64
Dependencies            =
Command line options    = /S2
Last Change             = 30.09.2019
Build                   = 0

[Setup]
Version=14.2
ShowCaption=1
BlockInput=0
Platform=x86

[Application]
ProductName=Accellion for Outlook Desktop 1.3.1907.3601
DeveloperName=Accellion Inc
Version=1.3.1907.3601
Revision=0
;$$$neoDesign1
SetupName=%Packagename% %SetupWizard%
Text1="%Packagename%", Arial, 32, , 000000, 25#, 25#, LEFT BOLD
BackgroundColor=ffa0a0,ffffff
CopyDialogRect=25#, -25#, 0, 0, NORMAL
Logo=Logo.bmp, -25#, -25#, 0, 0, FFFFFF, TRANSPARENT
UninstallDisplayIcon=%App%\%SetupInfDir%\Setup.ico,0
;$$$neoDesign2
;$$$neoRegistry1
UserKeyName=neoPackages\%DeveloperName%\%ProductName%
MachineKeyName=neoPackages\%DeveloperName%\%ProductName%\%Version%
UninstallKeyName=neoPackage %DeveloperName% %ProductName% %Version%
UninstallDisplayName=neoPackage %DeveloperName% %ProductName% %Version%
;$$$neoRegistry2
UninstallString=%ReinstallString% /U
ReinstallString="%CommonSetupDir%\Setup.exe" "%App%\%SetupInfDir%\Setup.inf"
ReinstallMode=0
SrcDir=..
ApplicationDir=%ProgramFilesDir%\neoPackages\%DeveloperName%\%ProductName%\%Version%
SetupInfDir=neoInstall
DataDir=%Personal%
AskUninstallOld=1
ShellLinks=1
CommonShellLinks=1
CreateUnresolvableShellLinks=1
UseStringSection=Strings:09
UseSysStringSection=SysStrings:09
DateWarning=1
SizeWarning=1
Reboot=0
PreventExternalReboot=1
StartServicesOnReboot=0
CallTimeOut=3600
AbortAfterCallTimeOut=1
DisableCancelButton=1
ShowEndMessage=1
EndMessage=%EndMessageDesc%

[Strings:07]
Disk1=Installationsmedium 1
EndMessageDesc=Die Installation wurde erfolgreich abgeschlossen!
ErrorLogMessage=Die Installation/Deinstallation wurde mit einer Fehlermeldung abgebrochen!
InstallationFor=Installation fuer:
InstallerDesc=Dienstprogramm zum Installieren einzelner Komponenten.
InstallerName=Installationsprogramm
SetupWizard=Installations-Assistent
Uninstallation=deinstallieren
ErrorText=Fehler
CallingText=beim Aufruf von

[Strings:09]
Disk1=Installation media 1
EndMessageDesc=Installation was completed successfully!
ErrorLogMessage=The installation/uninstallation aborted with an error message!
InstallationFor=Installation for:
InstallerDesc=Service program to install single components.
InstallerName=Setup program
SetupWizard=Installation Wizard
Uninstallation=Uninstallation
ErrorText=Error
CallingText=launching

[SysStrings:07]
Users=Benutzer
LANG=DEU
LANGID=1031
LANGTEXT=Deutsch

[SysStrings:09]
Users=Users
LANG=ENU
LANGID=1033
LANGTEXT=English

[Environment]
CommonSetupDir=%CommonFilesDir%\Setup%SetupBits%

Packagename=%DeveloperName% %ProductName% %Version%
DisplayVersion=1.3.1907.3601

MSIGUID={0B56CA2F-EFB9-4AB3-B526-3A2B60F69B41}

DateDD=left("%sysdate%",2)
DateMM=mid("%sysdate%",3,2)
DateYY=right("%sysdate%",4)
TimeHH=left("%LongSysTime%",2)
TimeMM=mid("%LongSysTime%",3,2)
TimeSS=right("%LongSysTime%",2)
InstLogFile=%APP%\Install.%DateYY%-%DateMM%-%DateDD%_%TimeHH%-%TimeMM%-%TimeSS%.log
UninstLogFile=%APP%\Uninstall.%DateYY%-%DateMM%-%DateDD%_%TimeHH%-%TimeMM%-%TimeSS%.log

RegUninstallKey=HKLM,Software\Microsoft\Windows\CurrentVersion\Uninstall\%MSIGUID%,UninstallString
RegDisplayVersion=%%HKLM,Software\Microsoft\Windows\CurrentVersion\Uninstall\%MSIGUID%,DisplayVersion%%
PkgWzdPara="%SRC%\neoSource\plugin_outlook_1.3.1907.3601_x86.msi"

InstPara=MSIRESTARTMANAGERCONTROL=DISABLE ADDLOCAL=ALL ALLUSERS=1 REBOOT=REALLYSUPPRESS ARPSYSTEMCOMPONENT=1 /QB-! /L*vx "%InstLogFile%"
UninstPara=MSIRESTARTMANAGERCONTROL=DISABLE REBOOT=REALLYSUPPRESS /QB-! /L*vx "%UninstLogFile%"

[Processes]
APP1=kiteworksOutlook.exe, KiteworksOutlook, KillProcess Abort

[Disks]
1=%Disk1%

[Options]
Installer  = %InstallerName%, COPYALWAYS, Installer,  "%InstallerDesc%"
neoProduct = %ProductName%,   COPYALWAYS, neoProduct, "%ProductDesc%"

[Installer]
1:..\..\..\..\User\Setup.exe,          %CommonSetupDir%, OPTIONAL USEFILENAME DIRECTORY NOSIZEWARNING SETUP, 0
1:..\..\..\..\User\SetupDeu.chm,       %CommonSetupDir%, OPTIONAL USEFILENAME DIRECTORY NOSIZEWARNING SETUP, 0
1:..\..\..\..\User\SetupEnu.chm,       %CommonSetupDir%, OPTIONAL USEFILENAME DIRECTORY NOSIZEWARNING SETUP, 0
1:%SetupInfDir%\Setup.inf,                             , NORMAL,                                             0
1:%Temp%\Setup64.exe,                  %CommonSetupDir%\Setup.exe, OPTIONAL NOSIZEWARNING SETUP ALWAYS WINDOWS64,      0
1:%SetupInfDir%\Logo.bmp,                              , NORMAL,                                             0
1:%SetupInfDir%\Setup.ico,                             , NORMAL,                                             0

[AppNotExistMsg]
-Exit
-SetReboot 2
-ErrorLogMsg The application is not present. Uninstallation is not executed. Only setup.inf is deleted and package is unregistered. Exit!
[AppNotExist]
If DoesRegKeyExist ("%RegUninstallKey%") == "0" Then "AppNotExistMsg" EndIf

[AppExistMsg]
ErrorLogMsg Application is already present. Installation is not executed. Only setup.inf is copied and package is registered. Exit!
SetReboot 2
Exit
[AppExist]
ReplaceEnv RegDisplayVersion
If %RegDisplayVersion% >= %DisplayVersion% & DoesRegKeyExist ("HKLM,Software\%MachineKeyName%\Setup,ProductName") == "0" Then "AppExistMsg" EndIf

[neoProduct]
#AppExist, MACHINE DONTDELETE
AskKillProcesses 600, APP1
#Set:neoProduct, DONTDELETE
#Set:neoUninstall, DELETE
#Product
-AskKillProcesses 600, APP1
#AppNotExist, MACHINE DELETE

[Set:neoProduct]
If DoesRegKeyExist ("%RegUninstallKey%") == "1" Then "neoReinstall" Else "neoInstall" EndIf

[neoReinstall]
AddMeter -1
Call %System%\msiexec.exe /X %MSIGUID% %UninstPara%
If "%ErrorLevel%" == "3010" Then "neoRebootRequired" EndIf
If DoesRegKeyExist ("%RegUninstallKey%") == "1" Then "neoAbortInst" EndIf
Call %System%\msiexec.exe /I %PkgWzdPara% %InstPara%
If "%ErrorLevel%" == "3010" Then "neoRebootRequired" EndIf
If DoesRegKeyExist ("%RegUninstallKey%") == "0" Then "neoAbortInst" EndIf

[neoInstall]
AddMeter -1
Call %System%\msiexec.exe /I %PkgWzdPara% %InstPara%
If "%ErrorLevel%" == "3010" Then "neoRebootRequired" EndIf
If DoesRegKeyExist ("%RegUninstallKey%") == "0" Then "neoAbortInst" EndIf

[Set:neoUninstall]
If DoesRegKeyExist ("%RegUninstallKey%") == "1" Then "neoAbortUninst" EndIf
If "%ErrorLevel%" == "3010" Then "neoRebootRequired" EndIf
-Call %System%\msiexec.exe /X %MSIGUID% %UninstPara%
-AddMeter -1

[neoRebootRequired]
SetReboot 1
-SetReboot 1

[neoAbortInst]
Set ErrorOutput=%ErrorLogMessage% ErrorLevel: %ErrorLevel%
ErrorLogMsg %ErrorOutput%
Abort %ErrorOutput%

[neoAbortUninst]
-Abort %ErrorOutput%
-ErrorLogMsg %ErrorOutput%
-Set ErrorOutput=%ErrorLogMessage% ErrorLevel: %ErrorLevel%


;~~~~~~~~~~~~~~~~~ Diff - Tuning ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[Product]
#Set:Product
#Reg:Product
#Ini:Product
#Security:Product
#Shell:Product

[Set:Product]
Set DESKTOPSHORTCUT=%%%SRC%\%Setupinfdir%\Setup.cfg,Options,DESKTOPSHORTCUT%%
ReplaceEnv DESKTOPSHORTCUT
If "%DESKTOPSHORTCUT%" != "1" Then "Set:Desktopshortcut0" Else "Set:Desktopshortcut1" EndIf
-Del "%CommonDesktop%\kiteworks Outlook Plugin.lnk"

[Set:Desktopshortcut0]
Del "%CommonDesktop%\kiteworks Outlook Plugin.lnk"

[Set:Desktopshortcut1]
Copy "%CommonPrograms%\Accellion\kiteworks Outlook Plugin.lnk" "%CommonDesktop%\kiteworks Outlook Plugin.lnk"

[Reg:Product]
HKLM,"Software\Accellion\kiteworksOutlook\GUI","ChooseToInstall",0x00010001,"0x00000001"
HKLM,"Software\Accellion\kiteworksOutlook\GUI","ProxyNone",0x00010001,"0x00000001"
HKLM,"Software\Accellion\kiteworksOutlook\GUI","FirstTime",0x00010001,"0x00000000"
HKLM,"Software\Accellion\kiteworksOutlook\GUI","hostname",0x00000000,"de.sample.us.com"
HKLM,"Software\Accellion\kiteworksOutlook\GUI","LoginRetries",0x00010001,"0x00000005"
[Ini:Product]

[Security:Product]

[Shell:Product]
Gruß und Vielen Dank
Ahmed

Re: Registrierungsschlüssel und Konfiguration hinzufügen

Posted: 01. Oct 2019, 10:06
by r.wiegel
da die Option "Platform" auf "x86" gesetzt ist (also 32-bit Kontext), landen die Einträge hier:
HKLM\Software\WOW6432\Accellion...

Re: Registrierungsschlüssel und Konfiguration hinzufügen

Posted: 01. Oct 2019, 12:45
by Ahmed
Image

ich habe das auch gemacht , aber zeigt andre optionen nicht. (Sehen Sie bitte das Photo)
Kann man Regfile einfach rufen? (Z.b. Config.reg)
Gruß & Vielen Dank
Ahmed

Re: Registrierungsschlüssel und Konfiguration hinzufügen

Posted: 01. Oct 2019, 13:09
by r.wiegel
ja, das geht auch:
viewtopic.php?f=84&t=19485