Je nach Dateiort, diese ausführen
Posted: 27. Feb 2014, 12:45
Ich habe ein Programm an zwei Orten (C:\Norman oder C:\program files\Norman) installiert, je nach PC Revision.
Ich möchte diese Datei nur ausführen, wenn Sie auch auf dem System vorliegt.
Findet Empirum keine dieser beiden Dateien, dann soll auch keine ausgeführt werden.
Was mache ich falsch?
Ich möchte diese Datei nur ausführen, wenn Sie auch auf dem System vorliegt.
Findet Empirum keine dieser beiden Dateien, dann soll auch keine ausgeführt werden.
Was mache ich falsch?
Code: Select all
[Product]
;#FileCheckMachine, MACHINE
;#FileCheckClient, CLIENT
;ReplaceEnv <Variable>
#Set:Product
#Set:Installation, DONTDELETE
;#Set:N1, DONTDELETE (auskommentieren oder nicht?)
;#Set:N2, DONTDELETE (auskommentieren oder nicht?)
#Set:Deinstallation, DELETE
#Reg:OnUninstallProduct, DELETE
#Reg:Product
#Ini:Product
#Security:Product
[Set:Product]
[SET:Installation]
AddMeter -1
If DoesFileExist ("c:\program Files\Norman\Npm\Bin\delnvc5.exe") == "1" Then "SET:N1" EndIf
If DoesFileExist ("c:\Norman\Npm\Bin\delnvc5.exe") == "1" Then "SET:N2" EndIf
[SET:N1]
call "c:\program Files\Norman\Npm\Bin\delnvc5.exe" /quiet
If %ErrorLevel% <> "0" Then "SET:InstallationError" EndIf
[SET:N2]
call "c:\Norman\Npm\Bin\delnvc5.exe" /quiet
If %ErrorLevel% <> "0" Then "SET:InstallationError" EndIf
[SET:Deinstallation]
If "%Src%\" <> "" Then "SET:Deinstallation2" EndIf
[SET:Deinstallation2]
If %ErrorLevel% <> "0" Then "SET:DeInstallationError" EndIf
-Call "%Src%\"
-AddMeter -1