Authy AppData

a.oliveira
Posts: 37
Joined: 01. Jun 2021, 14:25
Contact:

Authy AppData

Post by a.oliveira » 31. Aug 2022, 11:56

Ich möchte die Authy-Software verteilen. Die Installation erfolgt über eine Exe-Datei, die die Installationsdateien in AppData speichert. Die Installation wird als erfolgreich angezeigt, aber die Dateien werden nicht in AppData gespeichert.

Code: Select all

[SetupInfo]
Author                  =  a.oliveira
CreationDate            = 
InventoryID             = 
Description             = Twilio Inc Authy Desktop 2.0.0
Method                  = Unattend
Tested on               =   
Dependencies            =   
Command line options    = /S2 /AW
Last Change             = 07.03.2022
Build                   = 0

[VarDefInfo]
; <Variable>, <Type: 0=Computer 1=User>, <Allow NULL values: 0=No 1=Yes>

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

[Requirements]

[Application]
ProductName=Authy Desktop
DeveloperName=Twilio Inc
Version=2.0.0
Revision=0
SetupName=%ProductName% %Version% %SetupWizard%
Text1="%ProductName% %Version%",         Arial,           30, , 2170F3, 4,    , LEFT BOLD ITALIC
Text2="%DeveloperName%",                 Arial,           24, , 2170F3, 4,    , LEFT BOLD ITALIC
Text8="%Company%",                       Arial,           18, , 2170F3, 4,  10, RIGHT BOLD ITALIC
Text9="%InstallationFor% %WindowsUser%", Arial,           16, , 2170F3, 4, -18, BOTTOM ITALIC LEFT
BackgroundColor=EFEFEF,000000
CopyDialogRect=0%, 0%, 100%, 100%, HCENTER VCENTER

; Register all installations in common registry key
UserKeyName=$Matrix42Packages$\%DeveloperName%\%ProductName%
MachineKeyName=$Matrix42Packages$\%DeveloperName%\%ProductName%\%Version%
UninstallKeyName=Matrix42 - %DeveloperName% %ProductName% %Version%
UninstallDisplayName=Matrix42 - %DeveloperName% %ProductName% %Version%
UninstallString=%ReinstallString% /U
ReinstallString="%CommonSetupDir%\Setup.exe" "%App%\%SetupInfDir%\Setup.inf"
;UninstallDisplayIcon="%ApplicationDir%\%SetupInfDir%\Setup.ico",0
UninstallOptions=NOREMOVE NOREPAIR NOMODIFY
ReinstallMode=1
SrcDir=..

; Matrix42 Scripts are copied in a common scripts directory
ApplicationDir=%CommonAppData%\$Matrix42Scripts$\%DeveloperName%\%ProductName%\%Version%

SetupInfDir=Install
DataDir=%Personal%
AskUninstallOld=1
ShellLinks=1
CommonShellLinks=1
CreateUnresolvableShellLinks=1
UseStringSection=Strings:09
UseSysStringSection=SysStrings:09
DateWarning=1
SizeWarning=0
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 für:
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

[SysStrings:09]
Users=Users

[Environment]
CommonSetupDir=%CommonFilesDir%\Setup%SetupBits%
V_MachineValuesPath=\\%EmpirumServer%\Values$\MachineValues\%DomainName%
V_UserValuesPath=%HKLM,"Software\matrix42\Software Depot","HomeServer"%\Values$\UserValues\%UserDomain%

; Maschinenabhängige Variablen
; machine dependent variables
;VM_<Variable>=%%%V_MachineValuesPath%\%ComputerName%.ini,%ComputerName%,<Variable>%%

; Userabhängige Variablen
; user dependent variables
;VU_<Variable>=%%%V_UserValuesPath%\%WindowsUser%.ini,%WindowsUser%,<Variable>%%

; !!! Setzen der entsprechenden ReplaceEnv Befehle für die Variablen im Abschnitt [Product] nicht vergessen!!!
; !!! Don't forget to set the appropriate ReplaceEnv instructions for the variables in the section [Product]!!!

[Encryption]

[Disks]
1=%Disk1%

