Deinstallation-Part wird nicht benutzt

Post Reply
richtborsi
Posts: 25
Joined: 24. May 2017, 14:05
Contact:

Deinstallation-Part wird nicht benutzt

Post by richtborsi » 14. Dec 2017, 15:25

Liebe Community,

ich bin wieder an einem Paket, bei dem ich leider nicht weiter komme. Es handelt sich um die Installation von DWG-TrueView 2018.

Die Installation ist kein Problem - für die Deinstallation habe ich eigentlich auch genug Material bei Google & Co Gefunden.

Jetzt habe ich aber das Problem, dass egal was ich im SET:Deinstallation-Teil meines Skriptes eintrage - nichts davon

ausgeführt wird. Das Skript starte ich zum deinstallieren immer mit /U - habe auch schon versucht mit Breakpoints und dem debugging-Modus zu arbeiten.

Ich bin um jede Hilfe dankbar, wie ich so eine Situation am besten angehe :)!

anbei der Teil des Skriptes, der mir Kopfzerbrechen bereitet.

Vielen Dank!

Code: Select all

#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%\files\setup.exe" /qb
If "%ErrorLevel%" <> "0" Then "SET:InstallationError" EndIf

[Set:Deinstallation]
If "%ErrorLevel%" <> "0" Then "SET:DeInstallationError" EndIf

-Call "C:\Program Files\Autodesk\DWG TrueView 2012\Setup\Setup.exe" /P {5783F2D7-A028-0409-0000-0060B0CE6BBA} /M AOEM /language e
-AddMeter -1

User avatar
r.wiegel
Posts: 903
Joined: 05. Feb 2010, 13:45
Location: Regensburg
Contact:

Re: Deinstallation-Part wird nicht benutzt

Post by r.wiegel » 14. Dec 2017, 16:05

Hallo,

ist das ein 32-Bit oder 64-Bit Viewer? Welchen Wert hat die Option Platform?
Den Pfad "C:\Program Files\" würde ich variabilisieren.
Viele Grüße
Roman Wiegel
IT-Consultant

MR Datentechnik - Vertriebs- und Service GmbH

richtborsi
Posts: 25
Joined: 24. May 2017, 14:05
Contact:

Re: Deinstallation-Part wird nicht benutzt

Post by richtborsi » 19. Dec 2017, 13:18

Hallo Herr Wiegel,

vielen Dank für Ihre Antwort! Anbei habe ich nochmal die komplette Setup.inf gepostet.

Wenn ich den UninstallString aus der Registry in die Eingabeaufforderung kopiere wird die Deinstallation korrekt ausgeführt.

Nur über die setup.inf funktioniert das ganze nicht :-(


Code: Select all

[SetupInfo]
Author                  =administrator
CreationDate            =14.12.2017 12:45:04
InventoryID             =
Description             =DWG TrueView 2018
Method                  =Unattended	
Tested on               =Win7 x64
Dependencies            =
Command line options    =/S2
Last Change             =
Build                   =1

[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=DWG TrueView
DeveloperName=Autodesk
Version=2018
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,                             , NORMAL,                                             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%\files\setup.exe" /qb
If "%ErrorLevel%" <> "0" Then "SET:InstallationError" EndIf

[Set:Deinstallation]
If "%ErrorLevel%" <> "0" Then "SET:DeInstallationError" EndIf

-Call "C:\Program Files\Autodesk\DWG TrueView 2012\Setup\Setup.exe" /P {5783F2D7-A028-0409-0000-0060B0CE6BBA} /M AOEM /language e
-AddMeter -1

[Reg:OnUninstallProduct]

[Reg:Product]

[Ini:Product]

[Security:Product]

[Shell:Product]

[Set:InstallationError]
ErrorLogMsg %ErrorText% %ErrorLevel% %CallingText% files\DWGTrueView_2018_ENU_64bit.sfx.exe
Abort

[Set:DeInstallationError]
-Abort
-ErrorLogMsg %ErrorText% %ErrorLevel% %CallingText% files\DWGTrueView_2018_ENU_64bit.sfx.exe

User avatar
r.wiegel
Posts: 903
Joined: 05. Feb 2010, 13:45
Location: Regensburg
Contact:

Re: Deinstallation-Part wird nicht benutzt

Post by r.wiegel » 20. Dec 2017, 11:44

Es handelt sich also um eine 2018-Version, der Pfad verweist jedoch auf die Version 2012?:
C:\Program Files\Autodesk\DWG TrueView 2012\Setup\Setup.exe"

Eine Deinstallation von "DWG TrueView 2018 - English" 64-Bit erfolgt mit dem Aufruf:
Call msiexec /x {28B89EEF-1028-0409-0100-CF3F3A09B77D} /qn
Viele Grüße
Roman Wiegel
IT-Consultant

MR Datentechnik - Vertriebs- und Service GmbH

richtborsi
Posts: 25
Joined: 24. May 2017, 14:05
Contact:

Re: Deinstallation-Part wird nicht benutzt

Post by richtborsi » 21. Dec 2017, 09:16

Hallo Herr Wiegel,

vielen Dank! :-)

Kann ich mit MSIEXEC jedes Programm direkt aufrufen, das in der Registry unter einer bestimmten ID {2342344324} aufgeführt ist?

beste Grüße!

PetCh01

Re: Deinstallation-Part wird nicht benutzt

Post by PetCh01 » 09. Jan 2018, 15:44

Das ist der normale uninstall Parameter der im System hinterlegt ist:
zb. zu finden unter:

Image

Bildvollständig:
https://abload.de/img/picetscs.png

Code: Select all

HKLM,"SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\%produktname%
@Kann ich mit MSIEXEC jedes Programm direkt aufrufen, das in der Registry unter einer bestimmten ID {2342344324} aufgeführt ist?
- Ja, sofern es eine .msi ist geht das. Das Format ist standardisiert und die Parameter i.d.R. auch.

Post Reply

Return to “Paketierung”

Who is online

Users browsing this forum: No registered users and 15 guests