IF Command Always Returns False as Output After Converting the Batch File to the MSI package

Viewed 58

i'm trying to convert a "Batch File" which has a "IF" command that after i convert it to an "MSI" package Using "MSI Wrapper" no matter what type system would it be when i open the MSI Package it's opening the "Winx86" installer file. the batch file works very correctly in both system types but it's looks like after converting it "IF" command never gets true as output. this is my code:

@echo off
if exist "%windir%\SysWOW64" (msiexec.exe /quiet /passive /i "%~dp0New\Win64.msi") else (msiexec.exe /quiet /passive /i "%~dp0New\Win86.msi")
0 Answers
Related