[Options]
Installer = %InstallerName%, COPYALWAYS, Installer, "%InstallerDesc%"
Product   = %ProductName%,   COPYALWAYS, Product,   "%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:%Temp%\Setup64.exe,                  %CommonSetupDir%\Setup.exe, OPTIONAL ALWAYS NOSIZEWARNING SETUP WINDOWS64,     0
1:..\..\..\..\User\Setup64.exe,        %CommonSetupDir%\Setup.exe, OPTIONAL ALWAYS NOSIZEWARNING SETUP WINDOWS64,     0
1:%SetupInfDir%\Setup.inf,                             , ALWAYS,                                             0
; 1:%SetupInfDir%\Setup.ico,                             , NORMAL,                                           0
; 1:%SetupInfDir%\Logo.bmp,                              , NORMAL,                                           0

[Product]
; ReplaceEnv <Variable>

#Set:Product
#Set:Installation, DONTDELETE
#Set:Deinstallation, DELETE
#Reg:OnUninstallProduct, DELETE
#Reg:Product
#Ini:Product
#Security:Product

[Set:Product]

[Set:Installation]
AddMeter -1
Call "%Src%\Authy Desktop Setup 2.0.0.exe" -s
If "%ErrorLevel%" <> "0" Then "SET:InstallationError" EndIf

[Set:Deinstallation]
If "%ErrorLevel%" <> "0" Then "SET:DeInstallationError" EndIf
-Call "%LocalAppData%\authy\Update.exe" --uninstall -s
-AddMeter -1

[Reg:OnUninstallProduct]

[Reg:Product]

[Ini:Product]

[Security:Product]

[Shell:Product]

[Set:InstallationError]
ErrorLogMsg %ErrorText% %ErrorLevel% %CallingText% Authy Desktop Setup 2.0.0.exe
Abort

[Set:DeInstallationError]
-Abort
-ErrorLogMsg %ErrorText% %ErrorLevel% %CallingText% Authy Desktop Setup 2.0.0.exe

BroncosCountry
Posts: 38
Joined: 25. Sep 2019, 11:59
Contact:

Re: Authy AppData

Post by BroncosCountry » 31. Aug 2022, 13:22

Hallo,

der Fehler ist ganz offensichtlich.
Du führst deine Installation als "SYSTEM" aus. System löst aber die APPDATA Variable nicht in die des Users sondern in seine eigene auf.

Probiere bitte folgendes:

#Set:Product
#Set:Installation, DONTDELETE
#Set:AuthyUser,CLIENT

[Set:Installation]
AddMeter -1
Copy "%Src%\Authy Desktop Setup 2.0.0.exe" "%APP%\Authy Desktop\Authy Desktop Setup 2.0.0.exe"

[Set:AuthyUser]

Call "%APP%\Authy Desktop Setup 2.0.0.exe" /S

Damit wird die Installation beim Anmelden des Benutzers im Userkontext ausgeführt.

LG

a.oliveira
Posts: 37
Joined: 01. Jun 2021, 14:25
Contact:

Re: Authy AppData

Post by a.oliveira » 31. Aug 2022, 17:21

Kann Befehl "%APP%\Authy Desktop Setup 2.0.0.exe" /S nicht ausführen.

Code: Select all

[Product]
; ReplaceEnv <Variable>

#Set:Product
#Set:Installation, DONTDELETE
#Set:AuthyUser, CLIENT
#Set:Deinstallation, DELETE

[Set:Product]

[Set:Installation]
AddMeter -1
Copy "%Src%\Authy Desktop Setup 2.0.0.exe" "%APP%\Authy Desktop\Authy Desktop Setup 2.0.0.exe"

[Set:AuthyUser]
Call "%APP%\Authy Desktop Setup 2.0.0.exe" /S

[Set:Deinstallation]
If "%ErrorLevel%" <> "0" Then "SET:DeInstallationError" EndIf
-Call "%LocalAppData%\authy\Update.exe" --uninstall -s
-AddMeter -1

User avatar
Hendrik_Ambrosius
Moderator
Moderator
Posts: 8093
Joined: 13. Dec 2004, 23:10
Location: Adendorf/Lüneburg

