Software benötigt Adminrechte
Software benötigt Adminrechte
Hallo,
Ich habe eine Software, die nach der Installation Admin-Rechte benötigt, um eine andere Software herunterzuladen und zu installieren, die über der installierten Software liegt.
Gibt es eine Lösung für dieses Problem?
Ich habe eine Software, die nach der Installation Admin-Rechte benötigt, um eine andere Software herunterzuladen und zu installieren, die über der installierten Software liegt.
Gibt es eine Lösung für dieses Problem?
-
- Moderator
- Posts: 7969
- Joined: 13. Dec 2004, 23:10
- Location: Adendorf/Lüneburg
Re: Software benötigt Adminrechte
Der Matrix42 Package Robot (Extra-Lizenz) kann beliebige Programme starten und automatisch bedienen.
Man könnte also aus der setup.inf ein MPR Paket im System-Kontext starten und den Download durchführen, dann die Anwendung beenden.
Man könnte also aus der setup.inf ein MPR Paket im System-Kontext starten und den Download durchführen, dann die Anwendung beenden.
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.
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.
Re: Software benötigt Adminrechte
Was ist ein MPR-Paket und wie wird dies gemacht?Hendrik_Ambrosius wrote: ↑22. Sep 2023, 13:49 Der Matrix42 Package Robot (Extra-Lizenz) kann beliebige Programme starten und automatisch bedienen.
Man könnte also aus der setup.inf ein MPR Paket im System-Kontext starten und den Download durchführen, dann die Anwendung beenden.
-
- Moderator
- Posts: 7969
- Joined: 13. Dec 2004, 23:10
- Location: Adendorf/Lüneburg
Re: Software benötigt Adminrechte
Einen Einstieg können Sie über dieses Video bekommen: https://www.youtube.com/watch?v=ef1zLul9juc
Ansonsten gibt es auch einen separaten Bereich in diesem Forum dafür:
viewforum.php?f=120
Link zur Dokumentation: https://helpfiles.matrix42-web.de/2023_ ... 257C_____0
Eine 30 Tage Testlizenz startet automatisch mit dem ersten Start des MPRs.
Ansonsten gibt es auch einen separaten Bereich in diesem Forum dafür:
viewforum.php?f=120
Link zur Dokumentation: https://helpfiles.matrix42-web.de/2023_ ... 257C_____0
Eine 30 Tage Testlizenz startet automatisch mit dem ersten Start des MPRs.
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.
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.
Re: Software benötigt Adminrechte
Ist es möglich, bei der normalen Paketierung die Exe-Datei dem Benutzer oder einer Gruppe mit Administratorrechten zuzuweisen?Hendrik_Ambrosius wrote: ↑25. Sep 2023, 13:14 Einen Einstieg können Sie über dieses Video bekommen: https://www.youtube.com/watch?v=ef1zLul9juc
Ansonsten gibt es auch einen separaten Bereich in diesem Forum dafür:
viewforum.php?f=120
Link zur Dokumentation: https://helpfiles.matrix42-web.de/2023_ ... 257C_____0
Eine 30 Tage Testlizenz startet automatisch mit dem ersten Start des MPRs.
-
- Moderator
- Posts: 7969
- Joined: 13. Dec 2004, 23:10
- Location: Adendorf/Lüneburg
Re: Software benötigt Adminrechte
Meinen Sie mit Zuweisen das Ausführen der Datei mit einem anderen Benutzer? Das geht ggf. via CALLRUNAS
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.
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.
Re: Software benötigt Adminrechte
Ich habe zwei verschiedene Probleme:
1 - Die Software benötigt Admin-Rechte, um ausgeführt werden zu können, da etwas auf AppData ausgeführt werden soll.
2 - Die Software kann installiert werden, aber wenn der Benutzer sie ausführen möchte, benötigt er auch Administratorrechte, um ein anderes Paket herunterzuladen.
Das Problem mit CallRun ist, dass jeder das Passwort unter C:\ProgramData\$Matrix42Scripts$ aufrufen kann.
1 - Die Software benötigt Admin-Rechte, um ausgeführt werden zu können, da etwas auf AppData ausgeführt werden soll.
2 - Die Software kann installiert werden, aber wenn der Benutzer sie ausführen möchte, benötigt er auch Administratorrechte, um ein anderes Paket herunterzuladen.
Das Problem mit CallRun ist, dass jeder das Passwort unter C:\ProgramData\$Matrix42Scripts$ aufrufen kann.
-
- Moderator
- Posts: 7969
- Joined: 13. Dec 2004, 23:10
- Location: Adendorf/Lüneburg
Re: Software benötigt Adminrechte
Das Passwort kann verschlüsselt hinterlegt werden:
https://helpfiles.matrix42-web.de/2023_ ... yption.htm
Damit wäre aber auch nicht Punkt 2 abgedeckt, dazu habe ich keine Idee ohne den Benutzern wirklich Admin-Rechte zu geben.
https://helpfiles.matrix42-web.de/2023_ ... yption.htm
Damit wäre aber auch nicht Punkt 2 abgedeckt, dazu habe ich keine Idee ohne den Benutzern wirklich Admin-Rechte zu geben.
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.
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.
Re: Software benötigt Adminrechte
Wenn ich also die folgenden Parameter hinzufüge, können die Benutzer das Kennwort nicht über Setup.inf sehen?
Ist es möglich, einen lokalen Admin-Benutzer für diese Aufgaben zu verwenden?
Herzlichen Dank für die Hilfe.
Code: Select all
[Encryption]
Password=Beispiel123
[Set:Install]
CallRunAs /U:"Domäne"\"User" /P:"Encrypted" "%Src%\Setup.exe"
Herzlichen Dank für die Hilfe.
Re: Software benötigt Adminrechte
Ich habe das Folgende getestet, aber es hat nicht funktioniert:
Code: Select all
[SetupInfo]
Author =
CreationDate =
InventoryID =
Description =
Method =
Tested on =
Dependencies =
Command line options =
Last Change =
Build =
[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=
DeveloperName=
Version=
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]
Password=Test
[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
CallRunas /U:Admin /P:Encrypted "%Src%\Setup.exe"
[Set:Deinstallation]
If "%ErrorLevel%" <> "0" Then "SET:DeInstallationError" EndIf
-Call "%Src%\Setup.exe"
-AddMeter -1
[Reg:OnUninstallProduct]
[Reg:Product]
[Ini:Product]
[Security:Product]
[Shell:Product]
[Set:InstallationError]
ErrorLogMsg %ErrorText% %ErrorLevel% %CallingText% Setup.exe
Abort
[Set:DeInstallationError]
-Abort
-ErrorLogMsg %ErrorText% %ErrorLevel% %CallingText% Setup.exe
-
- Moderator
- Posts: 7969
- Joined: 13. Dec 2004, 23:10
- Location: Adendorf/Lüneburg
Re: Software benötigt Adminrechte
Das Passwort muss in der Encryption Sektion SETUP-verschlüsselt stehen.
https://helpfiles.matrix42-web.de/2023_ ... pCrypt.htm
Startet dann mit einem Stern, z.B.
pw=*huh43i345
https://helpfiles.matrix42-web.de/2023_ ... pCrypt.htm
Startet dann mit einem Stern, z.B.
pw=*huh43i345
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.
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.
Re: Software benötigt Adminrechte
Ich habe das Passwort wie in der Dokumentation generiert und unter Encryption gespeichert und dann versucht, es über einen lokalen Benutzer auszuführen, es kommt eine Fehlermeldung:
Fehler 1326
Macht das einen Unterschied, wenn es auf appdata läuft?
CallRunAs /U:"Administrator" /P:"Password" "%App%\Software\Setup.exe"
Fehler 1326
Code: Select all
[Encryption]
Password=*generiertespw
CallRunAs /U:"Administrator" /P:"Password" "%Src%\Setup.exe"
CallRunAs /U:"Administrator" /P:"Password" "%App%\Software\Setup.exe"
-
- Moderator
- Posts: 7969
- Joined: 13. Dec 2004, 23:10
- Location: Adendorf/Lüneburg
Re: Software benötigt Adminrechte
Nur um Sicherzugehen: Das CallRunAs steht in der SET:Product Sektion, oder?
Fehler 1326 heißt, dass das Passwort falsch ist.
Versuchen Sie mal ".\Administrator" statt "Administrator" um klarzustellen dass der lokale Admin benutzt wird.
Und das PW muss als Variable übergeben werden: %password%
Optional kann man auch einen temporären Admin im Rahmen des Scripts über die SECURITY-Sektion anlegen und hinterher wieder löschen. Das wäre noch sicherer als ein verschlüsseltes PW.
Fehler 1326 heißt, dass das Passwort falsch ist.
Versuchen Sie mal ".\Administrator" statt "Administrator" um klarzustellen dass der lokale Admin benutzt wird.
Und das PW muss als Variable übergeben werden: %password%
Optional kann man auch einen temporären Admin im Rahmen des Scripts über die SECURITY-Sektion anlegen und hinterher wieder löschen. Das wäre noch sicherer als ein verschlüsseltes PW.
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.
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.
Re: Software benötigt Adminrechte
Ich konnte den Befehl wie folgt ausführen:
Das Problem ist, dass die Software auf Benutzerebene unter AppData installiert wird. Das bedeutet, dass die Installation dann für den gewünschten Benutzer fehlt.
Ist es eine Lösung, dem Benutzer, der die Software installieren möchte, vorher lokale Admin-Rechte zu geben und diese am Ende wieder zu entziehen, und wenn ja, wie kann ich das umsetzen?
Code: Select all
CallRunAs /U:"Domäne"\"Benutzerr" /P:"%password%" "%APP%\Software\Setup.exe"
Ist es eine Lösung, dem Benutzer, der die Software installieren möchte, vorher lokale Admin-Rechte zu geben und diese am Ende wieder zu entziehen, und wenn ja, wie kann ich das umsetzen?
Re: Software benötigt Adminrechte
Ich habe Folgendes versucht, aber ohne Erfolg:
Code: Select all
[Product]
; ReplaceEnv <Variable>
#CopyFiles, MACHINE
#LocalAdmin
#Set:Product, DONTDELETE
#LocalAdminDelete
#Set:Deinstallation, DELETE
;#Shell:Product
[CopyFiles]
AddMeter -1
Copy "%Src%\%VM_SourceDir%\Setup.exe" "%APP%\Software\Setup.exe"
[Set:Product]
AddMeter -1
If DoesRegKeyExist ("HKCU,SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\(String)") == "1" Then "Set:Repair" Else "Set:Installation" EndIf
[Set:Repair]
AddMeter -1
AskKillProcesses 20, Software
Sleep 2000
CallRunAs "%LocalAdminRights_User%" "%APP%\Software\Setup.exe"
Sleep 5000
If DoesRegKeyExist ("HKCU,SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\(String)"") == "0") Then "Set:InstallError" EndIf
If "%ErrorLevel%" != "0" & "%ErrorLevel%" != "3010" Then "Set:InstallError" EndIf
[Set:Installation]
AddMeter -1
AskKillProcesses 20, Software
Sleep 2000
CallRunAs "%LocalAdminRights_User%" "%APP%\Software\Setup.exe"
Sleep 5000
If DoesRegKeyExist ("HKCU,SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\(String)"") == "0") Then "Set:InstallError" EndIf
If "%ErrorLevel%" != "0" & "%ErrorLevel%" != "3010" Then "Set:InstallError" EndIf
[Set:Deinstallation]
If "%ErrorLevel%" != "0" & "%ErrorLevel%" != "3010" Then "Set:UninstallError" EndIf
-Sleep 5000
-Call %HKCU,SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\(String),QuietUninstallString%
-Sleep 5000
-AskKillProcesses 20, Software
-AddMeter -1
[LocalAdmin]
ReplaceEnv LocalAdminRights_User
call net localgroup Administrators %LocalAdminRights_User% /add
[LocalAdminDelete]
-call net localgroup Administrators %LocalAdminRights_User% /del
-ReplaceEnv LocalAdminRights_User
[Shell:Product]
[Set:InstallError]
Set ErrorOutput=%ErrorLogMessage% ErrorLevel: %ErrorLevel%
ErrorLogMsg %ErrorOutput%
Abort %ErrorOutput%
[Set:UninstallError]
Set ErrorOutput=%ErrorLogMessage% ErrorLevel: %ErrorLevel%
ErrorLogMsg %ErrorOutput%
Abort %ErrorOutput%
-Abort %ErrorOutput%
-ErrorLogMsg %ErrorOutput%
-Set ErrorOutput=%ErrorLogMessage% ErrorLevel: %ErrorLevel%
Who is online
Users browsing this forum: No registered users and 2 guests