PDF Creator 1.7.3 löscht RegKey nicht

Willkommen in unserer deutschsprachigen Anwendergemeinde.
Stellen Sie ruhig ihre Fragen oder teilen Sie ihr Wissen mit anderen.

Moderator: hdroege

Post Reply
Tim Freiberg
Posts: 6
Joined: 08. Sep 2014, 10:27
Contact:

PDF Creator 1.7.3 löscht RegKey nicht

Post by Tim Freiberg » 09. Sep 2014, 08:33

Hallo zusammen

ich habe ein Problem mit dem installieren vom PDF Creator 1.7.3. Bei der Installation wird der RegKey nicht in HKLM\Software\PDFForge\PDFCreator\1.7.3 angelegt, dafür aber in HKLM\Software\Wow6432Node\PDFForge\PDFCreator\1.7.3. Ein weiteres Problem ist, dass der RegKey von der älteren Version nicht gelöscht wird und Matrix42 das Package immer noch als installiert betrachet. Weil die Version 1.7.3 den RegKey wo anders anlegt wird diese in Matrix jedoch als nicht installiert angezeigt.

Anbei ist die Setup.inf von 1.7.3

Vielen Dank im Vorraus

Code: Select all

[SetupInfo]
Author                  =freiberg
CreationDate            =20.08.2014 16:12:40
InventoryID             =
Description             =
Method                  =
Tested on               =
Dependencies            =
Command line options    =/S2
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=X86

[Requirements]

[Application]
ProductName=PDFCreator
DeveloperName=PDFForge
Version=1.7.3
Revision=0
SetupName=%ProductName% %Version% %SetupWizard%
Text1="%ProductName%",                                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,0,BOTTOM LEFT ITALIC
BackgroundColor=EFEFEF,000000
CopyDialogRect=0%, 0%, 100%, 100%, HCENTER VCENTER
UserKeyName=%DeveloperName%\%ProductName%
MachineKeyName=%DeveloperName%\%ProductName%\%Version%
UninstallKeyName=%DeveloperName% %ProductName% %Version%
UninstallDisplayName=%ProductName% %Version%
UninstallString=%ReinstallString% /U
ReinstallString="%CommonSetupDir%\Setup.exe" "%App%\%SetupInfDir%\Setup.inf"
ReinstallMode=1
SrcDir=..
ApplicationDir=%ProgramFilesDir%\%ProductName%
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%
HideUninstall=1