Re: Authy AppData

Post by Hendrik_Ambrosius » 01. Sep 2022, 09:02

Statt
Call "%APP%\Authy Desktop Setup 2.0.0.exe" /S
dies:
Call "%APP%\Authy Desktop\Authy Desktop Setup 2.0.0.exe" /S
Hendrik Ambrosius / Senior Presales Consultant
Mobile: +49 172 408 4447 | hendrik.ambrosius@matrix42.com
Matrix42 GmbH | Elbinger Straße 7 | 60487 Frankfurt am Main | Germany | www.matrix42.com

Disclaimer: I participate in this forum on a voluntary basis. Views expressed are not necessarily those of Matrix42 or of the support team.

BroncosCountry
Posts: 38
Joined: 25. Sep 2019, 11:59
Contact:

Re: Authy AppData

Post by BroncosCountry » 01. Sep 2022, 10:18

Hendrik_Ambrosius wrote: 01. Sep 2022, 09:02 Statt
Call "%APP%\Authy Desktop Setup 2.0.0.exe" /S
dies:
Call "%APP%\Authy Desktop\Authy Desktop Setup 2.0.0.exe" /S
Absolut Richtig! :)
Danach sollte es gehen!

a.oliveira
Posts: 37
Joined: 01. Jun 2021, 14:25
Contact:

Re: Authy AppData

Post by a.oliveira » 02. Sep 2022, 11:14

Die Installation funktioniert also mit dem Empirum Packaging Center, aber wenn ich versuche, diese zu verteilen, wird die App zwar geöffnet, aber nicht installiert und es werden keine Daten gespeichert.

User avatar
Hendrik_Ambrosius
Moderator
Moderator
Posts: 8093
Joined: 13. Dec 2004, 23:10
Location: Adendorf/Lüneburg

Re: Authy AppData

Post by Hendrik_Ambrosius » 02. Sep 2022, 12:53

Dann kann es am local system context liegen.
Bitte mal einfach call cmd.exe als Befehl einbauen und das Setup manuell starten von der Kommandozeile während der Verteilung über den Agent. Gibt es Fehler?
Hendrik Ambrosius / Senior Presales Consultant
Mobile: +49 172 408 4447 | hendrik.ambrosius@matrix42.com
Matrix42 GmbH | Elbinger Straße 7 | 60487 Frankfurt am Main | Germany | www.matrix42.com

Disclaimer: I participate in this forum on a voluntary basis. Views expressed are not necessarily those of Matrix42 or of the support team.

a.oliveira
Posts: 37
Joined: 01. Jun 2021, 14:25
Contact:

Re: Authy AppData

Post by a.oliveira » 02. Sep 2022, 14:08

Wenn ich es richtig verstanden habe, musste ich cmd hinzufügen und die Setup-Datei ausführen. Dann öffnet sich CMD und Authy Desktop 2.0.0.exe muss aufrufen werden. Zumindest habe ich es so gemacht und unten erschien folgende Fehlermeldung:

Code: Select all

C:\Users\a.oliveira\Desktop\2.0.0\Install>Authy Desktop Setup 2.0.0.exe
Der Befehl "Authy" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.

Code: Select all

[Set:AuthyUser]
Call cmd.exe "%APP%\Authy Desktop\Authy Desktop 2.0.0.exe" /S

User avatar
Hendrik_Ambrosius
Moderator
Moderator
Posts: 8093
Joined: 13. Dec 2004, 23:10
Location: Adendorf/Lüneburg

Re: Authy AppData

Post by Hendrik_Ambrosius » 02. Sep 2022, 16:31

Nein, einfach CMD.EXE aufrufen.
Und auch auf dem Kommandoprompt brauchen man dann die Anführungszeichen damit er die Datei findet.
Außerdem müßte die Datei dann doch in %APP% liegen und nicht unter c:\users\... ?
Hendrik Ambrosius / Senior Presales Consultant
Mobile: +49 172 408 4447 | hendrik.ambrosius@matrix42.com
Matrix42 GmbH | Elbinger Straße 7 | 60487 Frankfurt am Main | Germany | www.matrix42.com

