Autodesk Trueview 2015

Antworten
Vulpar
Beiträge: 36
Registriert: 27. Okt 2010, 10:03
Kontaktdaten:

Autodesk Trueview 2015

Beitrag von Vulpar » 08. Feb 2015, 14:43

Da ich mich jetzt ganz schön abgeplagt habe das Ding sauber zu Paketieren hier mein Ergebnis.

Verzeichnisstruktur:
x86 --> SetupDWGTrueView2015_ENU_32bit.sfx entpackt
x64 --> SetupDWGTrueView2015_ENU_64bit.sfx entpackt
Rev01 --> Dummy.txt (leere Datei, 0 kb)

Wichtig:
Die MSI lässt sich nicht installieren, es wird auf Setup.exe verwiesen.
Lösung:
MSI mit einem MSI Editor bearbeiten (MS ORCA, InstEd usw.)
Tabelle: LaunchCondition
Eintrag entfernen: ADSK_SETUP_EXE="1" OR ACAD_SECONDARY_INSTALL="1" OR PATCH Run Setup.exe to install [ProductName].

Relevante Teile der Setup.inf
[Setup]
Platform=*

[Requirements]
%HKLM,"SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full","Release"% >= "378389"

[Application]
ProductName=DWGTrueView
DeveloperName=Autodesk
Version=2015
Revision=1

[Environment]
V_MSIInstallerIDx64=7D2F3875820E9040100000060BECB6AB
V_MSIGuidx64={5783F2D7-E028-0409-0100-0060B0CE6BBA}
V_MSIInstallerIDx86=7D2F3875820E9040000000060BECB6AB
V_MSIGuidx86={5783F2D7-E028-0409-0000-0060B0CE6BBA}
V_EmpirumInstalled=0
V_TrueViewInstalled=0
V_skipInstall=0
V_InstalledRevision=%%HKLM, "Software\%MachineKeyName%\Setup", "Revision"%%
ReInstSuccessMessage1031=Die Konfiguration wurde erfolgreich abgeschlossen.
ReInstSuccessMessage1031_1=Die Konfiguration wurde abgeschlossen.
ReInstSuccessMessage1033=Configuration completed successfully.
ReInstSuccessMessage1033_1=Configuration completed.
MSILogFile=%Temp%\MSI_%ProductName%.%Version%.%Revision%.log

[Processes]
TrueView=dwgviewr.exe, DWG TrueView, KILLPROCESS CONTINUE

[Product]
#checkEmpirumInstalled, DONTDELETE
#checkTrueViewInstalled, DONTDELETE
#Set:skipInstall, DONTDELETE
#Set:RevisionManagement, DONTDELETE
#Reg:Product
#Set:Uninstall_x86, DELETE WINDOWS32
#Set:Uninstall_x64, DELETE WINDOWS64
#Set:ChangeMSISourcelist_x86, DONTDELETE WINDOWS32
#Set:ChangeMSISourcelist_x64, DONTDELETE WINDOWS64

[Set:RevisionManagement]
; WICHIG Revisionen absteigende angeben, da sonst bei Erstinstallation
; einmal Rev == "" leer durchlaufen
; und einmal Rev == "aktuelle Rev" durchlaufen wird
ReplaceEnv V_InstalledRevision
If %V_InstalledRevision% == "1" then "SelectInstallation" endif
If %V_InstalledRevision% == "0" then "Set:Rev01" endif
If %V_InstalledRevision% == "" then "SelectInstallation" endif


[Set:Rev01]
AddMeter -1
#copyDummy
#Reg:Dummy

[copyDummy]
1:"%SRC%\Rev01\Dummy.txt", "%CommonDocuments%\Autodesk\WebServices\Dummy.txt", ALWAYS, 0

[Reg:Dummy]
HKLM, "SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\0BE1E073FE407084B86554265447378B", "7D2F3875820E9040100000060BECB6AB", 0x00000000, "%CommonDocuments%\Autodesk\WebServices\Dummy.txt"

[checkEmpirumInstalled]
If DoesRegKeyExist ("HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\%UninstallKeyName%,UninstallString") == "1" Then "Set:EmpirumInstalledTrue" Else "Set:EmpirumInstalledFalse" EndIf

