if {exists (key “HKEY_LOCAL_MACHINE\SOFTWARE\UPSIS\SoftwarePackage_RC” of native registry) whose (exists value “HPE_SPP_2018.03.0” whose (it as string = “0”) of it) AND exists file whose (name of it contains “Reset_RIB.xml”) of folder “C:\Drivers\OEM\Setup\TEM_SPP\HPE_SPP_2018.03.0” AND exists file whose (name of it contains “hponcfg.exe”) of folder “C:\Program Files\Hewlett Packard Enterprise\HPONCFG”}
waithidden “C:\Program Files\Hewlett Packard Enterprise\HPONCFG\hponcfg.exe” /f “C:\Drivers\OEM\Setup\TEM_SPP\HPE_SPP_2018.03.0\Reset_RIB.xml”
else {exists (key “HKEY_LOCAL_MACHINE\SOFTWARE\UPSIS\SoftwarePackage_RC” of native registry) whose (exists value “HPE_SPP_2018.03.0” whose (it as string = “0”) of it) AND exists file whose (name of it contains “Reset_RIB.xml”) of folder “C:\Drivers\OEM\Setup\TEM_SPP\HPE_SPP_2018.03.0” AND exists file whose (name of it contains “hponcfg.exe”) of folder “C:\Program Files\HP\hponcfg\hponcfg.exe”}
waithidden “C:\Program Files\HP\hponcfg\hponcfg.exe” /f "C:\Drivers\OEM\Setup\TEM_SPP\HPE_SPP_2018.03.0\Reset_RIB.xml"
endif
The package fails after the first IF statement because the directory in the server that it is deploying to does not exist BUT the directory in the else statement DOES exist.
Is there a way to get around this with maybe bypassing the first if? The statement itself should not be failing at that point since it is an IF statement.