[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:%SetupInfDir%\Setup.inf,                             , NORMAL,                                             0
1:%Temp%\Setup64.exe,                  %CommonSetupDir%\Setup.exe, OPTIONAL NOSIZEWARNING SETUP ALWAYS WINDOWS64,      0

[FileCheckMachine]
ReplaceEnv V_MachineValuesPath
If DoesFileExist ("%V_MachineValuesPath%\%ComputerName%.ini") == "0" Then "FileIsntThere" EndIf

[FileCheckClient]
ReplaceEnv V_UserValuesPath
If "%UserDomain%" <> "%ComputerName%" Then "CheckClientFile" EndIf

[CheckClientFile]
If DoesFileExist ("%V_UserValuesPath%\%WindowsUser%.ini") == "0" Then "FileIsntThere" EndIf

[FileIsntThere]
ErrorLogMsg Values$\MachineValues\%DomainName%\%ComputerName%.ini or Values$\UserValues\%UserDomain%\%WindowsUser%.ini not found!
Abort

[Product]
;#FileCheckMachine, MACHINE
;#FileCheckClient, CLIENT
;ReplaceEnv <Variable>

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

[Set:Product]

[Set:Altinstallation]
If DoesRegKeyExist ("HKLM,SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{0001B4FD-9EA3-4D90-A79E-FD14BA3AB01D},UnInstallString") == "1" | DoesRegKeyExist("HKLM,SOFTWARE\PDFForge\PDFCreator\1.7.2\Setup,UninstallString") =="1" Then "UninstallOld" EndIf
[Uninstallold]
If DoesFileExist ("C:\Program Files (x86)\PDFCreator\unins000.exe") == "1" Then "Uninstall000" ELSE "Uninstall001" EndIf
[Uninstall000]
Call "C:\Program Files (x86)\PDFCreator\unins000.exe" /SILENT
[Uninstall001]
Call "C:\Program Files (x86)\PDFCreator\unins001.exe" /SILENT
[Set:Installation]
AddMeter -1
Call "%Src%\PDFCreator-1_7_3_setup.exe" /LOADINF="%Src%\PDFCreator_1.7.3.inf" /SILENT /ForceInstall
If %ErrorLevel% <> "0" Then "Set:InstallationError" endif 

[Set:Deinstallation]
If DoesFileExist ("%Src%\PDFCreator\unins000.exe") == "1" Then "Deinstall000" Else "Deinstall001" Endif 

[Deinstall000] 
If %ErrorLevel% <> "0" Then "Set:DeInstallationError" EndIf
-Call "C:\Program Files (x86)\PDFCreator\unins000.exe" /SILENT
-AddMeter -1

[Deinstall001]
If %errorLevle% <> "0" Then "Set:DeInstallationError" Endif
-Call "C:\Program Files (x86)\PDFCreator\unins000.exe" /SILENT
-AddMeter -1

[Reg:OnUninstallProduct]

[Reg:Product]
-HKLM,"SOFTWARE\PDFForge\"
;-HKLM,"SOFTWARE\PDFForge\PDFCreator\1.7.0"
[Ini:Product]

[Security:Product]

[Shell:Product]

[Set:InstallationError]
ErrorLogMsg %ErrorText% %ErrorLevel% %CallingText% PDFCreator-1_7_3_setup.exe
Abort

[Set:DeInstallationError]
-Abort
-ErrorLogMsg %ErrorText% %ErrorLevel% %CallingText% PDFCreator-1_7_3_setup.exe


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

Re: PDF Creator 1.7.3 löscht RegKey nicht

Post by r.wiegel » 09. Sep 2014, 09:00

Hallo Tim,

das Verhalten mit dem Key in Registry ist korrekt. Es handelt sich um ein 32-Bit Programm auf einem 64-Bit OS. Daher werden Keys in einem 32-Bit Subsystem (...\Wow6432Node\...) geschrieben. Wichtig ist, dass bei einem 32-Bit Programm Platform auf x86 steht.

Wurde die Version 1.7.2 auch über Empirum verteilt? Stimmt der Key?: {0001B4FD-9EA3-4D90-A79E-FD14BA3AB01D}
P.S. Alle Pfade sollten variabilisiert werden: %ProgramFiles%

Viele Grüße
Roman
Viele Grüße
Roman Wiegel
IT-Consultant

MR Datentechnik - Vertriebs- und Service GmbH

Tim Freiberg
Posts: 6
Joined: 08. Sep 2014, 10:27
Contact:

Re: PDF Creator 1.7.3 löscht RegKey nicht

Post by Tim Freiberg » 09. Sep 2014, 14:44

Hallo Roman

vielen Dank für deine schnelle Anwort. Die Version 1.7.2 wurde auch über Empirium verteilt und der RegKey stimmt soweit. Die Installation von der Version 1.7.3 funktioniert auch gut, bis auf das anlegen des RegKeys.

P.S. An den nicht variabilisierten Pfaden lag es leider nicht.

Viele Grüße
Tim

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

Re: PDF Creator 1.7.3 löscht RegKey nicht

Post by r.wiegel » 09. Sep 2014, 15:54

Ich hätte es so probiert:

Code: Select all

[Product]
...
#Set:Product,DONTDELETE
#Set:Installation,DONTDELETE
...
[Set:Product]
If DoesRegKeyExist ("HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{0001B4FD-9EA3-4D90-A79E-FD14BA3AB01D},UnInstallString") == "1" Then "UninstallOld" EndIf

[Uninstallold]
Set V_UninstallString=%HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{0001B4FD-9EA3-4D90-A79E-FD14BA3AB01D},UnInstallString%
;Echo %V_UninstallString%
Call "%V_UninstallString%" /VERYSILENT

[Set:Installation]
AddMeter -1
Call "%Src%\PDFCreator-1_7_3_setup.exe" /LOADINF="%Src%\PDFCreator_1.7.3.inf" /SILENT /ForceInstall
If %ErrorLevel% <> "0" Then "Set:InstallationError" endif
Grundsätzlich ist es so, wenn AskUninstallOld=1 und das alte Paket sich sauber deinstalieren ließ, dann wird die Deinstallation allein über den Aufruf aus dem alten Paket deinstalliert, ohne das man es in einem neuen Paket abfangen muss...
Viele Grüße
Roman Wiegel
IT-Consultant

MR Datentechnik - Vertriebs- und Service GmbH

Tim Freiberg
Posts: 6
Joined: 08. Sep 2014, 10:27
Contact:

Re: PDF Creator 1.7.3 löscht RegKey nicht

Post by Tim Freiberg » 10. Sep 2014, 13:59

Hallo Roman,

alles hat super funktioniert, bis auf das Löschen des RegKey von der Version 1.7.2. Hast du da noch eine Idee?
Vielen Dank schon mal.

Viele Grüße

Tim

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

Re: PDF Creator 1.7.3 löscht RegKey nicht

Post by r.wiegel » 10. Sep 2014, 14:21

Hallo Tim,

versuche bitte so:

Code: Select all

[Uninstallold]
...
Call "%V_UninstallString%" /VERYSILENT
CallHidden cmd.exe /c reg delete "HKLM\SOFTWARE\PDFForge\PDFCreator\1.7.2" /f
Viele Grüße
Roman
Viele Grüße
Roman Wiegel
IT-Consultant

MR Datentechnik - Vertriebs- und Service GmbH

Tim Freiberg
Posts: 6
Joined: 08. Sep 2014, 10:27
Contact:

Re: PDF Creator 1.7.3 löscht RegKey nicht

Post by Tim Freiberg » 11. Sep 2014, 07:30

Hallo Roman,

das Löschen über cmd.exe hat leider auch nicht funktioniert. Hast du noch eine andere Idee?

Viele Grüße
Tim

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

Re: PDF Creator 1.7.3 löscht RegKey nicht

Post by r.wiegel » 11. Sep 2014, 08:18

Kann sein, dass der Schlüssel von der Version 1.7.2 hier steht?:
HKLM\Software\PDFForge\PDFCreator\1.7.2
Um dem Problem auf die Spur zu kommen, müssen die Setup.inf's der 1.7.2 und 1.7.3 verglichen werden.

Wegen Platfrom=x86 werden alle Reg-Befehle in Wow6432Node ausgeführt:
HKLM\Software\Wow6432Node\PDFForge\PDFCreator\1.7.2
Wenn das so ist, würde ich AskUninstallOld auf 0 setzen:

[Application]
...
AskUninstallOld=0
Somit wird das alte Paket nicht mehr zum Problem. Der Key muss aber dennoch gelöscht werden, mit GPO, einem CleanUp Paket oder mal eine Zeile zum Löschen in einem Paket mit Platform=*
Viele Grüße
Roman Wiegel
IT-Consultant

MR Datentechnik - Vertriebs- und Service GmbH

Tim Freiberg
Posts: 6
Joined: 08. Sep 2014, 10:27
Contact:

Re: PDF Creator 1.7.3 löscht RegKey nicht

Post by Tim Freiberg » 11. Sep 2014, 08:55

Hallo Roman,

ja der Schlüssel steht in HKLM\Software\PDFForge\PDFCreator\1.7.2. Anbei sind die beiden Setup.inf.

Code: Select all

[SetupInfo]
Author                  =XXXXX
CreationDate            =10.01.2014 11:13:07
InventoryID             =
Description             =
Method                  =
Tested on               =
Dependencies            =
Command line options    =/S1
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=x86

[Requirements]

[Application]
ProductName=PDFCreator
DeveloperName=PDFForge
Version=1.7.2
Revision=0
SetupName=%ProductName% %Version% %SetupWizard%
Text1="%ProductName%",                                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,0,BOTTOM LEFT ITALIC
BackgroundColor=EFEFEF,000000
CopyDialogRect=0%, 0%, 100%, 100%, HCENTER VCENTER
UserKeyName=%DeveloperName%\%ProductName%
MachineKeyName=%DeveloperName%\%ProductName%\%Version%
UninstallKeyName=%DeveloperName% %ProductName% %Version%
UninstallDisplayName=%ProductName% %Version%
UninstallString=%ReinstallString% /U
ReinstallString="%CommonSetupDir%\Setup.exe" "%App%\%SetupInfDir%\Setup.inf"
ReinstallMode=1
SrcDir=..
ApplicationDir=%ProgramFilesDir%\%ProductName%
SetupInfDir=Install
DataDir=%Personal%
AskUninstallOld=0
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:%SetupInfDir%\Setup.inf,                             , NORMAL,                                             0
1:%Temp%\Setup64.exe,                  %CommonSetupDir%\Setup.exe, OPTIONAL NOSIZEWARNING SETUP ALWAYS WINDOWS64,      0

[FileCheckMachine]
ReplaceEnv V_MachineValuesPath
If DoesFileExist ("%V_MachineValuesPath%\%ComputerName%.ini") == "0" Then "FileIsntThere" EndIf

[FileCheckClient]
ReplaceEnv V_UserValuesPath
If "%UserDomain%" <> "%ComputerName%" Then "CheckClientFile" EndIf

[CheckClientFile]
If DoesFileExist ("%V_UserValuesPath%\%WindowsUser%.ini") == "0" Then "FileIsntThere" EndIf

[FileIsntThere]
ErrorLogMsg Values$\MachineValues\%DomainName%\%ComputerName%.ini or Values$\UserValues\%UserDomain%\%WindowsUser%.ini not found!
Abort

[Product]
;#FileCheckMachine, MACHINE
;#FileCheckClient, CLIENT
;ReplaceEnv <Variable>

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

[Set:Product]

[Set:Altinstallation]
If DoesRegKeyExist ("HKLM,SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{0001B4FD-9EA3-4D90-A79E-FD14BA3AB01D},UnInstallString") == "1" | DoesRegKeyExist("HKLM,SOFTWARE\PDFForge\PDFCreator\1.7.0\Setup,UninstallString") =="1" Then "UninstallOld" EndIf
[UninstallOld]
If DoesFileExist ("%ProgramFilesDirx86%\PDFCreator\unins000.exe") == "1" Then "Uninstall000" ELSE "Uninstall001" EndIf
[Uninstall000]
Call "%ProgramFilesDirx86%\PDFCreator\unins000.exe" /SILENT
[Uninstall001]
Call "%ProgramFilesDirx86%\PDFCreator\unins001.exe" /SILENT
[Set:Installation]
AddMeter -1
Call "%Src%\PDFCreator-1_7_2_setup_offline.exe" /LOADINF="%Src%\PDFCreator_1.7.2.inf" /SILENT /ForceInstall
If %ErrorLevel% <> "0" Then "SET:InstallationError" EndIf

[Set:Deinstallation]
If DoesFileExist ("%ProgramFilesDirx86%\PDFCreator\unins000.exe") == "1" Then "Deinstall000" ELSE "Deinstall001" EndIf

[Deinstall000]
If %ErrorLevel% <> "0" Then "SET:DeInstallationError" EndIf
-Call "%ProgramFilesDirx86%\PDFCreator\unins000.exe" /SILENT
-AddMeter -1
[Deinstall001]
If %ErrorLevel% <> "0" Then "SET:DeInstallationError" EndIf
-Call "%ProgramFilesDirx86%\PDFCreator\unins001.exe" /SILENT
-AddMeter -1
[Reg:OnUninstallProduct]

[Reg:Product]
-HKLM,"SOFTWARE\PDFForge\PDFCreator\1.7.0"
[Ini:Product]

[Security:Product]

[Shell:Product]

[Set:InstallationError]
ErrorLogMsg %ErrorText% %ErrorLevel% %CallingText% PDFCreator-1_7_2_setup_offline.exe
Abort

[Set:DeInstallationError]
-Abort
-ErrorLogMsg %ErrorText% %ErrorLevel% %CallingText% C:\Program Files (x86)\PDFCreator\unins000.exe

Code: Select all

[SetupInfo]
Author                  =freiberg
CreationDate            =20.08.2014 16:12:40
InventoryID             =
Description             =
Method                  =
Tested on               =
Dependencies            =
Command line options    =/S2
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=X86

[Requirements]

[Application]
ProductName=PDFCreator
DeveloperName=PDFForge
Version=1.7.3
Revision=0
SetupName=%ProductName% %Version% %SetupWizard%
Text1="%ProductName%",                                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,0,BOTTOM LEFT ITALIC
BackgroundColor=EFEFEF,000000
CopyDialogRect=0%, 0%, 100%, 100%, HCENTER VCENTER
UserKeyName=%DeveloperName%\%ProductName%
MachineKeyName=%DeveloperName%\%ProductName%\%Version%
UninstallKeyName=%DeveloperName% %ProductName% %Version%
UninstallDisplayName=%ProductName% %Version%
UninstallString=%ReinstallString% /U
ReinstallString="%CommonSetupDir%\Setup.exe" "%App%\%SetupInfDir%\Setup.inf"
ReinstallMode=1
SrcDir=..
ApplicationDir=%ProgramFilesDir%\%ProductName%
SetupInfDir=Install
DataDir=%Personal%
AskUninstallOld=0
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%
HideUninstall=1

[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:%SetupInfDir%\Setup.inf,                             , NORMAL,                                             0
1:%Temp%\Setup64.exe,                  %CommonSetupDir%\Setup.exe, OPTIONAL NOSIZEWARNING SETUP ALWAYS WINDOWS64,      0

[FileCheckMachine]
ReplaceEnv V_MachineValuesPath
If DoesFileExist ("%V_MachineValuesPath%\%ComputerName%.ini") == "0" Then "FileIsntThere" EndIf

[FileCheckClient]
ReplaceEnv V_UserValuesPath
If "%UserDomain%" <> "%ComputerName%" Then "CheckClientFile" EndIf

[CheckClientFile]
If DoesFileExist ("%V_UserValuesPath%\%WindowsUser%.ini") == "0" Then "FileIsntThere" EndIf

[FileIsntThere]
ErrorLogMsg Values$\MachineValues\%DomainName%\%ComputerName%.ini or Values$\UserValues\%UserDomain%\%WindowsUser%.ini not found!
Abort

[Product]
;#FileCheckMachine, MACHINE
;#FileCheckClient, CLIENT
;ReplaceEnv <Variable>

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

[Set:Product]

[Set:Altinstallation]
If DoesRegKeyExist ("HKLM,SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{0001B4FD-9EA3-4D90-A79E-FD14BA3AB01D},UnInstallString") == "1" | DoesRegKeyExist("HKLM,SOFTWARE\PDFForge\PDFCreator\1.7.2\Setup,UninstallString") =="1" Then "UninstallOld" EndIf
[Uninstallold]
;If DoesFileExist ("C:\Program Files (x86)\PDFCreator\unins000.exe") == "1" Then "Uninstall000" ELSE "Uninstall001" EndIf
CallHidden cmd.exe /c reg delete "HKLM\SOFTWARE\PDFFORGE\PDFCreator\1.7.2" /f
[Uninstall000]
Call "C:\Program Files (x86)\PDFCreator\unins000.exe" /SILENT
[Uninstall001]
Call "C:\Program Files (x86)\PDFCreator\unins001.exe" /SILENT
[Set:Installation]
AddMeter -1
Call "%Src%\PDFCreator-1_7_3_setup.exe" /LOADINF="%Src%\PDFCreator_1.7.3.inf" /SILENT /ForceInstall /NORESTART
If %ErrorLevel% <> "0" Then "Set:InstallationError" endif 

[Set:Deinstallation]
If DoesFileExist ("%Src%\PDFCreator\unins000.exe") == "1" Then "Deinstall000" Else "Deinstall001" Endif 

[Deinstall000] 
If %ErrorLevel% <> "0" Then "Set:DeInstallationError" EndIf
-Call "C:\Program Files (x86)\PDFCreator\unins000.exe" /SILENT
-AddMeter -1

[Deinstall001]
If %errorLevle% <> "0" Then "Set:DeInstallationError" Endif
-Call "C:\Program Files (x86)\PDFCreator\unins000.exe" /SILENT
-AddMeter -1

[Reg:OnUninstallProduct]

[Reg:Product]
-HKLM,"SOFTWARE\PDFForge\"
;-HKLM,"SOFTWARE\PDFForge\PDFCreator\1.7.0"
[Ini:Product]

[Security:Product]

[Shell:Product]

[Set:InstallationError]
ErrorLogMsg %ErrorText% %ErrorLevel% %CallingText% PDFCreator-1_7_3_setup.exe
Abort

[Set:DeInstallationError]
-Abort
-ErrorLogMsg %ErrorText% %ErrorLevel% %CallingText% PDFCreator-1_7_3_setup.exe
Viele Grüße

Tim

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

Re: PDF Creator 1.7.3 löscht RegKey nicht

Post by r.wiegel » 11. Sep 2014, 09:18

ich vermute das alte Paket wurde auf Win7x64 paketiert und mit Platform=x64 verteilt.
Für alle Fälle lohnt es sich in EMC\Konfiguration\Software Management\Extras\Versionen abgleichen auszuführen...

Die Lösung sehe ich hier, wie gesagt:
AskUninstallOld=0
und CallHidden cmd.exe /c reg delete "HKLM\SOFTWARE\PDFForge\PDFCreator\1.7.2" /f in einem Paket mit Platform=*
Das neue Paket 1.7.3 würde ich mit Platform=x86 belassen. Ein 32-Bit Programm sollte auch in 32-Bit Kontext installiert werden.

Viele Grüße
Roman
Viele Grüße
Roman Wiegel
IT-Consultant

MR Datentechnik - Vertriebs- und Service GmbH

Tim Freiberg
Posts: 6
Joined: 08. Sep 2014, 10:27
Contact:

Re: PDF Creator 1.7.3 löscht RegKey nicht

Post by Tim Freiberg » 25. Sep 2014, 14:33

Hallo zusammen,
als wir das Package bei mehreren Usern ausgerollt haben, kam es bei einigen zu dem Problem, dass der RegKey von 1.7.2 nicht gelöscht wird. Ich habe nochmal das Internet durchforstet und die Kommandozeile als Administrator ausführen lassen auch dieses hat nicht funktioniert. Dasselbe unter einem Benutzerkonto mit Administratorrechten hat auch nicht funktioniert.

Viele Grüße

Tim

Code: Select all

 
[Set:RegKey_Del]
callhidden cmd.exe /c reg delete "HKLM\SOFTWARE\PDFFORGE\PDFCreator\1.7.2" /f

Post Reply

Return to “Deutsch”

Who is online

Users browsing this forum: No registered users and 17 guests