[Set:EmpirumInstalledTrue]
Set V_EmpirumInstalled = 1
[Set:EmpirumInstalledFalse]
Set V_EmpirumInstalled = 0


[checkTrueViewInstalled]
If DoesRegKeyExist ("HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\%V_MSIGuidx86%,InstallDate") == "1" | DoesRegKeyExist ("HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\%V_MSIGuidx64%,InstallDate") == "1" Then "Set:TrueViewInstalledTrue" Else "Set:TrueViewInstalledFalse" EndIf

[Set:TrueViewInstalledTrue]
Set V_TrueViewInstalled = 1
[Set:TrueViewInstalledFalse]
Set V_TrueViewInstalled = 0


[Set:skipInstall]
If %V_EmpirumInstalled% == "0" & %V_TrueViewInstalled% == "0" Then "Set:skipInstallFalse" EndIf
If %V_EmpirumInstalled% == "0" & %V_TrueViewInstalled% == "1" Then "Set:skipInstallTrue" EndIf
If %V_EmpirumInstalled% == "1" & %V_TrueViewInstalled% == "0" Then "Set:skipInstallFalse" EndIf
If %V_EmpirumInstalled% == "1" & %V_TrueViewInstalled% == "1" Then "Set:skipInstallFalse" EndIf
[Set:skipInstallTrue]
Set V_skipInstall=1
[Set:skipInstallFalse]
Set V_skipInstall=0

[SelectInstallation]
If %V_skipInstall% == "0" Then "RunInstallation" EndIf

[RunInstallation]
#Set:Product_x86, DONTDELETE WINDOWS32
#Set:Product_x64, DONTDELETE WINDOWS64
#copyDummy
#Reg:Dummy


[Set:Product_x86]
AddMeter -1
AskKillProcesses 600, TrueView
#Set:Prerequisites_x86
Del "%MSILogFile%"
If DoesRegKeyExist ("HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\%V_MSIGuidx86%,InstallDate") == "1" Then "RepairMSI_x86" Else "InstallMSI_x86" EndIf


[RepairMSI_x86]
AddMeter -1
Call MsiExec /Fvomus "%SRC%\x86\x86\dwgviewr\dwgviewr.msi" ALLUSERS="1" REBOOT=REALLYSUPPRESS ARPSYSTEMCOMPONENT=1 /qb-! /Li "%MSILogFile%"
If %ErrorLevel% == "3010" Then "RebootRequired" EndIf
If DoesTextInFileExist ("%ReInstSuccessMessage1031%", "%MSILogFile%") == "0" & DoesTextInFileExist ("%ReInstSuccessMessage1031_1%", "%MSILogFile%") == "0" & DoesTextInFileExist ("%ReInstSuccessMessage1033%", "%MSILogFile%") == "0" & DoesTextInFileExist ("%ReInstSuccessMessage1033_1%", "%MSILogFile%") == "0" Then "AbortMSIInst" EndIf
Del "%MSILogFile%"


[InstallMSI_x86]
AddMeter -1
Call MsiExec /I "%SRC%\x86\x86\dwgviewr\dwgviewr.msi" ALLUSERS="1" REBOOT=REALLYSUPPRESS ARPSYSTEMCOMPONENT=1 /qb-! /Li "%MSILogFile%"
If %ErrorLevel% == "3010" Then "RebootRequired" EndIf
If DoesRegKeyExist ("HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\%V_MSIGuidx86%,InstallDate") == "0" Then "AbortMSIInst" EndIf
Del "%MSILogFile%"


[Set:Product_x64]
AddMeter -1
AskKillProcesses 600, TrueView
#Set:Prerequisites_x64
Del "%MSILogFile%"
If DoesRegKeyExist ("HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\%V_MSIGuidx64%,InstallDate") == "1" Then "RepairMSI_x64" Else "InstallMSI_x64" EndIf


