Normally, I believe the msinfo32 executable should be found in either "System32" or "SysWOW64" folders.
Both these folders are added to the "Path" environment variable, therefore the call to this executable should be done without providing the path, e.g.:
Code: Select all
msinfo32 /report <path_to_reportFile>
Judging by the provided information, I am assuming you are trying to call the executable by using a custom action such as "Launch EXE with working directory" (please correct me if I'm wrong).How can I replicate this in AI ? I've tried using the CommonFilesFolder macro but the program _appears_ to fail each time.
In order to launch it from the specified folder, you may need to recreate the folder structure in the "Files and Folders" page, i.e.:
and then select the "microsoft shared" folder in the custom action.
I do believe, however, that the best bet would be to first verify the path by using a script and then calling the EXE (in the same script). For instance, you can check for all 4 locations and call it at the first occurence.
Hope this helps!
Best regards,
Catalin