Disclaimer: I participate in this forum on a voluntary basis. Views expressed are not necessarily those of Matrix42 or of the support team.

a.oliveira
Posts: 37
Joined: 01. Jun 2021, 14:25
Contact:

Re: Authy AppData

Post by a.oliveira » 06. Sep 2022, 13:10

Nachdem ich cmd.exe zur Setup-Datei hinzugefügt und diese über den Agenten ausgeführt habe, öffnete sich das Fenster für CMD und ich rief die Exe-Datei Authy Desktop 2.0.0.exe auf. Die folgende Fehlermeldung wird angezeigt:

Code: Select all

C:\EmpirumAgent\Packages\Twilio Inc\Authy Desktop\2.0.0\Install>Authy Desktop 2.0.0.exe
Der Befehl "Authy" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.

User avatar
Hendrik_Ambrosius
Moderator
Moderator
Posts: 8093
Joined: 13. Dec 2004, 23:10
Location: Adendorf/Lüneburg

Re: Authy AppData

Post by Hendrik_Ambrosius » 07. Sep 2022, 08:54

Sie müssen den Namen der EXE in Anführungszeichen schreiben oder sie in eine Datei ohne Leerzeichen umbenennen.
Außerdem liegt die Datei hoffentlich nicht im Ordner INSTALL sondern eine Ebene darüber?
Hendrik Ambrosius / Senior Presales Consultant
Mobile: +49 172 408 4447 | hendrik.ambrosius@matrix42.com
Matrix42 GmbH | Elbinger Straße 7 | 60487 Frankfurt am Main | Germany | www.matrix42.com

Disclaimer: I participate in this forum on a voluntary basis. Views expressed are not necessarily those of Matrix42 or of the support team.

a.oliveira
Posts: 37
Joined: 01. Jun 2021, 14:25
Contact:

Re: Authy AppData

Post by a.oliveira » 07. Sep 2022, 09:31

Die Datei befindet sich im Ordner "Install". Muss ich über "Install" einen neuen Ordner erstellen und die Datei dort ablegen?

Code: Select all

C:\EmpirumAgent\Packages\Twilio Inc\Authy Desktop\2.0.0\Install>"Authy Desktop 2.0.0.exe"
Der Befehl ""Authy Desktop 2.0.0.exe"" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.

User avatar
Hendrik_Ambrosius
Moderator
Moderator
Posts: 8093
Joined: 13. Dec 2004, 23:10
Location: Adendorf/Lüneburg

Re: Authy AppData

Post by Hendrik_Ambrosius » 07. Sep 2022, 16:30

Nein, die Datei gehört in Packages\Twilio Inc\Authy Desktop\2.0.0
Hendrik Ambrosius / Senior Presales Consultant
Mobile: +49 172 408 4447 | hendrik.ambrosius@matrix42.com
Matrix42 GmbH | Elbinger Straße 7 | 60487 Frankfurt am Main | Germany | www.matrix42.com

Disclaimer: I participate in this forum on a voluntary basis. Views expressed are not necessarily those of Matrix42 or of the support team.

a.oliveira
Posts: 37
Joined: 01. Jun 2021, 14:25
Contact:

Re: Authy AppData

Post by a.oliveira » 08. Sep 2022, 10:29

Ich habe in der letzten Nachricht einen Tippfehler gemacht. Die Setup-Datei befindet sich bereits im Verzeichnispfad Packages\Twilio Inc\Authy Desktop\2.0.0

a.oliveira
Posts: 37
Joined: 01. Jun 2021, 14:25
Contact:

Re: Authy AppData

Post by a.oliveira » 08. Sep 2022, 11:59

Ich habe die Installation erneut getestet. Die Datei wird nicht kopiert.

Code: Select all

08.09.2022 11:05:16, Section [Set:AuthyUser], Line 1: 
Kann Befehl 'Call "%APP%\Authy Desktop\Authy Desktop Setup 2.0.0" /S' nicht ausführen.
Fehler 2!
OK
------------

Post Reply

Return to “Paketierung”

Who is online

Users browsing this forum: No registered users and 2 guests