[RepairMSI_x64]
AddMeter -1
Call MsiExec /Fvomus "%SRC%\x64\x64\dwgviewr\dwgviewr.msi" ALLUSERS="1" REBOOT=REALLYSUPPRESS ARPSYSTEMCOMPONENT=1 /qb-! /Li "%MSILogFile%"
If %ErrorLevel% == "3010" Then "RebootRequired" EndIf
If DoesTextInFileExist ("%ReInstSuccessMessage1031%", "%MSILogFile%") == "0" & DoesTextInFileExist ("%ReInstSuccessMessage1031_1%", "%MSILogFile%") == "0" & DoesTextInFileExist ("%ReInstSuccessMessage1033%", "%MSILogFile%") == "0" & DoesTextInFileExist ("%ReInstSuccessMessage1033_1%", "%MSILogFile%") == "0" Then "AbortMSIInst" EndIf
Del "%MSILogFile%"


[InstallMSI_x64]
AddMeter -1
Call MsiExec /I "%SRC%\x64\x64\dwgviewr\dwgviewr.msi" ALLUSERS="1" REBOOT=REALLYSUPPRESS ARPSYSTEMCOMPONENT=1 /qb-! /Li "%MSILogFile%"
If %ErrorLevel% == "3010" Then "RebootRequired" EndIf
If DoesRegKeyExist ("HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\%V_MSIGuidx64%,InstallDate") == "0" Then "AbortMSIInst" EndIf
Del "%MSILogFile%"


[Set:Prerequisites_x86]
;Visual C++ Redist 2008 x86
If DoesRegKeyExist ("HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{1F1C2DFC-2D24-3E06-BCB8-725134ADF989},UnInstallString") == "0" Then "InstVC2008x86" EndIf
;Visual C++ Redist 2010 x86
If DoesRegKeyExist ("HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{F0C3E5D1-1ADE-321E-8167-68EF0DE699A5},UnInstallString") == "0" Then "InstVC2010x86" EndIf
;Visual C++ Redist 2012 x86
If DoesRegKeyExist ("HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{33d1fd90-4274-48a1-9bc1-97e33d9c2d6f},UnInstallString") == "0" Then "InstVC2012x86" EndIf
;DirectX
#InstDirectX_x86


[Set:Prerequisites_x64]
;Visual C++ Redist 2008 x86
If DoesRegKeyExist ("HKLM,SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{1F1C2DFC-2D24-3E06-BCB8-725134ADF989},UnInstallString") == "0" Then "InstVC2008x86" EndIf
;Visual C++ Redist 2008 x64
If DoesRegKeyExist ("HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{4B6C7001-C7D6-3710-913E-5BC23FCE91E6},UnInstallString") == "0" Then "InstVC2008x64" EndIf
;Visual C++ Redist 2010 x86
If DoesRegKeyExist ("HKLM,SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{F0C3E5D1-1ADE-321E-8167-68EF0DE699A5},UnInstallString") == "0" Then "InstVC2010x86" EndIf
;Visual C++ Redist 2010 x64
If DoesRegKeyExist ("HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{1D8E6291-B0D5-35EC-8441-6616F567A0F7},UnInstallString") == "0" Then "InstVC2010x64" EndIf
;Visual C++ Redist 2012 x86
If DoesRegKeyExist ("HKLM,SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{33d1fd90-4274-48a1-9bc1-97e33d9c2d6f},UnInstallString") == "0" Then "InstVC2012x86" EndIf
;Visual C++ Redist 2012 x64
If DoesRegKeyExist ("HKLM,SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{ca67548a-5ebe-413a-b50c-4b9ceb6d66c6},UnInstallString") == "0" Then "InstVC2012x64" EndIf
;DirectX
#InstDirectX_x64


[InstVC2008x86]
Call "%SRC%\x86\3rdParty\x86\VCRedist\2008SP1\vcredist_x86.exe" /q
[InstVC2010x86]
Call "%SRC%\x86\3rdParty\x86\VCRedist\2010SP1\vcredist_x86.exe" /q /norestart
[InstVC2012x86]
Call "%SRC%\x86\3rdParty\x86\VCRedist\2012UPD4\vcredist_x86.exe" /install /quiet /norestart
[InstDirectX_x86]
Call "%SRC%\x86\3rdParty\DirectX\DXSETUP.exe" /silent

