Bonjour a tous,
Le titre ne doit pas etre tres explicite mais je ne savais pas trop comment formuler ceci
Voila un script que j'ai fait
► Afficher le texte
;~~~~~~~~~ Installation Automatiser de ZWCAD ~~~~~~~~~;
$Zwcad = Run ("msiexec.exe /i Zwcad.msi /quiet /norestart")
$VBA65 = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{FB97C283-1F3C-42D4-AE01-ADC1DC12F774}","DisplayVersion")
$Vcredist_2010 = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{F0C3E5D1-1ADE-321E-8167-68EF0DE699A5}","DisplayVersion")
$Vcredist_2005 = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{837b34e3-7c30-493c-8f6a-2b0f04e2912c}","DisplayVersion")
$zwcadFR= RegRead ("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{9ACA2843-A001-0000-A001-71159ABDD80F}","DisplayName")
;~~~~~~~~~ Tester la présence des Prérequis pour 32 bits ~~~~~~~~
If @OSArch = "x86" Then
If not $VBA65 ="6.5.10.32" Then
Run ("msiexec.exe /i VBAOF11I.msi /quiet /norestart ")
EndIf
If not $Vcredist_2010 ="10.0.40219" Then
Run ("vcredist_x86.exe /quiet ")
EndIf
If $zwcadFR ="ZWCAD+ 2014" Then
RunWait ($Zwcad &"msiexec.exe /i ZwcadLP.msi /quiet /norestart")
;~ Run ("msiexec.exe /i ZwcadLP.msi /quiet /norestart")
EndIf
;~~~~~~~~~ Intégration de la license ~~~~~~~~~
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\ZWSOFT\ZWCAD\2014","Network","REG_SZ","1")
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\ZWSOFT\ZWCAD\2014","ZWFLEX_LICENSE_FILE","REG_SZ","#######")
EndIf
;~~~~~~~~~ Tester la présence des Prérequis pour 64 bits ~~~~~~~~
If @OSArch = "x64" Then
If not $VBA65 ="6.5.10.32" Then
Run ("msiexec.exe /i VBAOF11I.msi /quiet /norestart ")
EndIf
If not $Vcredist_2005 ="8.0.59193" Then
Run ("msiexec.exe /i vcredist.msi /quiet /norestart ")
EndIf
If $zwcadFR ="ZWCAD+ 2014" Then
RunWait ($Zwcad & "msiexec.exe /i ZwcadLP.msi /quiet /norestart")
;~ Run ("msiexec.exe /i ZwcadLP.msi /quiet /norestart")
EndIf
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\ZWSOFT\ZWCAD\2014","Network","REG_SZ","1")
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\ZWSOFT\ZWCAD\2014","ZWFLEX_LICENSE_FILE","REG_SZ","######")
EndIf
le problème est quand je doit faire l'installation de ZwcadLP.msi
je dois au préalable avoir installer Zwcad.msi, cela est ok il s'install bien
le probème est que ZwcadLP.msi refuse de ce lancer je dois relancer une deuxieme fois le scriot
je pense qu'il s'agit d'un problème avec la premiere install qui ne doit pas bien de terminer
je suis encore un peu débutant en autoit et j'aimerai que l'on m'aide pour que les deux install ce lance sans devoir relancer le script
merci d'avance
Toma