DosBatch Installation schlägt Fehl
DosBatch Installation schlägt Fehl
Guten Tag,
ich habe ein Problem bei der Deinstallation eines Programmes,Ich werde gefragt ob ich mir sicher bin dies zu deinstallieren und muss mit Ja bestätigen kann man dies mit Hilfe eines Befehls oder Skriptes umgehen ? ein Parameter für die Silent Installation wurde bereits gesetzt hat aber nicht funktioniert.
ich habe ein Problem bei der Deinstallation eines Programmes,Ich werde gefragt ob ich mir sicher bin dies zu deinstallieren und muss mit Ja bestätigen kann man dies mit Hilfe eines Befehls oder Skriptes umgehen ? ein Parameter für die Silent Installation wurde bereits gesetzt hat aber nicht funktioniert.
Zuletzt geändert von Starlord am 19 Jun 2019, 10:28, insgesamt 1-mal geändert.
Re: Deinstallations Probleme
Servus,
hast es mal über WMIC mit "nointeractive" probiert?
Ansonsten geht der Weg nur noch über Autoit oder einer eigenen Deinstallationsroutine.
hast es mal über WMIC mit "nointeractive" probiert?
Ansonsten geht der Weg nur noch über Autoit oder einer eigenen Deinstallationsroutine.
Re: Deinstallations Probleme
Wir haben es gerade ausprobiert, leider ist es aber so das das Programm keine MSI Datei ist bzw aufgrunddessen wird die bei wmic nicht mit aufgelistet.
- SisterOfMercy
- Beiträge: 1522
- Registriert: 22 Jun 2012, 19:18
Re: Deinstallations Probleme
Well, what kind of installer is it then?
Can I download it somewhere to see?
Can I download it somewhere to see?
Bitte schreiben Sie Deutsch, when I'm responding in the German-speaking part of the forum!
- n.wenselowski
- Ex-uib-Team
- Beiträge: 3194
- Registriert: 04 Apr 2013, 12:15
Re: Deinstallations Probleme
Hi,
Sowas wird im Getting Started beschrieben - dort wird mittels AutoIt ein ähnliches Fenster weggeclickt.Starlord hat geschrieben:Guten Tag,
ich habe ein Problem bei der Deinstallation eines Programmes,Ich werde gefragt ob ich mir sicher bin dies zu deinstallieren und muss mit Ja bestätigen kann man dies mit Hilfe eines Befehls oder Skriptes umgehen ? ein Parameter für die Silent Installation wurde bereits gesetzt hat aber nicht funktioniert.
Code: Alles auswählen
import OPSI
Re: Deinstallations Probleme
Hallo, kurzes Update
wir haben das Problem gelöst mithilfe dieses Beitrages
I've been struggling with the silent uninstaller for a while, and finally came to a solution that works for me in most cases, both for InstallShield v6 and v7.
1. First (as it was mentioned above), you have to generate an InstallShield Response file (e.g. uninstall.iss). In order to do that you have to launch your setup.exe with parameters:
> setup.exe -x -r -f1"C:\Your\Installer\Location\uninstall.iss"
This will go through the normal uninstall wizard and generate a Response file for you: uninstall.iss
2. Then, before trying your silent uninstaller, I guess, you should re-install the software.
3. And finally, run your silent uninstaller playing back the recently generated Response file:
> setup.exe -x -s -l0x9 -ARP -f1"C:\Your\Installer\Location\uninstall.iss"
That's it.
Now, a few important notes:
Note 1: I'm working with a 3-rd party installation package that I didn't build myself.
Note 2: I use dashes (-) instead of slashes (/) to define parameters. For some reason it doesn't work with slashes for me. Weird but true.
Note 3: The -ARP and -l switches are required for some installation packages to manage the software removal from the Add/Remove Programs list and to preset the default input language accordingly.
Successful silent uninstallation is all about the correct parameters! So keep exploring, the correct parameters vary depending on a specific package and installer version.
I hope my input was helpful.
Wir konnten die Deinstallation erfolgreich durchführen, jedoch stehen wir jetzt vor dem Problem, dass wir wenn wir das Script über Opsi als System User starten eine Fehlermeldung bekommen. Exitcode 1620 kann damit vielleicht jemand was anfangen ?
wir haben das Problem gelöst mithilfe dieses Beitrages
I've been struggling with the silent uninstaller for a while, and finally came to a solution that works for me in most cases, both for InstallShield v6 and v7.
1. First (as it was mentioned above), you have to generate an InstallShield Response file (e.g. uninstall.iss). In order to do that you have to launch your setup.exe with parameters:
> setup.exe -x -r -f1"C:\Your\Installer\Location\uninstall.iss"
This will go through the normal uninstall wizard and generate a Response file for you: uninstall.iss
2. Then, before trying your silent uninstaller, I guess, you should re-install the software.
3. And finally, run your silent uninstaller playing back the recently generated Response file:
> setup.exe -x -s -l0x9 -ARP -f1"C:\Your\Installer\Location\uninstall.iss"
That's it.
Now, a few important notes:
Note 1: I'm working with a 3-rd party installation package that I didn't build myself.
Note 2: I use dashes (-) instead of slashes (/) to define parameters. For some reason it doesn't work with slashes for me. Weird but true.
Note 3: The -ARP and -l switches are required for some installation packages to manage the software removal from the Add/Remove Programs list and to preset the default input language accordingly.
Successful silent uninstallation is all about the correct parameters! So keep exploring, the correct parameters vary depending on a specific package and installer version.
I hope my input was helpful.
Wir konnten die Deinstallation erfolgreich durchführen, jedoch stehen wir jetzt vor dem Problem, dass wir wenn wir das Script über Opsi als System User starten eine Fehlermeldung bekommen. Exitcode 1620 kann damit vielleicht jemand was anfangen ?
- SisterOfMercy
- Beiträge: 1522
- Registriert: 22 Jun 2012, 19:18
Re: Deinstallations Probleme
Uh, wasn't installshield also capable to contain an msi? Then that's the installer I don't use. Run the installer on a test machine, grab the msi file from the temp directory, and use that.Starlord hat geschrieben:1. First (as it was mentioned above), you have to generate an InstallShield Response file (e.g. uninstall.iss). In order to do that you have to launch your setup.exe with parameters:
In some cases they need the isscript.msi installed first, but I've only had that with one package.
https://docs.microsoft.com/en-us/window ... rror-codes says:Starlord hat geschrieben:Wir konnten die Deinstallation erfolgreich durchführen, jedoch stehen wir jetzt vor dem Problem, dass wir wenn wir das Script über Opsi als System User starten eine Fehlermeldung bekommen. Exitcode 1620 kann damit vielleicht jemand was anfangen ?
"ERROR_INSTALL_PACKAGE_INVALID 1620 This installation package could not be opened. Contact the application vendor to verify that this is a valid Windows Installer package."
So, show your uninstall script.
Bitte schreiben Sie Deutsch, when I'm responding in the German-speaking part of the forum!
Re: Deinstallations Probleme
Code: Alles auswählen
[Actions]
requiredWinstVersion >= "4.10.8.12"
Winbatch_install_exe
Winbatch_install_exe_1
DosBatch_install
[Winbatch_install_exe]
msiexec.exe /x "\\location\of\the\msi\file\ Client.msi" /qn
[Winbatch_install_exe_1]
"C:\Program Files (x86)\InstallShield Installation Information\{A0ED3DA1-421C-4E16-85BE-310B21ED538A}\setup.exe" -x -s -l0x9 -ARP -f1"\\location\of\the\uninstall\file\uninstall.iss" -runfromtemp -removeonly
[DosBatch_install]
"\\location\of\the\common\batch\installationfile\pa-client.bat" /qn
Wenn ich das Script als Admin starte per Hand, dann wird es Einwand frei ausgeführt und funktioniert. Wenn ich das Skript jedoch über den opsi-config editor zuweise auf einem Rechner, wird das Skript dort Fehlerhaft ausgeführt. Wir glauben an Berechtigungsprobleme. Ich habe nach Möglichen Lösungen geguckt, wie zum Beispiel Opsi-template-with-admin, jedoch kann ich dies nicht nachvollziehen bzw. bräuchte hierfür eine genaue erklärung wie ich dies mache, da ich aus dem Handbuch nicht schlau werde.
Re: Deinstallations Probleme
Servus,
würde dir raten Setups immer erst auf den Clienten zu kopieren, da Remote-Setups gerne genaua zu solchen Problemen führen.
VG
würde dir raten Setups immer erst auf den Clienten zu kopieren, da Remote-Setups gerne genaua zu solchen Problemen führen.
VG
- SisterOfMercy
- Beiträge: 1522
- Registriert: 22 Jun 2012, 19:18
Re: Deinstallations Probleme
I think you want to search the manual for %scriptpath%.
https://download.uib.de/opsi4.0/doc/htm ... anual.html
This assumes you have created a directory in your opsi package (in the directory where the .opsiscript files reside), and put your client.msi, uninstall.iss and pa-client.bat there
https://download.uib.de/opsi4.0/doc/htm ... anual.html
Code: Alles auswählen
[Winbatch_install_exe]
msiexec.exe /x "%scriptpath%\files\Client.msi" /qn
[Winbatch_install_exe_1]
"C:\Program Files (x86)\InstallShield Installation Information\{A0ED3DA1-421C-4E16-85BE-310B21ED538A}\setup.exe" -x -s -l0x9 -ARP -f1"%scriptpath%\files\uninstall.iss" -runfromtemp -removeonly
[DosBatch_install]
"%scriptpath%\files\pa-client.bat" /qn
Bitte schreiben Sie Deutsch, when I'm responding in the German-speaking part of the forum!