[InstVC2008x64]
Call "%SRC%\x64\3rdParty\x64\VCRedist\2008SP1\vcredist_x64.exe" /q
[InstVC2010x64]
Call "%SRC%\x64\3rdParty\x64\VCRedist\2010SP1\vcredist_x64.exe" /q /norestart
[InstVC2012x64]
Call "%SRC%\x64\3rdParty\x64\VCRedist\2012UPD4\vcredist_x64.exe" /install /quiet /norestart
[InstDirectX_x64]
Call "%SRC%\x64\3rdParty\DirectX\DXSETUP.exe" /silent


[Set:Uninstall_x86]
If DoesRegKeyExist ("HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\%V_MSIGuidx86%,InstallDate") == "1" Then "Set:Deinstall_x86" EndIf


[Set:Deinstall_x86]
-Del "%MSILogFile%"
If DoesRegKeyExist ("HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\%V_MSIGuidx86%,InstallDate") == "1" Then "AbortMSIUnInst" EndIf
If %ErrorLevel% == "3010" Then "RebootRequired" EndIf
-Call MsiExec /X %V_MSIGuidx86% REBOOT=REALLYSUPPRESS /qb-! /Li "%MSILogFile%"
-AskKillProcesses 600, TrueView
-AddMeter -1


[Set:Uninstall_x64]
If DoesRegKeyExist ("HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\%V_MSIGuidx64%,InstallDate") == "1" Then "Set:Deinstall_x64" EndIf


[Set:Deinstall_x64]
-Del "%MSILogFile%"
If DoesRegKeyExist ("HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\%V_MSIGuidx64%,InstallDate") == "1" Then "AbortMSIUnInst" EndIf
If %ErrorLevel% == "3010" Then "RebootRequired" EndIf
-Call MsiExec /X %V_MSIGuidx64% REBOOT=REALLYSUPPRESS /qb-! /Li "%MSILogFile%"
-AskKillProcesses 600, TrueView
-AddMeter -1


[RebootRequired]
SetReboot 1
-SetReboot 1


[AbortMSIInst]
ErrorLogMsg %ErrorLogMessage% ErrorLevel: %ErrorLevel%
Abort


[AbortMSIUnInst]
-Abort
-ErrorLogMsg %ErrorLogMessage% ErrorLevel: %ErrorLevel%


[Set:ChangeMSISourcelist_x86]
ReplaceRegValue (HKCR,"Installer\Products\%V_MSIInstallerIDx86%\Sourcelist","LastUsedSource","\\%EmpirumServer%","\\%%EmpirumServer%%", 1)
ReplaceRegValue (HKCR,"Installer\Products\%V_MSIInstallerIDx86%\Sourcelist\Net","1","\\%EmpirumServer%","\\%%EmpirumServer%%", 1)


[Set:ChangeMSISourcelist_x64]
ReplaceRegValue (HKCR,"Installer\Products\%V_MSIInstallerIDx64%\Sourcelist","LastUsedSource","\\%EmpirumServer%","\\%%EmpirumServer%%", 1)
ReplaceRegValue (HKCR,"Installer\Products\%V_MSIInstallerIDx64%\Sourcelist\Net","1","\\%EmpirumServer%","\\%%EmpirumServer%%", 1)


[Reg:Product]
; No Repair, No Remove für Empirum Paket
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\%DeveloperName% %ProductName% %Version%","NoRemove",0x00010001,1
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\%DeveloperName% %ProductName% %Version%","NoModify",0x00010001,1
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\%DeveloperName% %ProductName% %Version%","NoRepair",0x00010001,1

HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\DWG TrueView 2015 - English", "SystemComponent",0x00010001,1
Vielleicht kann ja jemand was damit Anfangen.

Gruß
Tobias

Benutzeravatar
Fassbinder
Beiträge: 6
Registriert: 06. Feb 2015, 17:40
Kontaktdaten:

Re: Autodesk Trueview 2015

Beitrag von Fassbinder » 10. Feb 2015, 09:39

Danke!!!

melsen85
Beiträge: 51
Registriert: 01. Nov 2012, 15:25
Kontaktdaten:

Re: Autodesk Trueview 2015

Beitrag von melsen85 » 16. Jul 2015, 22:51

Auch herzlichen Dank von mir, ich habe mich auch dran probiert und dann deine Lösung gefunden :-)

Antworten

Zurück zu „Biete“

Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 1 Gast